Medical Research Skills for Claude Code, Codex, Cursor & Copilot
58 项开源技能,覆盖完整的医学研究全生命周期。由医生构建,基于真实出版物测试。
AI 翻译
PhTxGNN — Drug repurposing prediction and evidence validation platform for FDA Philippines-approved medicines in the Philippines. Developed by 藥提醒科技有限公司 (yao.care)
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗本專案由 藥提醒科技有限公司(yao.care)開發與維運。 PhTxGNN 站台:https://phtxgnn.yao.care/|產品總覽:https://www.yao.care/medical/txgnn/
Drug repurposing predictions for medicines in the Philippine National Formulary (Essential Medicines List) using the TxGNN model.
| Item | Count |
|---|---|
| Drug Reports | 348 |
| Total Predictions | 829,607 |
| Unique Drugs | 462 |
| Unique Indications | 16,854 |
| DDI Data | 160,235 |
| FHIR Resources | 353 MK / 1,936 CUD |
| Evidence Level | Report Count | Description |
|---|---|---|
| L1 | 5 | Multiple Phase 3 RCTs |
| L2 | 18 | Single RCT or multiple Phase 2 |
| L3 | 15 | Observational studies |
| L4 | 26 | Preclinical / mechanistic studies |
| L5 | 271 | Computational prediction only |
| N/A | 13 | Known uses only (no new prediction) |
| Source | Predictions |
|---|---|
| DL | 826,285 |
| KG + DL | 2,868 |
| KG | 454 |
| Confidence | Predictions |
|---|---|
| very_high | 2,105 |
| high | 42,922 |
| medium | 80,108 |
| low | 704,472 |
| 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 |
|---|---|
| Philippine National Formulary Total Drugs | 529 |
| Mapped to DrugBank | 469 (88.7%) |
| Repurposing Candidates | 3,322 |
conda activate txgnn
PYTHONPATH=src python -m phtxgnn.predict.txgnn_model
| Metric | Value |
|---|---|
| Total DL Predictions | 814,113 |
| Unique Drugs | 462 |
| Unique Indications | 16,854 |
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: PNF, 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 |
|---|---|
| PNF Data | Philippine National Formulary Essential Medicines List |
| 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 phtxgnn.predict.txgnn_model
| Category | Data | Source | Note |
|---|---|---|---|
| Drug Data | DOH Philippine National Formulary | Philippine National Formulary Essential Medicines List | Philippines |
| 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) |
PhTxGNN/
├── 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/phtxgnn/
│ ├── 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["PNF Data"] --> proc["process_fda_data.py"]
TxGNN["TxGNN Data"] --> prep["prepare_external_data.py"]
proc --> json["ph_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{phtxgnn2026,
author = {Yao.Care},
title = {PhTxGNN: Drug Repurposing Validation Reports for Philippines DOH-FDA Philippines Drugs},
year = 2026,
publisher = {GitHub},
url = {https://github.com/yao-care/PhTxGNN}
}
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/phtxgnn.git && cd phtxgnn
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 PhTxGNN 同步過來,不要直接改這裡的複本。
在本 repo 單獨使用時,先組工作目錄:
WS=$(bash scripts/txgnn_ws.sh)
cd "$WS"
python3 .claude/dump_license_facts_20261021.py PhTxGNN # 依證據包算市場狀態(checker 要用)
python3 .claude/checker_trend.py --no-append PhTxGNN # 全部藥物頁 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。
| Name Mapping | 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 |