--- license: cc-by-nc-sa-4.0 language: - en pretty_name: OREVID-bench size_categories: - 10M.json` | Candidate drugs (PrimeKG `node_index`), test diseases with their positive drugs, training popularity | | `tasks/.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//.parquet` | Scores of every candidate drug for every test disease: columns `disease`, `drug` (PrimeKG `node_index`) and `score` (higher = more likely to treat) | | `predictions//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 ```python 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](https://doi.org/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 ```bash python bench.py evaluate --pred predictions/my_model ``` The training edges of a task are everything except the rows in `tasks/.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 ```bibtex @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](https://doi.org/10.5281/zenodo.23323226). Contact: contact@orevid.org · issues: https://github.com/orevid-org/orevid/issues