Dataset Viewer
Auto-converted to Parquet Duplicate
target_id
stringlengths
15
15
disease_id
stringlengths
10
14
transition_year
int64
2k
2.02k
outcome
bool
2 classes
ENSG00000106628
EFO_0003863
2,009
true
ENSG00000120915
MONDO_0005044
2,009
false
ENSG00000136573
MONDO_0016586
2,009
false
ENSG00000111816
MONDO_0007576
2,013
false
ENSG00000198695
MONDO_0010311
2,013
false
ENSG00000198033
MONDO_0010150
1,997
true
ENSG00000121879
MONDO_0005034
2,013
false
ENSG00000196262
MONDO_0009692
2,003
false
ENSG00000101868
MONDO_0005105
2,003
true
ENSG00000232810
MONDO_0018882
2,003
false
ENSG00000100902
MONDO_0001528
2,005
false
ENSG00000113263
MONDO_0006485
2,011
false
ENSG00000185627
MONDO_0015759
2,003
false
ENSG00000273079
MONDO_0005487
2,014
false
ENSG00000152402
EFO_0003896
2,013
false
ENSG00000105464
MONDO_0008608
2,014
false
ENSG00000205268
MONDO_0004967
2,015
false
ENSG00000168539
MONDO_0005473
2,002
false
ENSG00000102755
MONDO_0008170
2,004
true
ENSG00000184588
MONDO_0005388
2,010
false
ENSG00000160867
MONDO_0004989
2,006
false
ENSG00000258947
MONDO_0009891
2,003
false
ENSG00000112038
MONDO_0005345
2,014
false
ENSG00000183873
MONDO_0002009
2,001
true
ENSG00000069764
MONDO_0005311
2,007
false
ENSG00000167986
EFO_0003895
2,011
false
ENSG00000106211
MONDO_0005192
2,013
false
ENSG00000147168
EFO_0803536
1,999
true
ENSG00000277893
MONDO_0010735
2,006
false
ENSG00000120907
HP_0001250
2,008
false
ENSG00000121594
MONDO_0008538
2,008
true
ENSG00000129084
MONDO_0005140
2,001
false
ENSG00000258947
MONDO_0020311
2,003
false
ENSG00000184160
HP_0002018
2,007
false
ENSG00000196876
HP_0100660
2,004
false
ENSG00000132840
MONDO_0009823
2,007
false
ENSG00000154611
MONDO_0005112
2,006
false
ENSG00000168418
HP_0100543
2,014
false
ENSG00000133216
MONDO_0018364
2,007
false
ENSG00000134853
MONDO_0005131
2,006
false
ENSG00000168653
MONDO_0005076
2,013
false
ENSG00000115233
MONDO_0004970
2,005
false
ENSG00000196262
MONDO_0009693
1,999
false
ENSG00000171094
MONDO_0018177
2,013
false
ENSG00000165995
HP_0002013
2,004
false
ENSG00000157227
MONDO_0005231
2,007
false
ENSG00000139219
MONDO_0005150
2,009
false
ENSG00000186716
MONDO_0005233
2,004
false
ENSG00000099341
MONDO_0015265
2,010
false
ENSG00000116478
MONDO_0007896
2,012
false
ENSG00000061918
EFO_0009910
2,008
false
ENSG00000108344
MONDO_0008383
2,014
false
ENSG00000162733
MONDO_0005089
2,013
false
ENSG00000185627
MONDO_0100342
2,008
false
ENSG00000144891
MONDO_0005109
2,014
false
ENSG00000087191
MONDO_0008315
2,004
false
ENSG00000103546
MONDO_0008056
2,008
false
ENSG00000113161
MONDO_0018874
2,009
false
ENSG00000082556
HP_0012076
1,998
true
ENSG00000157404
MONDO_0005058
2,001
true
ENSG00000011677
MONDO_0005186
2,004
true
ENSG00000097007
MONDO_0005060
2,001
false
ENSG00000113721
MONDO_0018905
2,007
false
ENSG00000175482
MONDO_0009807
2,006
false
ENSG00000004779
MONDO_0005231
2,012
false
ENSG00000140990
EFO_0000195
2,003
true
ENSG00000013275
MONDO_0005082
2,001
false
ENSG00000064012
EFO_0007949
2,013
false
ENSG00000197122
MONDO_0005005
2,007
false
ENSG00000112715
MONDO_0006033
2,009
false
ENSG00000130433
MONDO_0005303
2,007
false
ENSG00000176014
MONDO_0019088
2,002
false
ENSG00000112715
MONDO_0018881
2,007
false
ENSG00000110717
MONDO_0005233
2,013
false
ENSG00000166206
MONDO_0005068
2,009
true
ENSG00000176890
EFO_1001941
2,006
false
ENSG00000113448
MONDO_0007191
2,009
true
ENSG00000136930
MONDO_0018876
2,001
true
ENSG00000100387
MONDO_0018905
2,003
true
ENSG00000165731
MONDO_0003865
2,007
false
ENSG00000127922
MONDO_0021040
2,006
false
ENSG00000142319
MONDO_0005146
2,004
true
ENSG00000105221
MONDO_0003059
2,013
false
ENSG00000113525
HP_0001880
2,010
false
ENSG00000159377
MONDO_0006047
2,002
false
ENSG00000048392
MONDO_0015459
2,005
true
ENSG00000205220
MONDO_0021138
2,007
false
ENSG00000141736
MONDO_0004993
2,008
false
ENSG00000127824
MONDO_0007576
1,997
true
ENSG00000176014
MONDO_0021042
1,996
false
ENSG00000167325
MONDO_0020743
2,014
false
ENSG00000119013
EFO_0002546
2,002
false
ENSG00000070886
MONDO_0008433
2,003
false
ENSG00000198216
MONDO_0001627
2,009
false
ENSG00000143924
MONDO_0009693
2,015
false
ENSG00000186010
MONDO_0007027
2,003
false
ENSG00000147168
MONDO_0002158
2,008
false
ENSG00000073756
MONDO_0005192
2,003
true
ENSG00000166148
MONDO_0005575
2,013
false
ENSG00000148229
MONDO_0005191
2,007
false
End of preview. Expand in Data Studio

THBKG — Temporal Heterogeneous Biomedical Knowledge Graph

A dated biomedical knowledge graph built from Open Targets 26.09 (with Gene Ontology, Reactome, IntAct, the Human Protein Atlas and ClinicalTrials.gov), plus a clinical-advancement benchmark: rank target–disease pairs that entered Phase II by how likely they are to advance to Phase III, scored only from evidence dated strictly before each pair's decision year.

Every temporal edge carries the year its evidence first appeared, so the graph can be queried as of any historical decision point without leakage.

Files

Path What it is
graph.safetensors All graph tensors (node features, edge_index, edge_attr, edge_time), pickle-free.
metadata.json Schema to reassemble the graph: node/edge types, tensor keys, shapes, dtypes.
mappings/<ntype>.parquet node_id ↔ index for each node type (target, disease, molecule, go, reactome).
labels/train.parquet, labels/eval.parquet Advancement labels: target_id, disease_id, transition_year, outcome.
load_thbkg.py Standalone loader — rebuilds a PyG HeteroData, reads the label splits.
source_versions.json Pinned upstream versions (Open Targets release, GO, IntAct, HPA).
croissant.json MLCommons Croissant metadata.

Graph at a glance

  • Nodes: 109,087 across five types — target (19,620), disease (45,896), molecule (2,596), Gene Ontology term go (38,092), Reactome pathway reactome (2,883). Feature dims: molecule 1024, disease 256, target 56, GO 64, Reactome 64.
  • Edges: ~13.6M over nineteen relations (sixteen temporal, three static); each temporal edge carries edge_time (year first observed) and edge_attr = [weight, novelty].
  • Clinical-trial edges are dated by outcome. Every registered trial adds an ongoing edge at its start date; a finished trial adds an outcome edge (positive, unmet efficacy, adverse effects, unknown/operational) at its actual completion date from ClinicalTrials.gov.
  • Supervision is external. The graph holds only nodes and evidence edges; the clinical-advancement outcomes live in the label parquets and are joined to the graph by node ID at train/eval time.

Advancement benchmark

47,802 target–disease pairs, split temporally: 34,740 train (Phase II entry 1995–2015, 17.7% positive) / 13,062 eval (2016–2021, 7.9% positive). outcome is True iff the pair reached Phase III by a fixed horizon: 2018 for train, 2024 for eval. Eval entries stop at 2021 so every pair has at least three years of follow-up (the protocol of Czech et al.). Each pair is scored using only graph evidence dated strictly before its transition_year.

Primary metric: Relative Success @ K (an importance-weighted hit rate), reported per therapeutic area and Wilcoxon-tested against a randomized-decisions baseline.

Quick start

from huggingface_hub import snapshot_download
from load_thbkg import load_graph, load_labels, node_index

path  = snapshot_download("jspc00012567/THBKG", repo_type="dataset")
data  = load_graph(path)              # PyG HeteroData (reverse edges added, training view)
train = load_labels(path, "train")    # DataFrame: target_id, disease_id, transition_year, outcome
eval_ = load_labels(path, "eval")

# resolve a label endpoint to its graph node index
t2i, d2i = node_index(path, "target"), node_index(path, "disease")

The label parquets also load directly as a 🤗 datasets config:

from datasets import load_dataset
ds = load_dataset("jspc00012567/THBKG", "advancement")   # splits: train, eval

Versions

This is the 26.09 build. The previous 26.03 build stays available at revision v26.03:

snapshot_download("jspc00012567/THBKG", repo_type="dataset", revision="v26.03")

Results are not directly comparable across builds: Open Targets replaced many EFO disease IDs with MONDO IDs in 26.06 and merged duplicate terms in 26.09, and 26.09 has about 60% more clinical records. An earlier 23.06 build had a same-year clinical-trial-edge leak and is deprecated.

License & citation

Dataset artifacts: CC-BY-4.0. Source code (construction pipeline, benchmark harness): MIT, at https://github.com/jackysiupuichung/THBKG. Archival DOI on Zenodo: concept 10.5281/zenodo.20795231.

Siu, Cabrera, Mudaliar, and Zubiaga.
THBKG: A Temporal Biomedical Knowledge Graph for Leak-Free Clinical Advancement Prediction.
Downloads last month
110