openadmet-physics 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. openadmet_physics-0.1.0/.gitignore +24 -0
  2. openadmet_physics-0.1.0/LICENSE +21 -0
  3. openadmet_physics-0.1.0/PKG-INFO +217 -0
  4. openadmet_physics-0.1.0/README.md +171 -0
  5. openadmet_physics-0.1.0/pyproject.toml +91 -0
  6. openadmet_physics-0.1.0/src/openadmet_physics/__init__.py +28 -0
  7. openadmet_physics-0.1.0/src/openadmet_physics/calibrate_openadmet_cyp_train.py +188 -0
  8. openadmet_physics-0.1.0/src/openadmet_physics/colab_gpu_openadmet.py +752 -0
  9. openadmet_physics-0.1.0/src/openadmet_physics/compute_vina_docking.py +428 -0
  10. openadmet_physics-0.1.0/src/openadmet_physics/compute_xtb_qm.py +286 -0
  11. openadmet_physics-0.1.0/src/openadmet_physics/curate_datasets.py +525 -0
  12. openadmet_physics-0.1.0/src/openadmet_physics/featurizers.py +128 -0
  13. openadmet_physics-0.1.0/src/openadmet_physics/generate_figures.py +249 -0
  14. openadmet_physics-0.1.0/src/openadmet_physics/gpu_foundation_dmpnn.py +631 -0
  15. openadmet_physics-0.1.0/src/openadmet_physics/make_scaffold_folds.py +68 -0
  16. openadmet_physics-0.1.0/src/openadmet_physics/metrics_and_stats.py +200 -0
  17. openadmet_physics-0.1.0/src/openadmet_physics/physics_features.py +626 -0
  18. openadmet_physics-0.1.0/src/openadmet_physics/predict_cli.py +225 -0
  19. openadmet_physics-0.1.0/src/openadmet_physics/prepare_colab_bundle.py +29 -0
  20. openadmet_physics-0.1.0/src/openadmet_physics/structural_physics_analysis.py +178 -0
  21. openadmet_physics-0.1.0/src/openadmet_physics/train_deploy_models.py +119 -0
  22. openadmet_physics-0.1.0/src/openadmet_physics/train_local_gbdt_and_stack.py +866 -0
  23. openadmet_physics-0.1.0/tests/test_openadmet.py +122 -0
@@ -0,0 +1,24 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ .venv/
4
+ venv/
5
+ dist/
6
+ build/
7
+ *.egg-info/
8
+ .pytest_cache/
9
+ .DS_Store
10
+ bin/
11
+ scratch/
12
+ data/raw/
13
+ data/features/
14
+ data/gpu_out/
15
+ data/structures/
16
+ data/curated/tdc/
17
+ data/curated/openadmet/
18
+ data/curated/master_molecules.parquet
19
+ data/curated/folds/*.npy
20
+ results/cli_models/
21
+ results/local_cache/
22
+ *.sdf
23
+ *.pdbqt
24
+ *.joblib
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Chimdindu Denalex Orakwue
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,217 @@
1
+ Metadata-Version: 2.5
2
+ Name: openadmet-physics
3
+ Version: 0.1.0
4
+ Summary: Zero-leakage (0/0/0 InChIKey-14) physics-grounded ADMET drug safety & metabolism engine (GFN2-xTB, 3D Vina docking, Hill-calibrated CYP).
5
+ Project-URL: Homepage, https://github.com/ChimdinduDenalexOrakwue/openadmet-physics
6
+ Project-URL: Repository, https://github.com/ChimdinduDenalexOrakwue/openadmet-physics
7
+ Project-URL: Issues, https://github.com/ChimdinduDenalexOrakwue/openadmet-physics/issues
8
+ Project-URL: Preprint, https://doi.org/10.5281/zenodo.24733474
9
+ Author: Chimdindu Denalex Orakwue
10
+ License: MIT
11
+ License-File: LICENSE
12
+ Keywords: admet,biophysics,cheminformatics,cyp450,drug-discovery,herg,rdkit,toxicology
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
22
+ Classifier: Topic :: Scientific/Engineering :: Chemistry
23
+ Classifier: Topic :: Scientific/Engineering :: Physics
24
+ Requires-Python: >=3.11
25
+ Requires-Dist: joblib>=1.4
26
+ Requires-Dist: matplotlib>=3.9
27
+ Requires-Dist: numpy>=1.26
28
+ Requires-Dist: pandas>=2.2
29
+ Requires-Dist: rdkit>=2024.3
30
+ Requires-Dist: scikit-learn>=1.5
31
+ Requires-Dist: scipy>=1.13
32
+ Provides-Extra: dev
33
+ Requires-Dist: pytest>=8.0; extra == 'dev'
34
+ Provides-Extra: docking
35
+ Requires-Dist: meeko>=0.6; extra == 'docking'
36
+ Provides-Extra: gbdt
37
+ Requires-Dist: catboost>=1.2; extra == 'gbdt'
38
+ Requires-Dist: lightgbm>=4.3; extra == 'gbdt'
39
+ Requires-Dist: pyarrow>=16.0; extra == 'gbdt'
40
+ Requires-Dist: xgboost>=2.1; extra == 'gbdt'
41
+ Provides-Extra: gpu
42
+ Requires-Dist: chemprop==2.2.2; extra == 'gpu'
43
+ Requires-Dist: torch>=2.4; extra == 'gpu'
44
+ Requires-Dist: transformers>=4.45; extra == 'gpu'
45
+ Description-Content-Type: text/markdown
46
+
47
+ # OpenADMET-PhysNet
48
+
49
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.24733474.svg)](https://doi.org/10.5281/zenodo.24733474)
50
+ [![CI](https://github.com/ChimdinduDenalexOrakwue/openadmet-physics/actions/workflows/ci.yml/badge.svg)](https://github.com/ChimdinduDenalexOrakwue/openadmet-physics/actions/workflows/ci.yml)
51
+ [![Python 3.11–3.13](https://img.shields.io/badge/python-3.11%20%7C%203.12%20%7C%203.13-1B365D)](#try-it-yourself-quickstart)
52
+ [![Zero Leakage](https://img.shields.io/badge/leakage-0%2F0%2F0%20InChIKey--14%20(17%2F17)-007A5E)](#real-world-impact--key-results)
53
+ [![License: MIT](https://img.shields.io/badge/license-MIT-47505E)](LICENSE)
54
+
55
+ ## The Problem in Plain English
56
+
57
+ Nearly 40% of promising small-molecule drug candidates fail late in clinical development—not because they fail to hit their biological target, but because of what happens everywhere else in the human body. A molecule can accidentally jam the liver's cleanup enzymes (**Cytochrome P450**, causing dangerous drug–drug interactions), clog the heart's electrical rhythm channel (**hERG**, risking fatal arrhythmias), trigger drug-induced liver injury (**DILI**), switch on enzyme induction (**PXR**), or get flushed out of the bloodstream before it can act. **OpenADMET-PhysNet** predicts these real-world drug safety and metabolism risks by uniting 2D/3D physical chemistry, semi-empirical quantum reactivity, cryo-EM/X-ray 3D active-site docking, and molecular foundation models inside a **certified `0 / 0 / 0` zero-leakage benchmark** spanning **17 public suites, 29 endpoints, and 48,261 unique molecules**.
58
+
59
+ ![Zero-Leakage InChIKey-14 Forensics & Hill CYP Calibration](docs/figures/tautomer_leakage_audit.svg)
60
+
61
+ ![29-Endpoint Paired-Bootstrap Win Matrix & Flagship ADMET Results](docs/figures/admet_win_matrix.svg)
62
+
63
+ ---
64
+
65
+ ## Why This Is Hard (And Where Standard AI Breaks)
66
+
67
+ First, **public ADMET benchmarks quietly leak molecules across train and test splits.** Standard canonical SMILES filters only catch identical text strings—they miss keto–enol tautomers, pyrazole protomers, resonance forms, and pentavalent-vs-zwitterionic phosphorus drawings (`P(=O)` vs. `[P+][O-]`) that represent the *exact same chemical* in water. Auditing 17 public suites exposed **143 overlapping training rows across 7 TDC splits**—including **67 zero-false-positive Tier-3 deduplicated rows (`59` globally unique `InChIKey-14` keys; `62` per-suite sum) across 6 TDC suites** (`59/67` rows in extended `TDC::hERG_Karim`, `6` rows across 4 official `admet_group` suites [`CYP2C9/2D6/3A4_Veith`, `hERG`], and `2` rows in `CYP2C19_Veith`; plus `153` intra-train duplicates in `Clearance_Hepatocyte_AZ`).
68
+
69
+ Second, **prospective drug-discovery campaigns suffer severe selection bias and physical blind spots.** In the official `OpenADMET` CYP blind challenge, full dose-response curves (`DRC`) were measured mainly on compounds that already flagged positive in primary screening (`CYP2D6` DRC train median $\mathrm{pIC}_{50} = 4.73$ vs. blind test `2.31`; `CYP2D6_is_TDI` prevalence `21.64%` vs. blind test `5.88%`). Pure fingerprint or graph models trained on biased DRC rows dramatically over-predict potency on blind drug candidates—and miss explicit 3D physical triggers like cationic hERG channel binding, unhindered heme-iron nitrogen ligation in `CYP3A4`, and anionic salt-bridging in `CYP2C9`.
70
+
71
+ ---
72
+
73
+ ## How It Works (The Core Breakthrough)
74
+
75
+ **OpenADMET-PhysNet** fixes both the evaluation integrity and the physical modeling end to end:
76
+
77
+ 1. **Certified `0 / 0 / 0` (`Canonical / Connectivity / InChIKey-14`) Zero-Leakage Curation:** Every training-side canonical, connectivity, and `InChIKey-14` tautomer/charge overlap is excised across all **17/17 suites** (keeping every official test set 100% untouched), paired with zero-overlap **Bemis–Murcko scaffold 5-fold CV**.
78
+ 2. **Train-Only Physical Hill-Equation Calibration (`−32.6%` Blind MAE / `−30.6%` MA-ST-RAE):** Using strictly the companion `49.5 µM` single-concentration *training* screen (`4,376` molecules, live-verified `0/0/0` overlap with both blind tests), a 3-parameter physical **Hill binding isotherm** with inverse-variance precision weights recalibrates the inactive bulk distribution—slashing blind-test Macro MAE from `0.9890` to **`0.6662`** (`−32.6%`, `p₂ = 0.0004` on `CYP1A2`/`CYP2D6`, `0.0260` on `CYP2C9`), cutting official `MA-ST-RAE` from `0.8167` to **`0.5665`** (`−30.6%`), and lifting Macro $R^2$ from `0.1206` to **`0.5646`** (Macro `ρ`: `0.6864 → 0.7417`; archived & CI-verified in [`results/per_benchmark/openadmet__cyp_inhibition_drc_only.json`](results/per_benchmark/openadmet__cyp_inhibition_drc_only.json)).
79
+ 3. **5 Orthogonal Physics + Quantum + Docking + Foundation-Model Pillars:** All **48,261** molecules are featurized with **144** 2D/3D mechanistic descriptors (`99.49%` ETKDGv3/MMFF94s convergence), augmented by **4,233** **GFN2-xTB v6.8.0** ALPB(water) + Fukui quantum reactivity calculations (`98.94%` converged) and **7,505** **AutoDock Vina v1.2.7** active-site docks across 6 experimental human cryo-EM/X-ray structures (`7CN1`, `4D6Z`, `4WNU`, `1R9O`, `2HI4`, `1M13`; `99.40%` converged). Five orthogonal pillars (`Physics_QM_Dock`, `MapLight_Phys_GBDT`, `Smooth_Dense`, `Foundation_ResMLP` combining `CheMeleon` + `MoLFormer-XL` + `ChemBERTa-77M-MLM`, and fine-tuned `CheMeleon_DMPNN`) are combined strictly via out-of-fold-only L2-regularized simplex optimization with zero external bioassay pretraining labels.
80
+
81
+ ---
82
+
83
+ ## Real-World Impact & Key Results
84
+
85
+ Every score below is verified bitwise (`max|Δ| = 0.00e+00`) against [`results/benchmark_summary.json`](results/benchmark_summary.json) and live-recomputed in CI directly from [`results/preds/*.npz`](results/preds/) (5,000-resample paired bootstrap):
86
+
87
+ - **Broad Statistically Verified Wins Across All 29 Endpoints:**
88
+ - Beats strong **Morgan ECFP4 + LightGBM** on **28/29** endpoints (**24/29** at two-sided `p₂ < 0.05`).
89
+ - Beats end-to-end fine-tuned **CheMeleon 2048-d D-MPNN** on **28/29** endpoints (**18/29** at `p₂ < 0.05`).
90
+ - Beats **MapLight Multi-FP + RDKit2D/MQN GBDT** on **27/29** endpoints (**20/29** one-sided `p₁ < 0.05`, **17/29** two-sided `p₂ < 0.05`).
91
+ - Beats **Multi-Foundation-Model Pure ResMLP** on **23/29** endpoints (**16/29** at `p₂ < 0.05`).
92
+ - **Controlled Physics Ablations (same neural architecture + 144 physics descriptors):** `CheMeleon_DMPNN_Physics` beats `Pure` on **22/29** endpoints (**15/17** suites), and `FM_Physics_MLP` beats `Pure` on **21/29**.
93
+ - **Zero-Training 3D Docking & Biophysical Signal:** With **zero ML training**, Vina docking into cryo-EM human **hERG (`7CN1`)** achieves univariate **AUROC `0.6542`** (`p = 7.01 × 10⁻³`) on official `TDC::hERG` (`n = 132`) and **`0.6678`** (`p = 9.93 × 10⁻¹²`) pooled (`n = 635`). Blind mechanistic physics recovers `CYP1A2` planarity (`ρ = +0.5620`), `CYP3A4` bulk-lipophilicity (`+0.4959`) & unhindered heme-Fe $\mathrm{sp}^2$ N (`+0.3168`), `CYP2C9` $\mathrm{LogD}_{7.4}$ (`+0.4783`) & Vina `1R9O` (`−0.3799`), `CYP2D6` cationic lipophilicity (`+0.3227`), and `PXR` hydrophobic bulk (`+0.6015`).
94
+
95
+ ### 1. Official & Extended TDC Strict Scaffold Splits (13 Suites, Certified `0/0/0`)
96
+
97
+ | TDC Endpoint (Metric) | Morgan LGBM | MapLight GBDT | FM Pure MLP | CheMeleon Pure | Physics Only | **PhysNet Full `[95% Boot CI]`** | `p₂` vs. Morgan / MapLight |
98
+ |---|---:|---:|---:|---:|---:|:---:|:---:|
99
+ | `CYP2C9_Veith` (AUPRC) | 0.7542 | 0.7914 | 0.7880 | 0.7987 | 0.7786 | **0.8054** `[0.7724, 0.8358]` | **0.0004** / **0.0096** |
100
+ | `CYP2D6_Veith` (AUPRC) | 0.6427 | 0.7271 | 0.7071 | 0.7206 | 0.7097 | **0.7469** `[0.7053, 0.7859]` | **0.0004** / **0.0024** |
101
+ | `CYP3A4_Veith` (AUPRC) | 0.8530 | 0.8897 | 0.8759 | 0.8926 | 0.8579 | **0.8957** `[0.8800, 0.9099]` | **0.0004** / **0.0164** |
102
+ | `CYP2C9_Substrate` (AUPRC) | 0.3652 | **0.4248** | 0.3545 | 0.4051 | 0.4155 | 0.4148 `[0.2914, 0.5750]` | 0.4323 / 0.7239 |
103
+ | `CYP2D6_Substrate` (AUPRC) | 0.6370 | 0.6902 | 0.7003 | 0.6793 | 0.6990 | **0.7249** `[0.5996, 0.8363]` | **0.0016** / 0.0884 |
104
+ | `CYP3A4_Substrate` (AUROC) | 0.6565 | 0.6364 | 0.6370 | 0.6257 | **0.6910** | 0.6693 `[0.5684, 0.7648]` | 0.7262 / 0.1912 |
105
+ | `hERG`† (AUROC, `0/0/0`) | 0.8001 | 0.8697 | 0.8349 | 0.8209 | 0.8679 | **0.8703** `[0.7948, 0.9348]` | **0.0112** / 0.9606 |
106
+ | `DILI` (AUROC) | 0.8730 | 0.8961 | **0.9383** | 0.9048 | 0.8926 | 0.9248 `[0.8639, 0.9722]` | **0.0472** / 0.0608 |
107
+ | `Clearance_Hepatocyte_AZ` (`ρ`) | 0.3923 | 0.4760 | 0.4793 | 0.4568 | **0.5294** | 0.5166 `[0.4111, 0.6111]` | **0.0028** / 0.0872 |
108
+ | `Clearance_Microsome_AZ` (`ρ`) | 0.5658 | 0.6186 | 0.5923 | 0.5940 | 0.6349 | **0.6365** `[0.5472, 0.7146]` | **0.0176** / 0.2196 |
109
+ | `CYP1A2_Veith` (Ext., AUPRC) | 0.9190 | 0.9482 | 0.9464 | 0.9506 | 0.9381 | **0.9537** `[0.9453, 0.9617]` | **0.0004** / **0.0004** |
110
+ | `CYP2C19_Veith` (Ext., AUPRC) | 0.8564 | 0.8891 | 0.8853 | 0.8881 | 0.8742 | **0.9026** `[0.8866, 0.9172]` | **0.0004** / **0.0008** |
111
+ | `hERG_Karim`† (Ext., AUROC) | 0.8550 | 0.8967 | 0.8827 | 0.8698 | 0.8753 | **0.8979** `[0.8860, 0.9095]` | **0.0004** / 0.5603 |
112
+
113
+ *†Evaluated strictly after excising 7 train leaks and merging 7 intra-train duplicates in `TDC::hERG` (`523 → 509`), and excising 117 deduplicated train leaks (`121` raw `InChIKey-14` overlaps) plus merging 125 intra-train duplicates in `TDC::hERG_Karim` (`10,755 → 10,513`, `0/0/0` post-clean).*
114
+
115
+ ### 2. Official OpenADMET Prospective Blind Challenges (4 Suites / 16 Endpoints)
116
+
117
+ | Challenge / Endpoint (Metric) | `n_test` | Morgan LGBM | MapLight GBDT | FM Pure MLP | CheMeleon Pure | **PhysNet Full** | Secondary Blind Metrics | `p₂` vs. MapLight |
118
+ |---|---:|---:|---:|---:|---:|:---:|:---:|:---:|
119
+ | **CYP Direct Inhibition (4-Isoform Macro, MAE ↓)** | **750** | 0.8197 | 0.7147 | 0.6865 | 0.7268 | **0.6662** | **MA-ST-RAE 0.5665, `ρ` 0.7417, `R²` 0.5646** | **4/4 `p₂ ≤ 0.0016`** |
120
+ | — `CYP1A2 / 2C9 / 2D6 / 3A4` MAE | 748–750 | .773 / .686 / 1.09 / .730 | .700 / .603 / .915 / .641 | .729 / .582 / .834 / .601 | .721 / .603 / .942 / .642 | **.670 / .564 / .819 / .612** | `ρ`: .803 / .810 / .537 / .818 | **.0016 / .0004 / .0004 / .0004** |
121
+ | **CYP TDI (2-Isoform Macro, MCC ↑)** | **750** | 0.2895 | 0.3043 | 0.2877 | 0.2793 | **0.3262** | **AUROC 0.7726, AUPRC 0.4468, F1 0.4537** | `2D6`: .384 / `3A4`: .828 |
122
+ | **PXR Induction Phase 1+2 (`pEC₅₀` MAE ↓)** | **513** | 0.5872 | 0.5014 | 0.4944 | 0.4873 | **0.4729** `[0.430, 0.518]` | **`ρ` 0.7926, `R²` 0.5110, AUC₅ 0.8980** | **0.0008** |
123
+ | **ExpansionRx 9-ADME Macro (MAE ↓)**\* | **2,282** | 0.3663 | 0.3251 | 0.3180 | 0.3297 | **0.3072** | **`ρ` 0.6804, `R²` 0.4173** | **9/9 wins (7/9 `p₂ ≤ 0.0112`)** |
124
+
125
+ *\*`ExpansionRx` `LogD` MAE is in raw `LogD` units (`0.4617`, `ρ = 0.8073`); the other 8 tasks (`KSOL`, `HLM/MLM CLint`, `Caco-2 Papp/Efflux`, `MPPB`, `MBPB`, `MGMB`) use `log10(x + 1)` units per challenge protocol.*
126
+
127
+ > ### What It Does Not Do (Honest Limitations)
128
+ > - **Global `GFN2-xTB` descriptors invert on `CYP3A4_TDI`:** In univariate analysis on time-dependent inactivation, global quantum reactivity shifts in the inverse direction (`-gap` reactive direction AUROC `0.4406`, i.e., `+gap` AUROC `0.5594` with positives wider at `2.70` vs. `2.57 eV`; $f^-_{\max}$ `0.4460`, $G_{\text{solv}}$ `0.4542`) because scaffold size and saturation confound global HOMO–LUMO gaps—which is why `PhysNet` pairs QM descriptors with explicit reactive-metabolite site-of-metabolism physics rather than trusting raw global QM alone.
129
+ > - **Zero-parameter Hammett $\mathrm{p}K_a$ on electron-deficient heterocycles:** Our fast rule-based micro-$\mathrm{p}K_a$ estimator degrades on electron-deficient SiriusT3 heterocycles (`MAE 2.996–3.415`); high-accuracy $\mathrm{p}K_a$ for exotic medicinal-chemistry rings still benefits from dedicated quantum or experimental titration.
130
+ > - **Small-cohort statistical power:** On compact endpoints (`CYP2C9_Substrate`, `CYP3A4_Substrate`, `TDC::hERG`), `PhysNet` ties or edges strong `MapLight`/`FM` baselines within bootstrap uncertainty—every paired `p`-value is reported candidly above and in `results/benchmark_summary.json`.
131
+
132
+ ---
133
+
134
+ ## Try It Yourself (Quickstart)
135
+
136
+ ### Install & Live-Verify All 29 Endpoints
137
+
138
+ ```bash
139
+ # Option A: Install library & CLI from PyPI (Python 3.11–3.13)
140
+ uv add openadmet-physics
141
+ # or: pip install openadmet-physics
142
+
143
+ # Option B: Clone & live-verify all 29 endpoints
144
+ git clone https://github.com/ChimdinduDenalexOrakwue/openadmet-physics.git
145
+ cd openadmet-physics
146
+
147
+ # Recommended: install with uv (Python 3.11–3.13)
148
+ uv venv --python 3.12 && uv pip install -e ".[dev]"
149
+
150
+ # Or with pip
151
+ pip install -e ".[dev]"
152
+
153
+ # 1. Run unit & chemical-mechanism invariant tests
154
+ uv run pytest -v tests/test_openadmet.py
155
+
156
+ # 2. Live-recompute ALL 29/29 headline metrics from archived predictions + audit 0/0/0 JSONs
157
+ uv run python verify_openadmet.py --ci
158
+ ```
159
+
160
+ ### 6-Line Python Example (Mechanistic Drug-Safety Profiler)
161
+
162
+ ```python
163
+ from openadmet_physics import canonicalize_smiles, featurize_single_smiles, mechanistic_flags
164
+
165
+ can, _ = canonicalize_smiles("COc1ccc(CCN2CCC(Nc3nc4ccccc4n3Cc3ccc(F)cc3)CC2)cc1") # Astemizole
166
+ phys = featurize_single_smiles((can, True))
167
+ print(f"pKa={phys['phys_est_basic_pka_max']:.1f} LogD7.4={phys['phys_est_logd_ph74']:.2f} flags={mechanistic_flags(phys)}")
168
+ ```
169
+
170
+ ### CLI Inspector & Featurizer
171
+
172
+ ```bash
173
+ # Summarize all 29 verified benchmark endpoints & zero-leakage status (from repo checkout)
174
+ openadmet-physics inspect
175
+
176
+ # Profile Astemizole (hERG risk) and Ketoconazole (CYP heme-Fe binder)
177
+ openadmet-physics featurize --smiles \
178
+ "COc1ccc(CCN2CCC(Nc3nc4ccccc4n3Cc3ccc(F)cc3)CC2)cc1" \
179
+ "CC(=O)N1CCN(c2ccc(OC[C@H]3CO[C@](Cn4ccnc4)(c4ccc(Cl)cc4Cl)O3)cc2)CC1"
180
+ ```
181
+
182
+ ---
183
+
184
+ ## Technical Architecture, Full Reproduction & Sister Projects
185
+
186
+ - **Verified audit & benchmark artifacts:** [`data/curated/dataset_audit.json`](data/curated/dataset_audit.json), [`data/curated/openadmet_cyp_hill_calibration.json`](data/curated/openadmet_cyp_hill_calibration.json), [`results/benchmark_summary.json`](results/benchmark_summary.json), [`results/per_benchmark/openadmet__cyp_inhibition_drc_only.json`](results/per_benchmark/openadmet__cyp_inhibition_drc_only.json), [`results/mechanistic_physics_audit.json`](results/mechanistic_physics_audit.json), [`results/preds/`](results/preds/), and [`docs/figures/generate_hero_svgs.py`](docs/figures/generate_hero_svgs.py).
187
+ - **Full end-to-end reproduction:** Install optional extras (`uv pip install -e ".[gbdt,docking,gpu]"`), place `xtb` v6.8.0 and `vina` v1.2.7 in `bin/`, and run the pipeline scripts in [`src/`](src/) (`curate_datasets` → `make_scaffold_folds` → `calibrate_openadmet_cyp_train` → `physics_features` → `compute_xtb_qm` → `compute_vina_docking` → `gpu_foundation_dmpnn` → `train_local_gbdt_and_stack` → `structural_physics_analysis` → `verify_openadmet.py`).
188
+ - **Preprint (Zenodo):** [DOI: 10.5281/zenodo.24733474](https://doi.org/10.5281/zenodo.24733474) ([Zenodo Record 24733474](https://zenodo.org/records/24733474)).
189
+
190
+ ### Sister Projects
191
+ - **[ThermoIDP](https://github.com/ChimdinduDenalexOrakwue/thermoidp)** ([thermoidp.com](https://thermoidp.com) · [DOI: 10.5281/zenodo.24708775](https://doi.org/10.5281/zenodo.24708775)) — First-principles disordered-protein clumping & disorder-gated pLM fusion.
192
+ - **[ThermoAb](https://github.com/ChimdinduDenalexOrakwue/thermoab)** ([thermoab.dev](https://thermoab.dev) · [DOI: 10.5281/zenodo.24727881](https://doi.org/10.5281/zenodo.24727881)) — Signed 3D axial electrostatics & physics-gated antibody developability.
193
+ - **[ThermoRNA](https://github.com/ChimdinduDenalexOrakwue/thermorna)** ([thermorna.com](https://thermorna.com) · [DOI: 10.5281/zenodo.24733470](https://doi.org/10.5281/zenodo.24733470)) — Pure-Rust multi-temperature Turner-2004 RNA partition function & lossless mRNA shelf-life design.
194
+
195
+ ---
196
+
197
+ ## Citation & License
198
+
199
+ If you use OpenADMET-PhysNet, its zero-leakage `InChIKey-14` benchmark curation, Hill-calibrated CYP modeling, or multi-scale physics + quantum + docking pipeline, please cite the Zenodo preprint:
200
+
201
+ > Chimdindu Denalex Orakwue (2026). *OpenADMET-PhysNet: Zero-Leakage InChIKey-14 Forensics, Hill-Calibrated Metabolism, and Multi-Scale Physics Fusion for Drug Safety and ADMET Prediction*. Zenodo. https://doi.org/10.5281/zenodo.24733474
202
+
203
+ ```bibtex
204
+ @misc{orakwue_2026_24733474,
205
+ author = {Orakwue, Chimdindu Denalex},
206
+ title = {OpenADMET-PhysNet: Zero-Leakage InChIKey-14 Forensics,
207
+ Hill-Calibrated Metabolism, and Multi-Scale Physics
208
+ Fusion for Drug Safety and ADMET Prediction},
209
+ month = dec,
210
+ year = 2026,
211
+ publisher = {Zenodo},
212
+ doi = {10.5281/zenodo.24733474},
213
+ url = {https://doi.org/10.5281/zenodo.24733474}
214
+ }
215
+ ```
216
+
217
+ **Author:** Chimdindu Denalex Orakwue ([ORCID: 0009-0003-9851-042X](https://orcid.org/0009-0003-9851-042X)) · **License:** [MIT License](LICENSE)
@@ -0,0 +1,171 @@
1
+ # OpenADMET-PhysNet
2
+
3
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.24733474.svg)](https://doi.org/10.5281/zenodo.24733474)
4
+ [![CI](https://github.com/ChimdinduDenalexOrakwue/openadmet-physics/actions/workflows/ci.yml/badge.svg)](https://github.com/ChimdinduDenalexOrakwue/openadmet-physics/actions/workflows/ci.yml)
5
+ [![Python 3.11–3.13](https://img.shields.io/badge/python-3.11%20%7C%203.12%20%7C%203.13-1B365D)](#try-it-yourself-quickstart)
6
+ [![Zero Leakage](https://img.shields.io/badge/leakage-0%2F0%2F0%20InChIKey--14%20(17%2F17)-007A5E)](#real-world-impact--key-results)
7
+ [![License: MIT](https://img.shields.io/badge/license-MIT-47505E)](LICENSE)
8
+
9
+ ## The Problem in Plain English
10
+
11
+ Nearly 40% of promising small-molecule drug candidates fail late in clinical development—not because they fail to hit their biological target, but because of what happens everywhere else in the human body. A molecule can accidentally jam the liver's cleanup enzymes (**Cytochrome P450**, causing dangerous drug–drug interactions), clog the heart's electrical rhythm channel (**hERG**, risking fatal arrhythmias), trigger drug-induced liver injury (**DILI**), switch on enzyme induction (**PXR**), or get flushed out of the bloodstream before it can act. **OpenADMET-PhysNet** predicts these real-world drug safety and metabolism risks by uniting 2D/3D physical chemistry, semi-empirical quantum reactivity, cryo-EM/X-ray 3D active-site docking, and molecular foundation models inside a **certified `0 / 0 / 0` zero-leakage benchmark** spanning **17 public suites, 29 endpoints, and 48,261 unique molecules**.
12
+
13
+ ![Zero-Leakage InChIKey-14 Forensics & Hill CYP Calibration](docs/figures/tautomer_leakage_audit.svg)
14
+
15
+ ![29-Endpoint Paired-Bootstrap Win Matrix & Flagship ADMET Results](docs/figures/admet_win_matrix.svg)
16
+
17
+ ---
18
+
19
+ ## Why This Is Hard (And Where Standard AI Breaks)
20
+
21
+ First, **public ADMET benchmarks quietly leak molecules across train and test splits.** Standard canonical SMILES filters only catch identical text strings—they miss keto–enol tautomers, pyrazole protomers, resonance forms, and pentavalent-vs-zwitterionic phosphorus drawings (`P(=O)` vs. `[P+][O-]`) that represent the *exact same chemical* in water. Auditing 17 public suites exposed **143 overlapping training rows across 7 TDC splits**—including **67 zero-false-positive Tier-3 deduplicated rows (`59` globally unique `InChIKey-14` keys; `62` per-suite sum) across 6 TDC suites** (`59/67` rows in extended `TDC::hERG_Karim`, `6` rows across 4 official `admet_group` suites [`CYP2C9/2D6/3A4_Veith`, `hERG`], and `2` rows in `CYP2C19_Veith`; plus `153` intra-train duplicates in `Clearance_Hepatocyte_AZ`).
22
+
23
+ Second, **prospective drug-discovery campaigns suffer severe selection bias and physical blind spots.** In the official `OpenADMET` CYP blind challenge, full dose-response curves (`DRC`) were measured mainly on compounds that already flagged positive in primary screening (`CYP2D6` DRC train median $\mathrm{pIC}_{50} = 4.73$ vs. blind test `2.31`; `CYP2D6_is_TDI` prevalence `21.64%` vs. blind test `5.88%`). Pure fingerprint or graph models trained on biased DRC rows dramatically over-predict potency on blind drug candidates—and miss explicit 3D physical triggers like cationic hERG channel binding, unhindered heme-iron nitrogen ligation in `CYP3A4`, and anionic salt-bridging in `CYP2C9`.
24
+
25
+ ---
26
+
27
+ ## How It Works (The Core Breakthrough)
28
+
29
+ **OpenADMET-PhysNet** fixes both the evaluation integrity and the physical modeling end to end:
30
+
31
+ 1. **Certified `0 / 0 / 0` (`Canonical / Connectivity / InChIKey-14`) Zero-Leakage Curation:** Every training-side canonical, connectivity, and `InChIKey-14` tautomer/charge overlap is excised across all **17/17 suites** (keeping every official test set 100% untouched), paired with zero-overlap **Bemis–Murcko scaffold 5-fold CV**.
32
+ 2. **Train-Only Physical Hill-Equation Calibration (`−32.6%` Blind MAE / `−30.6%` MA-ST-RAE):** Using strictly the companion `49.5 µM` single-concentration *training* screen (`4,376` molecules, live-verified `0/0/0` overlap with both blind tests), a 3-parameter physical **Hill binding isotherm** with inverse-variance precision weights recalibrates the inactive bulk distribution—slashing blind-test Macro MAE from `0.9890` to **`0.6662`** (`−32.6%`, `p₂ = 0.0004` on `CYP1A2`/`CYP2D6`, `0.0260` on `CYP2C9`), cutting official `MA-ST-RAE` from `0.8167` to **`0.5665`** (`−30.6%`), and lifting Macro $R^2$ from `0.1206` to **`0.5646`** (Macro `ρ`: `0.6864 → 0.7417`; archived & CI-verified in [`results/per_benchmark/openadmet__cyp_inhibition_drc_only.json`](results/per_benchmark/openadmet__cyp_inhibition_drc_only.json)).
33
+ 3. **5 Orthogonal Physics + Quantum + Docking + Foundation-Model Pillars:** All **48,261** molecules are featurized with **144** 2D/3D mechanistic descriptors (`99.49%` ETKDGv3/MMFF94s convergence), augmented by **4,233** **GFN2-xTB v6.8.0** ALPB(water) + Fukui quantum reactivity calculations (`98.94%` converged) and **7,505** **AutoDock Vina v1.2.7** active-site docks across 6 experimental human cryo-EM/X-ray structures (`7CN1`, `4D6Z`, `4WNU`, `1R9O`, `2HI4`, `1M13`; `99.40%` converged). Five orthogonal pillars (`Physics_QM_Dock`, `MapLight_Phys_GBDT`, `Smooth_Dense`, `Foundation_ResMLP` combining `CheMeleon` + `MoLFormer-XL` + `ChemBERTa-77M-MLM`, and fine-tuned `CheMeleon_DMPNN`) are combined strictly via out-of-fold-only L2-regularized simplex optimization with zero external bioassay pretraining labels.
34
+
35
+ ---
36
+
37
+ ## Real-World Impact & Key Results
38
+
39
+ Every score below is verified bitwise (`max|Δ| = 0.00e+00`) against [`results/benchmark_summary.json`](results/benchmark_summary.json) and live-recomputed in CI directly from [`results/preds/*.npz`](results/preds/) (5,000-resample paired bootstrap):
40
+
41
+ - **Broad Statistically Verified Wins Across All 29 Endpoints:**
42
+ - Beats strong **Morgan ECFP4 + LightGBM** on **28/29** endpoints (**24/29** at two-sided `p₂ < 0.05`).
43
+ - Beats end-to-end fine-tuned **CheMeleon 2048-d D-MPNN** on **28/29** endpoints (**18/29** at `p₂ < 0.05`).
44
+ - Beats **MapLight Multi-FP + RDKit2D/MQN GBDT** on **27/29** endpoints (**20/29** one-sided `p₁ < 0.05`, **17/29** two-sided `p₂ < 0.05`).
45
+ - Beats **Multi-Foundation-Model Pure ResMLP** on **23/29** endpoints (**16/29** at `p₂ < 0.05`).
46
+ - **Controlled Physics Ablations (same neural architecture + 144 physics descriptors):** `CheMeleon_DMPNN_Physics` beats `Pure` on **22/29** endpoints (**15/17** suites), and `FM_Physics_MLP` beats `Pure` on **21/29**.
47
+ - **Zero-Training 3D Docking & Biophysical Signal:** With **zero ML training**, Vina docking into cryo-EM human **hERG (`7CN1`)** achieves univariate **AUROC `0.6542`** (`p = 7.01 × 10⁻³`) on official `TDC::hERG` (`n = 132`) and **`0.6678`** (`p = 9.93 × 10⁻¹²`) pooled (`n = 635`). Blind mechanistic physics recovers `CYP1A2` planarity (`ρ = +0.5620`), `CYP3A4` bulk-lipophilicity (`+0.4959`) & unhindered heme-Fe $\mathrm{sp}^2$ N (`+0.3168`), `CYP2C9` $\mathrm{LogD}_{7.4}$ (`+0.4783`) & Vina `1R9O` (`−0.3799`), `CYP2D6` cationic lipophilicity (`+0.3227`), and `PXR` hydrophobic bulk (`+0.6015`).
48
+
49
+ ### 1. Official & Extended TDC Strict Scaffold Splits (13 Suites, Certified `0/0/0`)
50
+
51
+ | TDC Endpoint (Metric) | Morgan LGBM | MapLight GBDT | FM Pure MLP | CheMeleon Pure | Physics Only | **PhysNet Full `[95% Boot CI]`** | `p₂` vs. Morgan / MapLight |
52
+ |---|---:|---:|---:|---:|---:|:---:|:---:|
53
+ | `CYP2C9_Veith` (AUPRC) | 0.7542 | 0.7914 | 0.7880 | 0.7987 | 0.7786 | **0.8054** `[0.7724, 0.8358]` | **0.0004** / **0.0096** |
54
+ | `CYP2D6_Veith` (AUPRC) | 0.6427 | 0.7271 | 0.7071 | 0.7206 | 0.7097 | **0.7469** `[0.7053, 0.7859]` | **0.0004** / **0.0024** |
55
+ | `CYP3A4_Veith` (AUPRC) | 0.8530 | 0.8897 | 0.8759 | 0.8926 | 0.8579 | **0.8957** `[0.8800, 0.9099]` | **0.0004** / **0.0164** |
56
+ | `CYP2C9_Substrate` (AUPRC) | 0.3652 | **0.4248** | 0.3545 | 0.4051 | 0.4155 | 0.4148 `[0.2914, 0.5750]` | 0.4323 / 0.7239 |
57
+ | `CYP2D6_Substrate` (AUPRC) | 0.6370 | 0.6902 | 0.7003 | 0.6793 | 0.6990 | **0.7249** `[0.5996, 0.8363]` | **0.0016** / 0.0884 |
58
+ | `CYP3A4_Substrate` (AUROC) | 0.6565 | 0.6364 | 0.6370 | 0.6257 | **0.6910** | 0.6693 `[0.5684, 0.7648]` | 0.7262 / 0.1912 |
59
+ | `hERG`† (AUROC, `0/0/0`) | 0.8001 | 0.8697 | 0.8349 | 0.8209 | 0.8679 | **0.8703** `[0.7948, 0.9348]` | **0.0112** / 0.9606 |
60
+ | `DILI` (AUROC) | 0.8730 | 0.8961 | **0.9383** | 0.9048 | 0.8926 | 0.9248 `[0.8639, 0.9722]` | **0.0472** / 0.0608 |
61
+ | `Clearance_Hepatocyte_AZ` (`ρ`) | 0.3923 | 0.4760 | 0.4793 | 0.4568 | **0.5294** | 0.5166 `[0.4111, 0.6111]` | **0.0028** / 0.0872 |
62
+ | `Clearance_Microsome_AZ` (`ρ`) | 0.5658 | 0.6186 | 0.5923 | 0.5940 | 0.6349 | **0.6365** `[0.5472, 0.7146]` | **0.0176** / 0.2196 |
63
+ | `CYP1A2_Veith` (Ext., AUPRC) | 0.9190 | 0.9482 | 0.9464 | 0.9506 | 0.9381 | **0.9537** `[0.9453, 0.9617]` | **0.0004** / **0.0004** |
64
+ | `CYP2C19_Veith` (Ext., AUPRC) | 0.8564 | 0.8891 | 0.8853 | 0.8881 | 0.8742 | **0.9026** `[0.8866, 0.9172]` | **0.0004** / **0.0008** |
65
+ | `hERG_Karim`† (Ext., AUROC) | 0.8550 | 0.8967 | 0.8827 | 0.8698 | 0.8753 | **0.8979** `[0.8860, 0.9095]` | **0.0004** / 0.5603 |
66
+
67
+ *†Evaluated strictly after excising 7 train leaks and merging 7 intra-train duplicates in `TDC::hERG` (`523 → 509`), and excising 117 deduplicated train leaks (`121` raw `InChIKey-14` overlaps) plus merging 125 intra-train duplicates in `TDC::hERG_Karim` (`10,755 → 10,513`, `0/0/0` post-clean).*
68
+
69
+ ### 2. Official OpenADMET Prospective Blind Challenges (4 Suites / 16 Endpoints)
70
+
71
+ | Challenge / Endpoint (Metric) | `n_test` | Morgan LGBM | MapLight GBDT | FM Pure MLP | CheMeleon Pure | **PhysNet Full** | Secondary Blind Metrics | `p₂` vs. MapLight |
72
+ |---|---:|---:|---:|---:|---:|:---:|:---:|:---:|
73
+ | **CYP Direct Inhibition (4-Isoform Macro, MAE ↓)** | **750** | 0.8197 | 0.7147 | 0.6865 | 0.7268 | **0.6662** | **MA-ST-RAE 0.5665, `ρ` 0.7417, `R²` 0.5646** | **4/4 `p₂ ≤ 0.0016`** |
74
+ | — `CYP1A2 / 2C9 / 2D6 / 3A4` MAE | 748–750 | .773 / .686 / 1.09 / .730 | .700 / .603 / .915 / .641 | .729 / .582 / .834 / .601 | .721 / .603 / .942 / .642 | **.670 / .564 / .819 / .612** | `ρ`: .803 / .810 / .537 / .818 | **.0016 / .0004 / .0004 / .0004** |
75
+ | **CYP TDI (2-Isoform Macro, MCC ↑)** | **750** | 0.2895 | 0.3043 | 0.2877 | 0.2793 | **0.3262** | **AUROC 0.7726, AUPRC 0.4468, F1 0.4537** | `2D6`: .384 / `3A4`: .828 |
76
+ | **PXR Induction Phase 1+2 (`pEC₅₀` MAE ↓)** | **513** | 0.5872 | 0.5014 | 0.4944 | 0.4873 | **0.4729** `[0.430, 0.518]` | **`ρ` 0.7926, `R²` 0.5110, AUC₅ 0.8980** | **0.0008** |
77
+ | **ExpansionRx 9-ADME Macro (MAE ↓)**\* | **2,282** | 0.3663 | 0.3251 | 0.3180 | 0.3297 | **0.3072** | **`ρ` 0.6804, `R²` 0.4173** | **9/9 wins (7/9 `p₂ ≤ 0.0112`)** |
78
+
79
+ *\*`ExpansionRx` `LogD` MAE is in raw `LogD` units (`0.4617`, `ρ = 0.8073`); the other 8 tasks (`KSOL`, `HLM/MLM CLint`, `Caco-2 Papp/Efflux`, `MPPB`, `MBPB`, `MGMB`) use `log10(x + 1)` units per challenge protocol.*
80
+
81
+ > ### What It Does Not Do (Honest Limitations)
82
+ > - **Global `GFN2-xTB` descriptors invert on `CYP3A4_TDI`:** In univariate analysis on time-dependent inactivation, global quantum reactivity shifts in the inverse direction (`-gap` reactive direction AUROC `0.4406`, i.e., `+gap` AUROC `0.5594` with positives wider at `2.70` vs. `2.57 eV`; $f^-_{\max}$ `0.4460`, $G_{\text{solv}}$ `0.4542`) because scaffold size and saturation confound global HOMO–LUMO gaps—which is why `PhysNet` pairs QM descriptors with explicit reactive-metabolite site-of-metabolism physics rather than trusting raw global QM alone.
83
+ > - **Zero-parameter Hammett $\mathrm{p}K_a$ on electron-deficient heterocycles:** Our fast rule-based micro-$\mathrm{p}K_a$ estimator degrades on electron-deficient SiriusT3 heterocycles (`MAE 2.996–3.415`); high-accuracy $\mathrm{p}K_a$ for exotic medicinal-chemistry rings still benefits from dedicated quantum or experimental titration.
84
+ > - **Small-cohort statistical power:** On compact endpoints (`CYP2C9_Substrate`, `CYP3A4_Substrate`, `TDC::hERG`), `PhysNet` ties or edges strong `MapLight`/`FM` baselines within bootstrap uncertainty—every paired `p`-value is reported candidly above and in `results/benchmark_summary.json`.
85
+
86
+ ---
87
+
88
+ ## Try It Yourself (Quickstart)
89
+
90
+ ### Install & Live-Verify All 29 Endpoints
91
+
92
+ ```bash
93
+ # Option A: Install library & CLI from PyPI (Python 3.11–3.13)
94
+ uv add openadmet-physics
95
+ # or: pip install openadmet-physics
96
+
97
+ # Option B: Clone & live-verify all 29 endpoints
98
+ git clone https://github.com/ChimdinduDenalexOrakwue/openadmet-physics.git
99
+ cd openadmet-physics
100
+
101
+ # Recommended: install with uv (Python 3.11–3.13)
102
+ uv venv --python 3.12 && uv pip install -e ".[dev]"
103
+
104
+ # Or with pip
105
+ pip install -e ".[dev]"
106
+
107
+ # 1. Run unit & chemical-mechanism invariant tests
108
+ uv run pytest -v tests/test_openadmet.py
109
+
110
+ # 2. Live-recompute ALL 29/29 headline metrics from archived predictions + audit 0/0/0 JSONs
111
+ uv run python verify_openadmet.py --ci
112
+ ```
113
+
114
+ ### 6-Line Python Example (Mechanistic Drug-Safety Profiler)
115
+
116
+ ```python
117
+ from openadmet_physics import canonicalize_smiles, featurize_single_smiles, mechanistic_flags
118
+
119
+ can, _ = canonicalize_smiles("COc1ccc(CCN2CCC(Nc3nc4ccccc4n3Cc3ccc(F)cc3)CC2)cc1") # Astemizole
120
+ phys = featurize_single_smiles((can, True))
121
+ print(f"pKa={phys['phys_est_basic_pka_max']:.1f} LogD7.4={phys['phys_est_logd_ph74']:.2f} flags={mechanistic_flags(phys)}")
122
+ ```
123
+
124
+ ### CLI Inspector & Featurizer
125
+
126
+ ```bash
127
+ # Summarize all 29 verified benchmark endpoints & zero-leakage status (from repo checkout)
128
+ openadmet-physics inspect
129
+
130
+ # Profile Astemizole (hERG risk) and Ketoconazole (CYP heme-Fe binder)
131
+ openadmet-physics featurize --smiles \
132
+ "COc1ccc(CCN2CCC(Nc3nc4ccccc4n3Cc3ccc(F)cc3)CC2)cc1" \
133
+ "CC(=O)N1CCN(c2ccc(OC[C@H]3CO[C@](Cn4ccnc4)(c4ccc(Cl)cc4Cl)O3)cc2)CC1"
134
+ ```
135
+
136
+ ---
137
+
138
+ ## Technical Architecture, Full Reproduction & Sister Projects
139
+
140
+ - **Verified audit & benchmark artifacts:** [`data/curated/dataset_audit.json`](data/curated/dataset_audit.json), [`data/curated/openadmet_cyp_hill_calibration.json`](data/curated/openadmet_cyp_hill_calibration.json), [`results/benchmark_summary.json`](results/benchmark_summary.json), [`results/per_benchmark/openadmet__cyp_inhibition_drc_only.json`](results/per_benchmark/openadmet__cyp_inhibition_drc_only.json), [`results/mechanistic_physics_audit.json`](results/mechanistic_physics_audit.json), [`results/preds/`](results/preds/), and [`docs/figures/generate_hero_svgs.py`](docs/figures/generate_hero_svgs.py).
141
+ - **Full end-to-end reproduction:** Install optional extras (`uv pip install -e ".[gbdt,docking,gpu]"`), place `xtb` v6.8.0 and `vina` v1.2.7 in `bin/`, and run the pipeline scripts in [`src/`](src/) (`curate_datasets` → `make_scaffold_folds` → `calibrate_openadmet_cyp_train` → `physics_features` → `compute_xtb_qm` → `compute_vina_docking` → `gpu_foundation_dmpnn` → `train_local_gbdt_and_stack` → `structural_physics_analysis` → `verify_openadmet.py`).
142
+ - **Preprint (Zenodo):** [DOI: 10.5281/zenodo.24733474](https://doi.org/10.5281/zenodo.24733474) ([Zenodo Record 24733474](https://zenodo.org/records/24733474)).
143
+
144
+ ### Sister Projects
145
+ - **[ThermoIDP](https://github.com/ChimdinduDenalexOrakwue/thermoidp)** ([thermoidp.com](https://thermoidp.com) · [DOI: 10.5281/zenodo.24708775](https://doi.org/10.5281/zenodo.24708775)) — First-principles disordered-protein clumping & disorder-gated pLM fusion.
146
+ - **[ThermoAb](https://github.com/ChimdinduDenalexOrakwue/thermoab)** ([thermoab.dev](https://thermoab.dev) · [DOI: 10.5281/zenodo.24727881](https://doi.org/10.5281/zenodo.24727881)) — Signed 3D axial electrostatics & physics-gated antibody developability.
147
+ - **[ThermoRNA](https://github.com/ChimdinduDenalexOrakwue/thermorna)** ([thermorna.com](https://thermorna.com) · [DOI: 10.5281/zenodo.24733470](https://doi.org/10.5281/zenodo.24733470)) — Pure-Rust multi-temperature Turner-2004 RNA partition function & lossless mRNA shelf-life design.
148
+
149
+ ---
150
+
151
+ ## Citation & License
152
+
153
+ If you use OpenADMET-PhysNet, its zero-leakage `InChIKey-14` benchmark curation, Hill-calibrated CYP modeling, or multi-scale physics + quantum + docking pipeline, please cite the Zenodo preprint:
154
+
155
+ > Chimdindu Denalex Orakwue (2026). *OpenADMET-PhysNet: Zero-Leakage InChIKey-14 Forensics, Hill-Calibrated Metabolism, and Multi-Scale Physics Fusion for Drug Safety and ADMET Prediction*. Zenodo. https://doi.org/10.5281/zenodo.24733474
156
+
157
+ ```bibtex
158
+ @misc{orakwue_2026_24733474,
159
+ author = {Orakwue, Chimdindu Denalex},
160
+ title = {OpenADMET-PhysNet: Zero-Leakage InChIKey-14 Forensics,
161
+ Hill-Calibrated Metabolism, and Multi-Scale Physics
162
+ Fusion for Drug Safety and ADMET Prediction},
163
+ month = dec,
164
+ year = 2026,
165
+ publisher = {Zenodo},
166
+ doi = {10.5281/zenodo.24733474},
167
+ url = {https://doi.org/10.5281/zenodo.24733474}
168
+ }
169
+ ```
170
+
171
+ **Author:** Chimdindu Denalex Orakwue ([ORCID: 0009-0003-9851-042X](https://orcid.org/0009-0003-9851-042X)) · **License:** [MIT License](LICENSE)
@@ -0,0 +1,91 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.24"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "openadmet-physics"
7
+ version = "0.1.0"
8
+ description = "Zero-leakage (0/0/0 InChIKey-14) physics-grounded ADMET drug safety & metabolism engine (GFN2-xTB, 3D Vina docking, Hill-calibrated CYP)."
9
+ readme = "README.md"
10
+ license = { text = "MIT" }
11
+ requires-python = ">=3.11"
12
+ authors = [
13
+ { name = "Chimdindu Denalex Orakwue" },
14
+ ]
15
+ keywords = [
16
+ "admet",
17
+ "drug-discovery",
18
+ "cheminformatics",
19
+ "biophysics",
20
+ "herg",
21
+ "cyp450",
22
+ "toxicology",
23
+ "rdkit",
24
+ ]
25
+ classifiers = [
26
+ "Development Status :: 4 - Beta",
27
+ "Intended Audience :: Science/Research",
28
+ "License :: OSI Approved :: MIT License",
29
+ "Operating System :: OS Independent",
30
+ "Programming Language :: Python :: 3",
31
+ "Programming Language :: Python :: 3.11",
32
+ "Programming Language :: Python :: 3.12",
33
+ "Programming Language :: Python :: 3.13",
34
+ "Topic :: Scientific/Engineering :: Bio-Informatics",
35
+ "Topic :: Scientific/Engineering :: Chemistry",
36
+ "Topic :: Scientific/Engineering :: Physics",
37
+ ]
38
+ dependencies = [
39
+ "numpy>=1.26",
40
+ "pandas>=2.2",
41
+ "scipy>=1.13",
42
+ "scikit-learn>=1.5",
43
+ "rdkit>=2024.3",
44
+ "joblib>=1.4",
45
+ "matplotlib>=3.9",
46
+ ]
47
+
48
+ [project.optional-dependencies]
49
+ gbdt = [
50
+ "lightgbm>=4.3",
51
+ "xgboost>=2.1",
52
+ "catboost>=1.2",
53
+ "pyarrow>=16.0",
54
+ ]
55
+ docking = [
56
+ "meeko>=0.6",
57
+ ]
58
+ gpu = [
59
+ "torch>=2.4",
60
+ "transformers>=4.45",
61
+ "chemprop==2.2.2",
62
+ ]
63
+ dev = [
64
+ "pytest>=8.0",
65
+ ]
66
+
67
+ [project.scripts]
68
+ openadmet-physics = "openadmet_physics.predict_cli:main"
69
+
70
+ [project.urls]
71
+ Homepage = "https://github.com/ChimdinduDenalexOrakwue/openadmet-physics"
72
+ Repository = "https://github.com/ChimdinduDenalexOrakwue/openadmet-physics"
73
+ Issues = "https://github.com/ChimdinduDenalexOrakwue/openadmet-physics/issues"
74
+ Preprint = "https://doi.org/10.5281/zenodo.24733474"
75
+
76
+ [tool.hatch.build.targets.wheel]
77
+ packages = ["src/openadmet_physics"]
78
+
79
+ [tool.hatch.build.targets.sdist]
80
+ include = [
81
+ "/src/openadmet_physics",
82
+ "/tests",
83
+ "/README.md",
84
+ "/LICENSE",
85
+ "/pyproject.toml",
86
+ ]
87
+
88
+ [tool.pytest.ini_options]
89
+ testpaths = ["tests"]
90
+ pythonpath = ["src"]
91
+ addopts = "-q"
@@ -0,0 +1,28 @@
1
+ """OpenADMET-PhysNet: Zero-leakage physics-grounded ADMET drug safety & metabolism engine."""
2
+
3
+ from __future__ import annotations
4
+
5
+ __version__ = "0.1.0"
6
+
7
+ from .curate_datasets import canonical_connectivity, canonicalize_smiles, inchi_key14
8
+ from .featurizers import smiles_to_maplight_fp, smiles_to_morgan_fp, smiles_to_rdkit2d_mqn
9
+ from .metrics_and_stats import bootstrap_ci, compute_metric, paired_bootstrap_test, st_rae
10
+ from .physics_features import compute_physics_dataframe, featurize_single_smiles
11
+ from .predict_cli import mechanistic_flags
12
+
13
+ __all__ = [
14
+ "__version__",
15
+ "bootstrap_ci",
16
+ "canonical_connectivity",
17
+ "canonicalize_smiles",
18
+ "compute_metric",
19
+ "compute_physics_dataframe",
20
+ "featurize_single_smiles",
21
+ "inchi_key14",
22
+ "mechanistic_flags",
23
+ "paired_bootstrap_test",
24
+ "smiles_to_maplight_fp",
25
+ "smiles_to_morgan_fp",
26
+ "smiles_to_rdkit2d_mqn",
27
+ "st_rae",
28
+ ]