Medical Research Skills for Claude Code, Codex, Cursor & Copilot
58 open-source skills for the full medical research lifecycle. Built by physicians, tested on real publications.
TxGNN drug repurposing reports for 583 medicines in the NHSBSA BNF code information (UK), with evidence levels L1–L5 from clinical trials and literature.
HealthPython · ShellGitHub @yao-careOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
UkTxGNN — Drug repurposing prediction and evidence validation platform for MHRA-approved medicines in the United Kingdom. Developed by 藥提醒科技有限公司 (yao.care)
Translation pending
Taken from the repository README
Loading the full README.
Read the full README ↗本專案由 藥提醒科技有限公司(yao.care)開發與維運。 UkTxGNN 站台:https://uktxgnn.yao.care/|產品總覽:https://www.yao.care/medical/txgnn/
Drug repurposing predictions for medicines in the NHSBSA BNF code list (United Kingdom) using the TxGNN model.
| Item | Count |
|---|---|
| Drug Reports | 583 |
| Total Predictions | 12,218,290 |
| Unique Drugs | 759 |
| Unique Indications | 17,081 |
| DDI Data | 160,235 |
| FHIR Resources | 710 MK / 4,933 CUD |
| Evidence Level | Report Count | Description |
|---|---|---|
| L1 | 9 | Multiple Phase 3 RCTs |
| L2 | 22 | Single RCT or multiple Phase 2 |
| L3 | 16 | Observational studies |
| L4 | 37 | Preclinical / mechanistic studies |
| L5 | 455 | Computational prediction only |
| N/A | 44 | Known uses only (no new prediction) |
| Source | Predictions |
|---|---|
| KG | 10,764,961 |
| KG + DL | 1,193,093 |
| DL | 260,236 |
| Confidence | Predictions |
|---|---|
| very_high | 51,521 |
| high | 1,161,808 |
| medium | 10,786,045 |
| low | 218,916 |
| Method | Speed | Accuracy | Requirements |
|---|---|---|---|
| Knowledge Graph | Fast (seconds) | Lower | No special requirements |
| Deep Learning | Slow (hours) | Higher | Conda + PyTorch + DGL |
uv run python scripts/run_kg_prediction.py
| Metric | Value |
|---|---|
| NHSBSA BNF code list Total Drugs | 9,719 |
| Repurposing Candidates | 11,958,054 |
conda activate txgnn
PYTHONPATH=src python -m uktxgnn.predict.txgnn_model
| Metric | Value |
|---|---|
| Total DL Predictions | 1,293,828 |
| Unique Drugs | 759 |
| Unique Indications | 17,081 |
The TxGNN score represents the model's confidence in a drug-disease pair, ranging from 0 to 1.
| Threshold | Meaning |
|---|---|
| >= 0.9 | Very high confidence |
| >= 0.7 | High confidence |
| >= 0.5 | Moderate confidence |
| Threshold | Meaning |
|---|---|
| ≥ 0.9999 | Extremely high confidence, model's most confident predictions |
| ≥ 0.99 | Very high confidence, worth prioritizing for validation |
| ≥ 0.9 | High confidence |
| ≥ 0.5 | Moderate confidence (sigmoid decision boundary) |
| Level | Definition | Clinical Significance |
|---|---|---|
| L1 | Phase 3 RCT or systematic review | Can support clinical use |
| L2 | Phase 2 RCT | Can consider for use |
| L3 | Phase 1 or observational study | Requires further evaluation |
| L4 | Case report or preclinical research | Not recommended yet |
| L5 | Computational prediction only, no clinical evidence | Requires further research |
flowchart TD
A["TxGNN Prediction Results"] --> B
subgraph B["Step 1: DrugBundle Collector"]
B1["Drug-level: NHSBSA BNF, DDI, DrugBank"]
B2["Indication-level: ClinicalTrials, PubMed, ICTRP"]
end
B --> |"drug_bundle.json"| C
subgraph C["Step 2: Evidence Pack Generator"]
C1["Programmatic data transfer (100%)"]
C2["+ LLM Analysis (L1-L5)"]
end
C --> |"drug_evidence_pack.json/md"| D
subgraph D["Step 3: Notes Writer"]
D1["drug_pharmacist_notes.md"]
D2["drug_sponsor_notes.md"]
end
| File | Download |
|---|---|
| NHSBSA BNF Data | BNF code information |
| node.csv | Harvard Dataverse |
| kg.csv | Harvard Dataverse |
| edges.csv | Harvard Dataverse |
| model_ckpt.zip | Google Drive |
uv sync
uv run python scripts/process_fda_data.py
uv run python scripts/prepare_external_data.py
uv run python scripts/run_kg_prediction.py
conda create -n txgnn python=3.11 -y
conda activate txgnn
pip install torch==2.2.2 torchvision==0.17.2
pip install dgl==1.1.3
pip install git+https://github.com/mims-harvard/TxGNN.git
pip install pandas tqdm pyyaml pydantic ogb
conda activate txgnn
PYTHONPATH=src python -m uktxgnn.predict.txgnn_model
| Category | Data | Source | Note |
|---|---|---|---|
| Drug Data | NHSBSA BNF code information | NHSBSA open data | United Kingdom |
| Knowledge Graph | TxGNN KG | Harvard Dataverse | 17,080 diseases, 7,957 drugs |
| Drug Database | DrugBank | DrugBank | Drug ingredient mapping |
| Drug Interactions | DDInter | DDInter | DDI pairs |
| Drug Interactions | Guide to PHARMACOLOGY | IUPHAR/BPS | Approved-drug target data (not interactions) |
| Clinical Trials | ClinicalTrials.gov | CT.gov API v2 | Clinical trials registry |
| Clinical Trials | WHO ICTRP | ICTRP API | International clinical trials platform |
| Literature | PubMed | NCBI E-utilities | Medical literature search |
| Name Mapping | RxNorm | RxNav API | Drug name standardization bridge |
| File | Download | Note |
|---|---|---|
| Pretrained Model | Google Drive | model_ckpt.zip |
| node.csv | Harvard Dataverse | Node Data |
| kg.csv | Harvard Dataverse | Knowledge Graph Data |
| edges.csv | Harvard Dataverse | Edge Data (DL) |
UkTxGNN/
├── README.md
├── CLAUDE.md
├── pyproject.toml
│
├── config/
│ └── fields.yaml
│
├── data/
│ ├── kg.csv
│ ├── node.csv
│ ├── edges.csv
│ ├── raw/
│ ├── external/
│ ├── processed/
│ │ ├── drug_mapping.csv
│ │ ├── repurposing_candidates.csv
│ │ ├── txgnn_dl_predictions.csv.gz
│ │ └── integration_stats.json
│ ├── bundles/
│ └── collected/
│
├── src/uktxgnn/
│ ├── data/
│ │ └── loader.py
│ ├── mapping/
│ │ ├── normalizer.py
│ │ ├── drugbank_mapper.py
│ │ └── disease_mapper.py
│ ├── predict/
│ │ ├── repurposing.py
│ │ └── txgnn_model.py
│ ├── collectors/
│ └── paths.py
│
├── scripts/
│ ├── process_fda_data.py
│ ├── prepare_external_data.py
│ ├── run_kg_prediction.py
│ └── integrate_predictions.py
│
├── docs/
│ ├── _drugs/
│ ├── fhir/
│ │ ├── MedicationKnowledge/
│ │ └── ClinicalUseDefinition/
│ └── smart/
│
├── model_ckpt/
└── tests/
Legend: 🔵 Project development | 🟢 Local data | 🟡 TxGNN data | 🟠 Validation pipeline
flowchart TD
FDA["NHSBSA BNF Data"] --> proc["process_fda_data.py"]
TxGNN["TxGNN Data"] --> prep["prepare_external_data.py"]
proc --> json["uk_fda_drugs.json"]
prep --> ext["data/external/"]
json --> norm["normalizer.py"]
ext --> norm
norm --> drug_map["drug_mapping.csv"]
drug_map --> ind_map["indication_mapping.csv"]
ind_map --> KG["Knowledge Graph"]
ind_map --> DL["Deep Learning"]
KG --> kg_out["repurposing_candidates.csv"]
DL --> dl_out["txgnn_dl_predictions.csv"]
If you use this dataset or software, please cite:
@software{uktxgnn2026,
author = {Yao.Care},
title = {UkTxGNN: Drug Repurposing Validation Reports for United Kingdom MHRA Drugs},
year = 2026,
publisher = {GitHub},
url = {https://github.com/yao-care/UkTxGNN}
}
Also cite the original TxGNN paper:
@article{huang2023txgnn,
title={A foundation model for clinician-centered drug repurposing},
author={Huang, Kexin and Chandak, Payal and Wang, Qianwen and Haber, Shreyas and Zitnik, Marinka},
journal={Nature Medicine},
year={2024},
doi={10.1038/s41591-024-03233-x}
}
git 只放程式碼與網站頁面;許可證原始資料、證據包、藥師報告原稿、預測結果放在本 repo 的 Release。
git clone https://github.com/yao-care/uktxgnn.git && cd uktxgnn
uv sync # Python 相依套件
bash scripts/restore_data.sh # 取最新的 data-* Release,還原 data/(含校驗)
bash scripts/restore_data.sh --with-kg # 另加共用知識圖譜與預測模型(只有重跑預測才需要)
需要 GitHub CLI(gh auth login)與 uv。
事實層、checker、許可證狀態計算等放在 tools/txgnn/.claude/,是母 repo yao-care/txgnn 的 .claude/ 複本(版本見 tools/txgnn/VERSION)。
規則要改請改母 repo,再用 python3 .claude/sync_site_tools.py UkTxGNN 同步過來,不要直接改這裡的複本。
在本 repo 單獨使用時,先組工作目錄:
WS=$(bash scripts/txgnn_ws.sh)
cd "$WS"
python3 .claude/dump_license_facts_20261021.py UkTxGNN # 依證據包算市場狀態(checker 要用)
python3 .claude/checker_trend.py --no-append UkTxGNN # 全部藥物頁 checker,必須「非 0 0」
.github/workflows/license-refresh.yml 每週一 UTC 03:17 自動執行,也可以在 Actions 頁手動觸發(可選只試跑):
data/(scripts/restore_data.sh)scripts/license_adapter.py),檢查筆數與格式main 並觸發部署;更新後的 data/ 另存成新的 data-YYYYMMDD Release以下情況一律不推、自動開 issue(label license-refresh):下載失敗或格式改變、狀態變動超過兩成、
改到的藥物頁超過 min(200, 5%)、checker/gate/h1 沒過、有人工查核紀錄的頁會被改到。全程不使用 AI。
| PubChem |
| PUG-REST API |
| Chemical substance synonym lookup |
| Name Mapping | ChEMBL | ChEMBL API | Bioactivity database mapping |
| Standards | FHIR R4 | HL7 FHIR | MedicationKnowledge, ClinicalUseDefinition |
| Standards | SMART on FHIR | SMART Health IT | EHR integration, OAuth 2.0 + PKCE |