Pharmacophore predictor (geometric pocket conditioning)
Predicts, for every heavy atom of a ligand, which protein interactions that atom makes: hydrogen bonds, salt bridges, π-stacking, hydrophobic contact and others. Trained on interactions measured in crystal structures rather than on docking scores.
Because the task is to label the atoms of the molecule you supply, a predicted pharmacophore is a substructure of your input by construction — the model cannot invent atoms that are not there.
What it was trained on
| Complexes | 48,150 |
| Unique proteins | 8,121 |
| Unique ligands | 25,042 |
| Labelled heavy atoms | 1,195,427 |
| Source | Protein Data Bank, X-ray, ≤ 2.5 Å |
The production checkpoint was fitted on 33,144 complexes (train plus validation of the unseen-protein split). The metrics below come from the evaluation run, on a test set this checkpoint never saw.
Results
| Regime | Macro AUC | Pocket gain: forest | descriptor net | geometric net | Rule baseline |
|---|---|---|---|---|---|
| unseen ligand | 0.9887 | +0.0083 | +0.0061 | +0.0363 | 0.7722 |
| unseen protein | 0.9912 | +0.0007 | +0.0028 | +0.0264 | 0.7615 |
| both unseen | 0.9815 | +0.0061 | +0.0120 | +0.0470 | 0.8155 |
"Pocket gain" is the macro AUC lost when the pocket is removed, each model measured against its own control. For the networks the control is the same architecture with the pocket masked — identical parameter count, depth and schedule — so the difference is the conditioning rather than capacity.
Read the rule baseline before trusting the headline
Interactions are defined geometrically: a salt bridge is a charged ligand atom within 5.0 Å of an oppositely charged protein atom. This model is given per-atom distances to nearby protein atoms, so it has much of what that definition consumes. Hand-coded rules reproducing the definitions, with no parameters fitted, already reach the "Rule baseline" column above.
So the model should be judged on how far it improves on that column, not on how far it is above chance. Given a pose, this task is largely determined by geometry.
Limitations
- A pose is required for site-specific answers. The model scores atoms from their distances to pocket atoms. Without a bound conformation it falls back to a ligand-only answer: which atoms of this molecule tend to interact, not which atoms bind your protein.
- Pockets are defined by a bound ligand. Residues are selected within 6.5 Å of the ligand, so apo structures need a pocket finder first, and that distribution shift is untested here.
- Proteins are grouped by UniProt accession, not sequence identity, so the unseen-protein split is easier than clustering at 30% identity would be.
- No prospective validation. All numbers are retrospective on held-out structures.
- Acyclic ligands and cofactors are excluded from training.
Usage
from huggingface_hub import hf_hub_download
from pharmacophore import model as Model, serve
path = hf_hub_download("NisargRhino/pharmacophore-geometric", "geometric.pt")
# Ligand-only: which atoms of this molecule tend to interact
serve.predict("CC(=O)Oc1ccccc1C(=O)O", path=path)
# Site-specific: needs the bound pose
# pocket = serve.pocket_from_pdb(pdb_text, ligand_mol)
# serve.predict(smiles, pocket_record=pocket, path=path)
The checkpoint stores its own feature dimensions and interaction vocabulary, and refuses to load into code that defines them differently, so a silent mismatch is not possible.
Citation
See the accompanying manuscript. [CITATION TO BE ADDED ON PUBLICATION]