- Vitiligo Relational GNN (
RGAT-4H + ComplEx) & Stage-2 Wide-and-Deep Curative Reranker- 1. Architecture Overview
- 2. Benchmark Performance
- 3. Top Stage-2 Reranked Curative Candidates
- 4. Top Mechanistically Orthogonal 2-Drug Combinations
- 5. Pairwise In-Silico Synergy Matrix & Virtual Chou-Talalay Index
- 6. Prospective Out-of-Sample Clinical Validation (Nature Medicine, Nov 2026)
- 7. Usage
- 8. Reverse Target Screening Ledger
- 9. Citation & License
Vitiligo Relational GNN (RGAT-4H + ComplEx) & Stage-2 Wide-and-Deep Curative Reranker
A heterogeneous multi-relational Graph Attention Network (RGAT-4H + asymmetric ComplEx Hermitian decoder) and Stage-2 Wide-and-Deep Cross-Encoder Reranker (DenseCurativeReranker) built by The Vitiligo Initiative for disease-modifying vitiligo drug discovery, $CD8^+ T_{\text{RM}}$ resident-memory disarmament, melanocyte stem-cell (McSC) mobilization, PDE4B non-responder barrier suppression, and mechanistically orthogonal combination synergy screening.
- Source Code: github.com/recepsirin/vitiligo-initiative
- Knowledge Graph: re-cep/vitiligo-knowledge-graph. The model was trained on the project's build of the graph of 22 November 2026 (18,309 entities, 95,238 relations), the build the release's correction of that day exports. The release holds 17,139 entities and 92,816 relations, plus 1,170 entities and 1,727 relations under WHO ICTRP terms and 693 relations under CC BY-SA 4.0; the model also sees two drugβtarget relations the release leaves out, because they rest only on DrugBank, whose terms do not allow redistribution.
- Relation Extractor Checkpoint: re-cep/vitiligo-relation-extractor
1. Architecture Overview
Standard vitiligo therapies (such as topical corticosteroids or monotherapy JAK inhibitors) provide repigmentation, but relapse is common once treatment stops (34.2% of 76 patients with at least 80% repigmentation, 26.3% within a year; PMID 36721299) because pathogenic resident memory T cells ($CD8^+ T_{\text{RM}}$) remain anchored in the epidermis, while non-responding lesions face molecular barriers (such as PDE4B elevation by $+9.09 \log_2\text{FC}$ in GSE256271).
Stage 1: Multimodal Relational Graph Attention Network (relational_gnn.pt)
- 1,936-Dimensional Multimodal Node Representations across 18,309 Entities:
- 768-D Contextual Text Embeddings: Fine-tuned BioRED BiomedBERT encoder (
re-cep/vitiligo-relation-extractor). - 1,024-D Chemical Structural Fingerprints: Morgan / ECFP4 bit-vectors ($r=2$) extracted from canonical SMILES (PubChem + ChEMBL) via RDKit.
- 128-D Protein Functional Families: Multi-hot protein domain representations from HGNC/UniProt.
- 16-D Cross-Cohort Transcriptomic Profile (
vitiligo.gnn.geo_meta), every dimension carrying data:GSE311770: 105 skin punch biopsies: lesional and perilesional vs. healthy $\log_2\text{FC}$ (the lesional one blended with the project's limma results), baseline expression and between-patient variance (4-D).GSE186928: 5 paired patients, normal vs. vitiligo skin $\log_2\text{FC}$ and significance (2-D).GSE256271: responder vs. non-responder biopsies,PDE4B$+9.09 \log_2\text{FC}$ higher in non-responders, and significance (2-D).GSE272551: crisaborole and pan-PDE4 inhibitor 72 h responses (2-D).GSE150954: hair-follicle bulge melanocyte and keratinocyte precursors, NB-UVB-treated over untreated vitiligo skin, $\log_2\text{FC}$ (2-D; 2,624 and 2,474 entities).GSE344141: mouse skin on fluoxetine over control, $\log_2\text{FC}$, mouse genes matched to human by symbol (1-D; 2,824 entities).GSE298871single cells: a T-cell effector score and a melanocyte-depletion score, with 11 resident-memory markers set to at least 2.5 and 7 melanocyte markers to at most β2.5 (2-D).- GWAS Catalog: each gene's strongest vitiligo association among the 157 the corpus holds, $-\log_{10} p$ capped at 10 (1-D; 116 entities).
- Until 22 November 2026 the
GSE150954,GSE344141and GWAS dimensions were zero for every entity: the parser looked for column namesGSE150954's files do not use,GSE344141's file holds mouse Ensembl ids, and the GWAS score read a file the corpus never wrote. Filling them barely moves link prediction: trained with and without them on the same splits (seeds 42, 7 and 2026), test filtered MRR changed by β0.0015, +0.0035 and +0.0006, inside a seed-to-seed spread of 0.011, and filtered Hits@10 rose 0.4 points in each.GSE171161, listed here before, is not read.
- All 1,936 columns rebuild bit for bit from the raw inputs (the BiomedBERT checkpoint, the recorded SMILES, the HGNC table and the GEO series) with
vitiligo gnn check-features(checked for this model's dataset on 22 November 2026;GSE344141's mouse gene symbols are fetched from MyGene.info once and cached);vitiligo gnn build-datasetbuilds a new training set the same way.
- 768-D Contextual Text Embeddings: Fine-tuned BioRED BiomedBERT encoder (
- 4-Head Relational Graph Attention (
RGAT-4H) +ComplExHermitian Link Decoder in $\mathbb{C}^{64}$:- Edge-weighted message passing scaled by causal hierarchy (
posted_resultRCTs $\rightarrow$chembl_mechanism$\rightarrow$geo_punch_biopsies$\rightarrow$wikipathways/go$\rightarrow$ literature assertions). - Asymmetric Hermitian inner product in $\mathbb{C}^{64}$: $$\text{score}(h, r, t) = \text{Re}\left( \langle h, r, \bar{t} \rangle \right)$$
- Trained in mini-batches with relation-balanced loss weights (relation count$^{-0.2}$,
CHANGESfurther down-weighted) and type-constrained self-adversarial negative sampling (temperature 1.0).
- Edge-weighted message passing scaled by causal hierarchy (
Stage 2: Wide-and-Deep Cross-Encoder Reranker (dense_reranker.pt)
A standardized Wide-and-Deep cross-encoder ($1,172\text{D} \rightarrow 32\text{D} \rightarrow 1\text{D}$ with per-fold $z$-score feature standardization and $L_2$ weight decay $= 0.15$) fusing:
- 1,024-D Morgan (ECFP4) chemical structural fingerprints
- 128-D
RGAT-4H + ComplExlatent node representations - Direct
(Drug, TREATS, Vitiligo)link prediction score - 8-D $T_{\text{RM}}$ durability disarmament profile (
IL15,JAK1,JAK3,STAT1,STAT3,CD8A,ITGAE,CGAS) - 7-D Melanocyte stem-cell regeneration profile (
CTNNB1,WNT1,MITF,EDNRB,KIT,HTR1A,TYR) - 3-D Non-responder barrier suppression profile (
PDE4B,PDE4A,PLA2G12A) - 1-D alignment score against the
GSE256271responder vs. non-responder fold changes: inhibiting a gene higher in non-responders, or activating one higher in responders, raises it (corrected 21 November 2026; see Benchmark Performance)
2. Benchmark Performance
Stage 1 GNN Link Prediction (Held-Out Test Split, 9,523 Edges)
From gnn_train_results.json. Filtered ranks exclude other true edges; type-constrained ranks compare only entities of the right kind. Trained 22 November 2026, seed 42, 30 epochs (35 s on Apple MPS). Training on MPS is not bit for bit reproducible: a second run with the same seed matched every test figure here to within 0.0001, not the weights.
| Metric / Relation | Test edges | Filtered MRR | Type-Constrained MRR | Filtered Hits@1 | Filtered Hits@10 |
|---|---|---|---|---|---|
| Global All-Relation (Test) | 9,523 | 0.1070 | 0.1263 | 7.8% | 15.9% |
INVESTIGATES (Trial $\rightarrow$ Disease) |
232 | 1.0000 | 1.0000 | 100.0% | 100.0% |
TREATS (Drug $\rightarrow$ Disease) |
331 | 0.4494 | 0.4494 | 43.8% | 46.5% |
EXPRESSED_IN (Target $\rightarrow$ Cell Type) |
69 | 0.2863 | 0.6045 | 15.9% | 50.7% |
ASSOCIATED_WITH (Target $\leftrightarrow$ Disease) |
2,164 | 0.1236 | 0.1636 | 9.0% | 19.0% |
ACTIVATES (Drug/Target $\rightarrow$ Target) |
121 | 0.1022 | 0.1039 | 4.1% | 19.8% |
INHIBITS (Drug/Target $\rightarrow$ Target) |
243 | 0.0766 | 0.0768 | 3.7% | 15.2% |
CO_EXPRESSED_WITH (Gene $\leftrightarrow$ Gene) |
835 | 0.0708 | 0.0708 | 1.7% | 17.1% |
CHANGES (Intervention $\rightarrow$ Outcome) |
2,894 | 0.0524 | 0.0738 | 3.5% | 8.4% |
PARTICIPATES_IN (Target $\rightarrow$ Pathway) |
2,076 | 0.0466 | 0.0527 | 1.5% | 9.9% |
CAUSES (Adverse/Trigger $\rightarrow$ Disease) |
234 | 0.0393 | 0.0393 | 0.9% | 10.3% |
TARGETS (Drug $\rightarrow$ Target) |
8 | 0.0266 | 0.0286 | 0.0% | 12.5% |
COMBINED_WITH (Agent $\leftrightarrow$ Agent) |
8 | 0.0191 | 0.0936 | 0.0% | 12.5% |
TESTED_IN (Intervention $\rightarrow$ Trial) |
308 | 0.0098 | 0.0101 | 0.3% | 1.0% |
The table lists every relation; the one it replaces left out CHANGES, TESTED_IN, TARGETS and COMBINED_WITH, 3,304 of its 9,607 test edges. The model this one replaces was trained on the graph of 9 November (18,730 entities), which held some drugs under two names (ritlecitinib was both PF-06651600 and RITLECITINIB TOSYLATE) until the MeSH merge of 22 November joined them. On it, filtered MRR was 0.1156, Hits@10 16.7% and TREATS 0.566. Those figures come from another graph and another test split: on the graph of 22 November, seeds 42, 7 and 2026 give filtered MRR 0.107 to 0.118 and TREATS 0.42 to 0.49, with or without the four new GEO dimensions.
Stage 2 Wide-and-Deep Curative Reranker (5-Fold Stratified Out-of-Fold CV)
- 5-Fold Stratified Out-of-Fold AUROC:
0.9222(separating hand-labelled disease-modifying and regenerative therapeutics from acute palliative corticosteroids and non-dermatologic decoys) - 5-Fold Out-of-Fold Accuracy:
87.5%
Both figures are recorded in dense_reranker.pt and gnn_reranked_candidates.json. They rest on 56 labelled drugs, 28 disease-modifying or regenerative and 28 palliative or decoys, looked up by name. Since 22 November a name a merge absorbed still finds its entity (calcipotriol is an alias of calcipotriene); before that fix, calcipotriol and fluticasone went unfound and the same model read AUROC 0.868.
Corrected 21 November 2026, in the model this one replaces. The 1-D GSE256271 alignment feature read the deposited fold changes the wrong way round. They are non-responders over responders (PDE4B: mean 0 in responders, 96.9 in non-responders), so a drug that inhibits a non-responder gene scored lower on it. It now reads them as deposited, and the reranker was retrained: the same 20 drugs rank in the same order, out-of-fold AUROC moved from 0.898 to 0.9005, and accuracy stayed 83.9%. The alignment values in gnn_reranked_candidates.json are now positive, where they were negative.
3. Top Stage-2 Reranked Curative Candidates
| S2 Rank | S1 Rank | Candidate Drug | Prob | Rerank Logit | Curative Triad Alignment | Key Targets (* = Verified in KG) |
|---|---|---|---|---|---|---|
| 1 | 734 | baricitinib | 0.998 |
6.47 |
Pillar 1: TRM Disarmament + Pillar 2: Stem-Cell Regeneration | JAK1 (Inh*), JAK3 (Inh*), STAT1 (Inh*), STAT3 (Inh*), CD8A (Inh*) (+1) |
| 2 | 420 | fedratinib | 0.998 |
6.17 |
Pillar 1: TRM Disarmament | JAK1 (Inh*), PDE4A (Inh) |
| 3 | 107 | afamelanotide | 0.998 |
6.04 |
Pillar 1: TRM Disarmament + Pillar 2: Stem-Cell Regeneration + Pillar 3: PDE4B Barrier Suppression | JAK1 (Inh), CD8A (Inh), MITF (Act), TYR (Act), PDE4B (Inh) (+1) |
| 4 | 802 | ruxolitinib | 0.997 |
5.97 |
Pillar 1: TRM Disarmament | IL15 (Inh*), JAK1 (Inh*), JAK3 (Inh*), STAT3 (Inh*), CD8A (Inh*) |
| 5 | 861 | tacrolimus | 0.997 |
5.90 |
Pillar 1: TRM Disarmament + Pillar 2: Stem-Cell Regeneration | JAK1 (Inh), CD8A (Inh*), MITF (Act*), EDNRB (Act*), KIT (Act*) (+3) |
| 6 | 178 | apremilast | 0.997 |
5.89 |
Pillar 1: TRM Disarmament + Pillar 3: PDE4B Barrier Suppression | JAK1 (Inh*), PDE4B (Inh*), PDE4A (Inh*) |
| 7 | 863 | upadacitinib | 0.997 |
5.82 |
Pillar 1: TRM Disarmament | JAK1 (Inh*), JAK3 (Inh*), CD8A (Inh*) |
| 8 | 814 | itacitinib | 0.997 |
5.80 |
Pillar 1: TRM Disarmament | JAK1 (Inh*) |
| 9 | 468 | povorcitinib | 0.997 |
5.67 |
Pillar 1: TRM Disarmament | JAK1 (Inh*), JAK3 (Inh*), PDE4A (Inh) |
| 10 | 390 | travoprost | 0.996 |
5.59 |
Pillar 2: Stem-Cell Regeneration | TYR (Act*) |
| 11 | 624 | ritlecitinib | 0.995 |
5.37 |
Pillar 1: TRM Disarmament + Pillar 2: Stem-Cell Regeneration | IL15 (Inh*), JAK1 (Inh*), JAK3 (Inh*), STAT3 (Inh*), CD8A (Inh*) (+2) |
| 12 | 575 | SIROLIMUS | 0.995 |
5.35 |
Pillar 1: TRM Disarmament + Pillar 2: Stem-Cell Regeneration | JAK1 (Inh), CD8A (Inh*), MITF (Act*), TYR (Act*), PDE4B (Inh) |
| 13 | 930 | tofacitinib | 0.995 |
5.28 |
Pillar 1: TRM Disarmament | IL15 (Inh*), JAK1 (Inh*), JAK3 (Inh*), STAT1 (Inh*), CD8A (Inh*) |
| 14 | 663 | methotrexate | 0.995 |
5.22 |
Pillar 1: TRM Disarmament + Pillar 2: Stem-Cell Regeneration | IL15 (Inh), JAK1 (Inh*), JAK3 (Inh), STAT3 (Inh), CD8A (Inh*) (+4) |
| 15 | 73 | crisaborole | 0.993 |
4.99 |
Pillar 2: Stem-Cell Regeneration + Pillar 3: PDE4B Barrier Suppression | JAK1 (Inh), TYR (Act*), PDE4B (Inh*), PDE4A (Inh*) |
| 16 | 442 | CERDULATINIB | 0.993 |
4.98 |
Pillar 1: TRM Disarmament | JAK1 (Inh*), JAK3 (Inh*), PDE4B (Inh), PDE4A (Inh) |
| 17 | 450 | Pioglitazone | 0.993 |
4.98 |
Pillar 1: TRM Disarmament + Pillar 2: Stem-Cell Regeneration + Pillar 3: PDE4B Barrier Suppression | JAK1 (Inh), STAT3 (Inh), CD8A (Inh), MITF (Act), TYR (Act) (+2) |
| 18 | 110 | momelotinib | 0.993 |
4.93 |
Pillar 1: TRM Disarmament + Pillar 3: PDE4B Barrier Suppression | JAK1 (Inh*), JAK3 (Inh*), PDE4B (Inh), PDE4A (Inh) |
| 19 | 104 | Isotretinoin | 0.992 |
4.88 |
Pillar 1: TRM Disarmament + Pillar 3: PDE4B Barrier Suppression | JAK1 (Inh), PDE4B (Inh), PDE4A (Inh) |
| 20 | 279 | Roflumilast | 0.992 |
4.87 |
Pillar 3: PDE4B Barrier Suppression | JAK1 (Inh), PDE4B (Inh*), PDE4A (Inh*) |
From gnn_reranked_candidates.json; gnn-reranked-report.md adds each candidate's pillar scores.
4. Top Mechanistically Orthogonal 2-Drug Combinations
The screen's 20 combinations each pair a $T_{\text{RM}}$ disarmer with a regenerative or barrier adjuvant; the first ten, from gnn_candidate_report.json (all of them in gnn-discovery-report.md). Model predictions, not tested regimens.
| Rank | Immune Reset ($T_{\text{RM}}$ Disarmer) | Regenerative / Barrier Adjuvant | Score | Immune targets | Adjuvant targets | Safety notes |
|---|---|---|---|---|---|---|
| 1 | ritlecitinib | crisaborole | 4.074 | JAK1*, CD8A*, JAK3* |
PDE4B (Inh*), PDE4A (Inh*), TYR (Act*) |
Targeted Oral + Topical Adjuvant: Potent systemic reset with targeted local niche activation. |
| 2 | delgocitinib | crisaborole | 4.011 | JAK1*, JAK3*, STAT3* |
PDE4B (Inh*), PDE4A (Inh*), TYR (Act*) |
Targeted Oral + Topical Adjuvant: Potent systemic reset with targeted local niche activation. |
| 3 | ritlecitinib | psoralen | 3.972 | JAK1*, CD8A*, JAK3* |
TYR (Act*), MITF (Act*), PDE4B (Inh) |
Orthogonal Dual Regimen: Complementary immune + regenerative/PDE4B mechanisms; non-overlapping organ toxicity. |
| 4 | delgocitinib | psoralen | 3.910 | JAK1*, JAK3*, STAT3* |
TYR (Act*), MITF (Act*), PDE4B (Inh) |
Orthogonal Dual Regimen: Complementary immune + regenerative/PDE4B mechanisms; non-overlapping organ toxicity. |
| 5 | Deucravacitinib | cholecalciferol | 3.880 | JAK1*, JAK3*, STAT3* |
TYR (Act*), PDE4B (Inh), PDE4A (Inh) |
Orthogonal Dual Regimen: Complementary immune + regenerative/PDE4B mechanisms; non-overlapping organ toxicity. |
| 6 | Deucravacitinib | Roflumilast | 3.875 | JAK1*, JAK3*, STAT3* |
PDE4B (Inh*), PDE4A (Inh*), PDE4D (Inh*) |
Orthogonal Dual Regimen: Complementary immune + regenerative/PDE4B mechanisms; non-overlapping organ toxicity. |
| 7 | abrocitinib | cholecalciferol | 3.798 | JAK1*, JAK3*, IL15 |
TYR (Act*), PDE4B (Inh), PDE4A (Inh) |
Orthogonal Dual Regimen: Complementary immune + regenerative/PDE4B mechanisms; non-overlapping organ toxicity. |
| 8 | abrocitinib | Roflumilast | 3.793 | JAK1*, JAK3*, IL15 |
PDE4B (Inh*), PDE4A (Inh*), PDE4D (Inh*) |
Orthogonal Dual Regimen: Complementary immune + regenerative/PDE4B mechanisms; non-overlapping organ toxicity. |
| 9 | ruxolitinib | Alitretinoin | 3.743 | JAK1*, JAK3*, CD8A* |
TYR (Act*), MITF (Act*), PDE4A (Inh) |
Targeted Oral + Topical Adjuvant: Potent systemic reset with targeted local niche activation. |
| 10 | ruxolitinib | apremilast | 3.729 | JAK1*, JAK3*, CD8A* |
PDE4A (Inh*), PDE4B (Inh*), PDE4D (Inh*) |
Orthogonal Dual Regimen: Complementary immune + regenerative/PDE4B mechanisms; non-overlapping organ toxicity. |
5. Pairwise In-Silico Synergy Matrix & Virtual Chou-Talalay Index
Pairs of the reranker's top 20 single agents (145 pairs) were scored across target orthogonality, Bliss excess surfaces and virtual Chou-Talalay combination indices ($CI$), all computed from the model's predictions. They are hypotheses to test, not measured interactions. From gnn_pairwise_synergy_matrix.json:
| Rank | Combination Regimen | Virtual CI | Bliss Excess | Synergy Score | Route & Safety | Key Mechanistic Rationale |
|---|---|---|---|---|---|---|
| 1 | Travoprost + Isotretinoin | 0.35 (Synergistic) | +0.148 | 4.18 | Dual Topical | Immune disarmament via Isotretinoin; PDE4B (+9.09 log2FC) barrier reversal via Isotretinoin; Follicular McSC stem-cell mobilization via Isotretinoin |
| 2 | Travoprost + Momelotinib | 0.35 (Synergistic) | +0.147 | 4.17 | Targeted Oral + Topical Adjuvant | Immune disarmament via momelotinib; PDE4B (+9.09 log2FC) barrier reversal via momelotinib; Follicular McSC stem-cell mobilization via travoprost |
| 3 | Travoprost + Cerdulatinib | 0.35 (Synergistic) | +0.147 | 4.17 | Targeted Oral + Topical Adjuvant | Immune disarmament via CERDULATINIB; PDE4B (+9.09 log2FC) barrier reversal via CERDULATINIB; Follicular McSC stem-cell mobilization via CERDULATINIB |
| 4 | Itacitinib + Methotrexate | 0.35 (Synergistic) | +0.131 | 3.94 | Oral / Systemic Combination | Immune disarmament via methotrexate; PDE4B (+9.09 log2FC) barrier reversal via methotrexate; Follicular McSC stem-cell mobilization via methotrexate |
| 5 | Tacrolimus + Itacitinib | 0.35 (Synergistic) | +0.129 | 3.90 | Targeted Oral + Topical Adjuvant | Immune disarmament via tacrolimus; Follicular McSC stem-cell mobilization via tacrolimus |
| 6 | Baricitinib + Isotretinoin | 0.35 (Synergistic) | +0.128 | 3.89 | Targeted Oral + Topical Adjuvant | Immune disarmament via Isotretinoin; PDE4B (+9.09 log2FC) barrier reversal via Isotretinoin; Follicular McSC stem-cell mobilization via Isotretinoin |
| 7 | Ruxolitinib + Crisaborole | 0.35 (Synergistic) | +0.128 | 3.88 | Targeted Oral + Topical Adjuvant | Immune disarmament via crisaborole; PDE4B (+9.09 log2FC) barrier reversal via crisaborole; Follicular McSC stem-cell mobilization via crisaborole |
| 8 | Povorcitinib + Sirolimus | 0.35 (Synergistic) | +0.127 | 3.88 | Oral / Systemic Combination | Immune disarmament via SIROLIMUS; PDE4B (+9.09 log2FC) barrier reversal via povorcitinib; Follicular McSC stem-cell mobilization via SIROLIMUS |
| 9 | Tofacitinib + Crisaborole | 0.35 (Synergistic) | +0.128 | 3.87 | Targeted Oral + Topical Adjuvant | Immune disarmament via crisaborole; PDE4B (+9.09 log2FC) barrier reversal via crisaborole; Follicular McSC stem-cell mobilization via crisaborole |
| 10 | Itacitinib + Pioglitazone | 0.35 (Synergistic) | +0.127 | 3.87 | Oral / Systemic Combination | Immune disarmament via Pioglitazone; PDE4B (+9.09 log2FC) barrier reversal via Pioglitazone; Follicular McSC stem-cell mobilization via Pioglitazone |
6. Prospective Out-of-Sample Clinical Validation (Nature Medicine, Nov 2026)
On November 2, 2026, Nature Medicine published the primary 52-week results for the STOP-V1 and STOP-V2 Phase 3 trials of oral povorcitinib (DOI: 10.1038/s41591-026-04739-2). In our pre-registered forecast sealed on October 21, 2026:
v0.5predicted 19.8% active vs. 18.4% observed (46.5th percentile β center mass).v0.5predicted 5.1% control vs. 4.8% & 6.5% observed (45.1th percentile β center mass).v0.5achieved a combined log score ofβ14.81vsβ19.00for baselinev0.2(+4.19 nats, Bayes factor $\approx 66:1$), independently proving that the Phase 3 oral discount shift is robust and predictive.
7. Usage
from vitiligo.gnn.dataset import load_graph_dataset
from vitiligo.gnn.train import load_trained_gnn
from vitiligo.gnn.rerank import rerank_curative_candidates
from vitiligo.gnn.screen import screen_candidates
from vitiligo.gnn.synergy import screen_pairwise_synergy
# 1. Load enriched 18,309-node dataset and trained RGAT-4H + ComplEx GNN
dataset = load_graph_dataset()
model = load_trained_gnn("relational_gnn.pt")
# 2. Run Stage-1 Functional Screen & Orthogonal Combination Synergy Engine
screen = screen_candidates(model=model, dataset=dataset, top_k=30)
# 3. Run Stage-2 Wide-and-Deep Cross-Encoder Reranking
reranked = rerank_curative_candidates(gnn_model=model, dataset=dataset, top_stage1=60, top_final=20)
# 4. Run Pairwise Synergy Matrix Screening (Virtual CI & Bliss Excess)
synergy = screen_pairwise_synergy(dataset=dataset, gnn_model=model, top_n_candidates=20, top_k_pairs=10)
for pair in synergy:
print(f"#{pair.rank}: {pair.drug_a} + {pair.drug_b} | CI: {pair.virtual_ci} | Synergy: {pair.synergy_score:.2f}")
# 5. On-Demand Link Prediction: Forward (head, rel, ?), Reverse (?, rel, tail), and Triple (head, rel, tail)
preds = model.predict_top_k("baricitinib", "INHIBITS", dataset, top_k=5, target_kind="TARGET")
for p in preds:
print(f"Predicts: baricitinib INHIBITS {p['name']} ({p['probability']:.1%})")
# 6. Reverse Target Screening across Curative Triad Bottlenecks
from vitiligo.gnn.reverse_screen import run_reverse_target_screening
rev_hits = run_reverse_target_screening(dataset=dataset, gnn_model=model, top_per_target=10)
# 7. Resident-Memory T-Cell (T_RM) Relapse Scoring (Roadmap Item 3.6)
from vitiligo.models.trm_score import compute_trm_score
score = compute_trm_score({"CD8A": 5.2, "ITGAE": 3.8, "CD69": 4.1, "ACTB": 45.0})
print(f"Biopsy T_RM Relapse Index: {score.normalized_score:.4f}")
8. Reverse Target Screening Ledger
Top three hits per target, from reverse_target_screening.json:
- Pillar 3 (Barrier Reversal):
PDE4B: Colchicine98.5%, 8-hydroxy-2,2,14,14-tetramethylpentadecanedioic acid98.3%, insulin98.2%. - Pillar 2 (Stem-Cell Mobilization):
MITF: Chloroform96.3%, Melatonin96.2%, Glucose96.0%. - Pillar 1 ($T_{\text{RM}}$ Disarmament):
IL15: petesicatib94.8%, methotrexate94.4%, tacrolimus93.2%. - Every target's top five score between 92.5% and 98.7%, and the lists hold solvents and metabolites (chloroform, glucose) beside drugs: hypotheses to filter, not predicted activities.
- Every target's hits:
reverse-target-screening.md. Relapse-signature pre-registration:trm-signature-preregistration.md.
9. Citation & License
Developed as part of The Vitiligo Initiative under the MIT License. Repository: github.com/recepsirin/vitiligo-initiative.