Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
disease
int32
27.9k
84.2k
drug
int32
14k
39.9k
score
float32
-6.17
5.19
38,666
14,012
-4.575837
38,666
14,013
-5.265491
38,666
14,014
-2.137733
38,666
14,015
-3.834077
38,666
14,016
-2.680518
38,666
14,017
-1.471695
38,666
14,018
-2.6558
38,666
14,019
4.586049
38,666
14,020
-0.993488
38,666
14,021
-2.27369
38,666
14,022
-4.931879
38,666
14,023
3.892124
38,666
14,024
5.132738
38,666
14,025
-2.237822
38,666
14,026
-2.204596
38,666
14,027
-2.24006
38,666
14,028
4.383207
38,666
14,029
-2.072937
38,666
14,030
5.19347
38,666
14,031
-2.369957
38,666
14,032
-2.271011
38,666
14,033
-1.514289
38,666
14,034
-2.597332
38,666
14,035
-2.649006
38,666
14,036
-2.670156
38,666
14,037
-5.349602
38,666
14,038
-2.094388
38,666
14,039
-4.351903
38,666
14,040
-2.968056
38,666
14,041
-4.595222
38,666
14,042
1.943243
38,666
14,043
-1.565937
38,666
14,044
-3.58854
38,666
14,045
-1.894636
38,666
14,046
-3.052761
38,666
14,047
-3.34381
38,666
14,048
-2.74119
38,666
14,049
-2.942173
38,666
14,050
-2.829365
38,666
14,051
-5.278081
38,666
14,052
-3.023407
38,666
14,053
-3.547746
38,666
14,054
-4.180175
38,666
14,055
-5.368488
38,666
14,056
-5.096347
38,666
14,057
-5.368488
38,666
14,058
-0.997519
38,666
14,059
-0.391823
38,666
14,060
-0.843468
38,666
14,061
-2.087803
38,666
14,062
-3.352869
38,666
14,063
-3.302862
38,666
14,064
-4.101938
38,666
14,065
-1.829785
38,666
14,066
-5.384814
38,666
14,067
-4.20228
38,666
14,068
-5.384814
38,666
14,069
-5.841954
38,666
14,070
-5.384814
38,666
14,071
-5.384814
38,666
14,072
-4.353466
38,666
14,073
-5.384814
38,666
14,074
-5.384814
38,666
14,075
-5.286705
38,666
14,076
-5.384814
38,666
14,077
-5.286705
38,666
14,078
-5.286705
38,666
14,079
-5.384814
38,666
14,080
-5.383659
38,666
14,081
-5.384814
38,666
14,082
-5.384814
38,666
14,083
-4.20228
38,666
14,084
-5.384814
38,666
14,085
-5.384814
38,666
14,086
-5.384814
38,666
14,087
-5.384814
38,666
14,088
-5.384814
38,666
14,089
-5.384814
38,666
14,090
-5.384814
38,666
14,091
-5.384814
38,666
14,092
-5.384814
38,666
14,093
-4.20228
38,666
14,094
-5.384814
38,666
14,095
-5.384814
38,666
14,096
-5.384814
38,666
14,097
-5.384814
38,666
14,098
-5.384814
38,666
14,099
-4.20228
38,666
14,100
-5.384814
38,666
14,101
-5.384814
38,666
14,102
-5.384814
38,666
14,103
-4.20228
38,666
14,104
-5.384814
38,666
14,105
-4.70231
38,666
14,106
-0.653632
38,666
14,107
-3.996065
38,666
14,108
-3.605614
38,666
14,109
-4.407478
38,666
14,110
-5.258652
38,666
14,111
-3.721141
End of preview. Expand in Data Studio

OREVID-bench: an honest benchmark for drug repurposing on PrimeKG

Which existing drugs could treat this disease? OREVID-bench checks how well a model ranks the ~8,000 drugs of PrimeKG for each disease, on the same knowledge graph and the same splits as TxGNN (Huang et al., Nature Medicine 2024), with three things published evaluations usually miss:

  1. A popularity baseline. Ranking drugs by how many diseases they already treat, ignoring the disease, reaches Recall@100 0.36 on TxGNN's zero-shot split (TxGNN: 0.41). Every model should be compared with it.
  2. Ranking over all drugs, not pairs. Recall@100 and Precision@K over all 7,957 candidate drugs, which is what a researcher looks at, besides TxGNN's AUPRC.
  3. Hard diseases and novelty. ~60 % of the zero-shot test diseases have a near-identical sibling in the ontology with the same drugs; a hard subset removes them. Novelty subsets drop blockbuster drugs or keep only drugs with no prior use, and an external task uses approvals that are not in PrimeKG at all (Open Targets 26.06).

Code, documentation and the full discussion: https://github.com/orevid-org/orevid (benchmark/). Preprint: doi:10.20944/preprints202610.1918.v2. Website built on the same model: orevid.org.

Results (Recall@100, mean over diseases)

Model (config) Zero-shot Zero-shot, hard Disease areas External (not in PrimeKG)
Popularity, ignores the disease (popularity) 0.358 0.203 0.185 0.130
TxGNN, official code, trained on the same splits (txgnn) 0.412 0.258 0.237 0.121
RotatE, knowledge-graph embedding with PyKEEN (kge_rotate) 0.289 0.162 0.219 0.156
OREVID, graph only: logistic regression, no popularity (orevid_no_popularity) 0.781 0.501 0.591 0.364
OREVID, LambdaRank over meta-paths (orevid_lambdarank) 0.811 0.539 0.617 0.359
OREVID, training labels only, as TxGNN (orevid_lambdarank_train_only) 0.803 0.530 0.619 —

orevid_lambdarank is the production model of the website. The best value of each column is in bold.

TxGNN was retrained with its official code and hyper-parameters; on the zero-shot split it reproduces its published numbers (Recall@100 0.412 vs 0.405; AUPRC 0.910 vs 0.904). Full tables, with Precision@K, AUPRC, the novelty subsets and disease-level confidence intervals: LEADERBOARD.md and the GitHub repository.

What is in this repository

Path Content
tasks/<task>.json Candidate drugs (PrimeKG node_index), test diseases with their positive drugs, training popularity
tasks/<task>.split.npz Row numbers of the validation and test edges in PrimeKG's kg.csv (everything else is training)
disease_areas/ Disease lists of the nine areas (from the TxGNN repository, MIT)
predictions/<model>/<task>.parquet Scores of every candidate drug for every test disease: columns disease, drug (PrimeKG node_index) and score (higher = more likely to treat)
predictions/<model>/results.json The metrics bench.py evaluate computes from those files
bench.py Builds the tasks from PrimeKG and evaluates prediction files (MIT licence)

Tasks. zero_shot_1 … zero_shot_5: TxGNN's complex_disease split reproduced exactly (5 % of the diseases lose all their drug–disease edges). area_*: all drug–disease edges of one branch of the disease ontology are hidden (nine areas, seed 0). external_ot2606: drug–disease pairs approved according to Open Targets 26.06 (ChEMBL) that are not in PrimeKG, trained on zero_shot_1. Each task is a split of every model config in the dataset viewer.

How to use it

from datasets import load_dataset

# scores of TxGNN on the first zero-shot split
preds = load_dataset("orevid/orevid-bench", "txgnn", split="zero_shot_1")

To evaluate a new model: download PrimeKG as used by TxGNN (Harvard Dataverse doi:10.7910/DVN/IXA7BM, files kg.csv and node.csv), train on each task's training edges, write one parquet per task with the columns above, and run

python bench.py evaluate --pred predictions/my_model

The training edges of a task are everything except the rows in tasks/<task>.split.npz (bench.train_edges(load_kg("kg.csv"), "tasks", "zero_shot_1")). Do not use anything that encodes drug–disease therapeutic relations for the test diseases (clinical-trial registries, drug labels, literature saying «drug treats disease»). Python ≥ 3.10 with numpy, pandas, scipy, scikit-learn and pyarrow.

Caveats

  • Labels come from PrimeKG/DrugBank and Open Targets: they reward rediscovering known treatments, and a candidate counted as wrong may be right but not yet approved.
  • external_ot2606 is out-of-sample but not prospective (median first trial 2008).
  • TxGNN's own disease-area splits cannot be reproduced (no seed); these are an approximation with a fixed seed, and diabetes (2 diseases) and adrenal gland (6) are noisy.
  • TxGNN outputs a constant score for test diseases with no edge left in the training graph (8 of 335 zero-shot diseases); its ranking there is random. Both protocol differences with TxGNN are measured in benchmark/FAIR_COMPARISON.md of the GitHub repository.

Research use only. These are hypotheses for researchers, not medical advice.

Licence

Task files and predictions: CC BY-NC-SA 4.0, because they are adaptations of sources with non-commercial and share-alike terms (DrugBank, SIDER and DisGeNET through PrimeKG); see LICENSE-DATA.md in the GitHub repository. bench.py: MIT. Please cite OREVID-bench and the original sources, in particular PrimeKG and TxGNN.

Citation

@article{quadrada2026orevid,
  author  = {Quadrada Jan{\'e}, Joaquim},
  title   = {{OREVID}: Open, Evidence-Based Drug Repurposing with a Benchmark Against {TxGNN}},
  journal = {Preprints.org},
  year    = {2026},
  doi     = {10.20944/preprints202610.1918.v2}
}

Code and data archive: doi:10.5281/zenodo.23323226. Contact: contact@orevid.org · issues: https://github.com/orevid-org/orevid/issues

Downloads last month
56