Pharmacogenomic Knowledge Graph (PGx-KG) Dataset
Description
Pharmacogenomic Knowledge Graph (PGx-KG) Dataset
This repository contains the processed pharmacogenomic knowledge graph (PGx-KG) prepared for benchmarking link prediction models. The graph integrates curated relationships from PharmGKB, ClinVar, SIDER, and Reactome to standard biomedical vocabularies so that entities and relations align across resources.
Contents
- nodes.csv: Consolidated catalogue of biomedical entities with harmonized identifiers, semantic types, and source provenance.
- edges.csv: Full edge list covering all relation types with integer IDs referencing the node maps.
- triples/: Relation-specific subject–predicate–object triples in CSV format, named as <REL>__HEADTYPE__TAILTYPE.
- relations/: Per-relation tables with descriptive metadata, confidence scores, and source annotations.
- id_maps/: Mapping tables that link integer IDs to canonical biomedical identifiers (HGNC, RxNorm, MeSH, ChEBI, etc.).
- degree/: Per-relation in/out degree distributions for downstream analysis or sampling.
- splits/: Stratified train/validation/test partitions for each relation type, with only CSV versions (including reproducible random/ test/train/val).
- stats.json: Summary statistics computed after harmonization (entity counts, relation counts,).
Data Statistics
Total nodes: 3,744,727 Total edges: 9,645,367
Node types:
- Variants,
- Genes,
- Diseases,
- Drugs,
- ADRs,
Pathways Relation types:
- VAR_ASSOC_DIS,
- VAR_IN_GENE,
- DRUG_CAUSES_ADR,
- GENE_IN_PATH,
- DRUG_IN_PATH,
- GENE_AFFECTS_DRUG
How to Use
- Load the relation-specific triples in triples/ (or the global edge list in edges.*) into your preferred graph ML framework (e.g., PyTorch Geometric, DGL).
- Use the mapping tables in id_maps/ (e.g., GENE_ids.csv, DRUG_ids.csv) to translate integer IDs back to canonical biomedical identifiers.
- Evaluate models on the curated train/validation/test splits under splits/<REL>/ and report metrics such as MRR, Hits@K, or AUROC.
Source Databases
This dataset was derived from the following resources (not redistributed here):
- PharmGKB (https://www.pharmgkb.org/)
- ClinVar (https://www.ncbi.nlm.nih.gov/clinvar/)
- SIDER (http://sideeffects.embl.de/)
- Reactome (https://reactome.org/)
License
This processed dataset is released under the CC BY 4.0 License. You are free to share and adapt, provided appropriate credit is given.
Citation
Citation
If you use this dataset, please cite both the dataset and the preprint:
-
Faruk, M.O. (2025). Pharmacogenomic Knowledge Graph (PGx-KG): Processed Dataset for Link Prediction. Zenodo. https://doi.org/10.5281/zenodo.17189995
-
Faruk, M.O. (2025). A large-scale pharmacogenomic knowledge graph for drug-gene-variant-disease discovery. medRxiv. https://doi.org/10.1101/2025.09.24.25336269v1
Files
degree.zip
Files
(595.9 MB)
| Name | Size | |
|---|---|---|
|
md5:b65b3af0265ce0bccc8cd09a208a9a8e
|
21.2 MB | Preview Download |
|
md5:159c1fa68f43f6b001630ea3e9837f52
|
42.8 MB | Preview Download |
|
md5:bcd0f94aa5148f4232ea38283a6d0212
|
23.8 MB | Preview Download |
|
md5:31323addd29e2cd81ebdc91fd43ee224
|
274.9 MB | Preview Download |
|
md5:1d3555840fb1b2023365c1f651c24de5
|
50.6 MB | Preview Download |
|
md5:f73713fb662b40d6f5fb604a93981663
|
110.3 MB | Preview Download |
|
md5:76101364cce761c05460adc5179edc7a
|
393 Bytes | Preview Download |
|
md5:6782fcbac7b36152166abecb195df63f
|
72.3 MB | Preview Download |
Additional details
Related works
- Is derived from
- Dataset: https://www.pharmgkb.org/ (URL)
- Dataset: https://www.ncbi.nlm.nih.gov/clinvar/ (URL)
- Dataset: http://sideeffects.embl.de/ (URL)
- Dataset: https://reactome.org/ (URL)
Software
- Repository URL
- https://github.com/Faerque/pharmacogenomic-knowledge-graph
- Programming language
- Python , Python console , Jupyter Notebook
- Development Status
- Active