Reading genetic validity and clinical success side by side
Source:vignettes/articles/two-axes.Rmd
two-axes.RmdThis article walks through one analysis from start to end. The code is not run when the site is built, because the first call downloads the published predictions (about 500 MB). The outputs shown were produced with geneticValidity 0.1.1 and geneticPoS 0.7.0.
1. List the gene and disease pairs
Each pair needs a gene symbol and a phecodeX code. To add the clinical axis later, also give the MeSH ID of the indication. phecodeX and MeSH are not mapped to each other by the package: choose both yourself.
library(geneticValidity)
pairs <- data.frame(
gene = c("PCSK9", "MYH7", "SOD1", "IL23R"),
phecode = c("EM_239.1", "CV_414.1", "NS_323.3", "GI_522.11"),
indication_id = c("D006937", "D009202", "D000690", "D003424")
)
validity_sources()[, c("source", "phecodes", "record_doi", "license")]2. Attach the validity axis
v <- validity_axes(pairs)
v[, c("gene", "mlgps_score", "mlgps_covered", "raregps_score", "raregps_covered")] gene mlgps_score mlgps_covered raregps_score raregps_covered
1 PCSK9 0.7806576 TRUE NA FALSE
2 MYH7 0.5969981 TRUE 0.577 TRUE
3 SOD1 NA FALSE 0.551 TRUE
4 IL23R NA FALSE NA FALSE
Read the columns in this order:
-
_coveredfirst.FALSEmeans the source did not score that disease. It does not mean a low score. IL23R and Crohn’s disease are outside both sources here, so this tool has nothing to say about them. -
_label_indicatednext.TRUEmeans the pair already had a drug indication in the training labels, so its high score partly restates what was known. -
_scoreand_percentilelast. A percentile compares the pair with all pairs of the same source only. Do not compare an ML-GPS score with a RareGPS score.
3. Attach the clinical axis
The clinical axis comes from your own Mendelian randomization and
colocalization results, checked by geneticPoS::karim_pos().
Its target_id must be the same gene symbol and its
indication_id the same MeSH ID as in
pairs.
k <- geneticPoS::karim_pos(mr, coloc) # mr and coloc are your result tables
both <- validity_axes(pairs, karim = k)
both[, c("gene", "mlgps_score", "raregps_score", "pos_status", "pos_historical_launch_rate")]pos_historical_launch_rate is filled only when the pair
falls in the genetic support group of the Karim et al. benchmark. It is
the share of past programmes in that group that reached launch, not a
probability for your pair.
4. Interpret the two axes together
The two axes answer different questions and are never combined into one number.
| Validity axis | Clinical axis | What it suggests |
|---|---|---|
| High | In support group | Genetics and the historical record agree |
| High | Not in support group | Genetic evidence exists but your MR and coloc results do not reach the benchmark thresholds; check them |
| Low or not covered | In support group | Your own genetic results are stronger than the published model sees; check coverage before concluding |
| Low or not covered | Not in support group | Little support from either axis |
Limitations
- ML-GPS and RareGPS were trained to recognise pairs with a drug indication at any phase. They are not probabilities of approval.
- The launch proportion is a group outcome from past programmes.
- See
DATA_SOURCES.mdfor the records, licences and why the original genetic priority score is not included.