Skip to contents

geneticValidity reports two things about a gene and a disease, side by side and never merged into one number:

  1. Genetic target validity: the published ML-GPS and RareGPS scores of the gene–phecode pair, with their percentile.
  2. Historical clinical success: the phase I to launch proportion of the genetic support group that the pair falls into in geneticPoS.

A target can be strongly supported by genetics and still sit in an area where drugs rarely launch, or the reverse. Keeping the two apart makes that visible.

Installation

install.packages("geneticValidity", repos = c("https://daikikumakura.r-universe.dev", "https://cloud.r-project.org"))
# or
# remotes::install_github("DaikiKumakura/geneticValidity")

Example

library(geneticValidity)
pairs <- data.frame(gene = c("PCSK9", "MYH7", "IL23R"),
                    phecode = c("EM_239.1", "CV_414.1", "GI_522.11"))
validity_axes(pairs)   # downloads the predictions once (about 500 MB) and caches them
   gene   phecode mlgps_score mlgps_percentile mlgps_label_indicated mlgps_covered raregps_score ...
1 PCSK9  EM_239.1   0.7806576        0.9999992                  TRUE          TRUE            NA
2  MYH7  CV_414.1   0.5969981        0.9997871                  TRUE          TRUE         0.577
3 IL23R GI_522.11          NA               NA                    NA         FALSE            NA

To add the clinical axis, give the MeSH ID of the indication and a geneticPoS::karim_pos() result:

pairs$indication_id <- c("D006937", "D009202", "D003424")
k <- geneticPoS::karim_pos(mr, coloc)          # your MR and coloc results
validity_axes(pairs, karim = k)[, c("gene", "mlgps_score", "pos_status", "pos_historical_launch_rate")]

Reading the columns

Column Meaning
<source>_score, <source>_percentile Published score and its percentile among all pairs of that source
<source>_label_indicated The pair was already an indication in that source’s training labels: its score is not an independent prediction
<source>_covered The phecode belongs to that source; FALSE means “not scored”, not “low score”
pos_status, pos_historical_launch_rate geneticPoS verdicts for the gene and indication, and the launch proportion of the support group when it applies

phecodeX and MeSH are not mapped to each other: supply both IDs. ML-GPS covers 112 common chronic disease phecodes and RareGPS 161 uncommon and rare ones.

Limitations

  • The scores were trained to recognise gene–phecode pairs with a drug indication at any phase. They are not probabilities of approval, and most of their validation comes from their developers.
  • The launch proportion is a past group outcome, not a probability for the pair.
  • The original genetic priority score (Duffy et al. 2024) is not included; see DATA_SOURCES.md.
  • reproducibility/check_published_values.R checks returned values against the published files.

Citation

Cite this package (citation("geneticValidity"), CITATION.cff) and the publications of the scores you use, listed in DATA_SOURCES.md. This package is not affiliated with their authors.

License

GPL-3 for the code. The predictions are downloaded from their records under CC BY 4.0.