Assess genetic target validity and historical clinical success separately
validity_axes.RdThe two axes are reported side by side and are never combined into one number.
Genetic target validity: the published ML-GPS and RareGPS scores of the gene-phecode pair, with their percentile among all pairs of the same source. These scores were trained to recognise pairs that have a drug indication at any clinical phase; they are not probabilities of approval.
Clinical success: the historical phase I to launch proportion of the genetic
support group that the pair falls into in geneticPoS::karim_pos(). It is
a past group outcome, not a probability for the pair.
Usage
validity_axes(pairs, karim = NULL, sources = c("mlgps", "raregps"),
dir = tools::R_user_dir("geneticValidity", "cache"))Arguments
- pairs
Data frame, or a local CSV/TSV file, with columns gene (HGNC symbol) and phecode (phecodeX code, e.g. "EM_239.1"). Add indication_id (MeSH ID) to attach a geneticPoS result.
- karim
Optional result of
geneticPoS::karim_pos()for the same genes and indications.- sources
Prediction sets for the validity axis: "mlgps" (112 common chronic disease phecodes) and/or "raregps" (161 uncommon and rare phecodes).
- dir
Cache directory for the downloaded predictions.
Details
phecodeX and MeSH are not mapped to each other; supply both IDs.
A pair absent from a source has NA scores. <source>_covered tells
whether the phecode is part of that source at all, so that "not scored" and
"phecode outside the source" can be told apart.
<source>_label_indicated is TRUE when the pair was already an
indication in the training labels of that source; its score is then not an
independent prediction.
The predictions are downloaded at first use, checked against the MD5
checksums of their Zenodo records and cached; see validity_fetch.
Value
The input pairs with, for each source, score, percentile, label_indicated and covered columns, and pos_status, pos_reference_id and pos_historical_launch_rate from geneticPoS.
Examples
if (FALSE) { # \dontrun{
pairs <- data.frame(gene = c("PCSK9", "IL23R"),
phecode = c("EM_239.1", "GI_522.11"),
indication_id = c("D006937", "D003424"))
validity_axes(pairs, sources = "mlgps")
} # }