Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- app/.source-revision +1 -1
- app/services/rdkit_interactions.py +12 -4
app/.source-revision
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
2e4445e46d29dcea0ab2be13c8085a0457b3c700
|
app/services/rdkit_interactions.py
CHANGED
|
@@ -379,7 +379,9 @@ def calculate_interactions(protein_pdb: str, ligand_pdb: str, ligand_smiles: str
|
|
| 379 |
"donor_atom_index": did, "acceptor_atom_index": aid,
|
| 380 |
"donor_residue": _residue(donor), "acceptor_residue": _residue(acceptor_mol.GetAtomWithIdx(aid)),
|
| 381 |
"distance": round(distance, 3), "donor_h_acceptor_angle": round(best_angle, 2),
|
| 382 |
-
"method": "RDKit donor/acceptor chemical features +
|
|
|
|
|
|
|
| 383 |
})
|
| 384 |
|
| 385 |
# Hydrophobic features are chemically classified by RDKit's BaseFeatures.
|
|
@@ -430,17 +432,23 @@ def calculate_interactions(protein_pdb: str, ligand_pdb: str, ligand_smiles: str
|
|
| 430 |
}
|
| 431 |
return {
|
| 432 |
**categories,
|
| 433 |
-
"status": "COMPUTED",
|
| 434 |
"engine": "RDKit",
|
| 435 |
"engine_version": Chem.rdBase.rdkitVersion,
|
| 436 |
-
"method": "RDKit BaseFeatures chemical perception with
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 437 |
"thresholds": dict(_THRESHOLDS),
|
| 438 |
"counts": {key: len(value) for key, value in categories.items()},
|
| 439 |
"limitations": [
|
| 440 |
"Interaction classifications depend on the supplied protonation/tautomer state and prepared coordinates.",
|
| 441 |
"RDKit feature perception is a computational model, not experimental evidence of binding.",
|
| 442 |
"Only the provided receptor atoms and docked pose are evaluated; omitted waters, ions, cofactors, and alternate conformations are not inferred.",
|
| 443 |
-
"Residues listed in protein_parse.residues_skipped were excluded from chemical feature perception; a DEGRADED status must not be interpreted as complete receptor coverage.",
|
|
|
|
| 444 |
"Distances and angles are geometric screens, not interaction energies or binding-affinity measurements.",
|
| 445 |
],
|
| 446 |
}
|
|
|
|
| 379 |
"donor_atom_index": did, "acceptor_atom_index": aid,
|
| 380 |
"donor_residue": _residue(donor), "acceptor_residue": _residue(acceptor_mol.GetAtomWithIdx(aid)),
|
| 381 |
"distance": round(distance, 3), "donor_h_acceptor_angle": round(best_angle, 2),
|
| 382 |
+
"method": "RDKit donor/acceptor chemical features + RDKit-generated-H geometry",
|
| 383 |
+
"evidence_class": "Heuristic",
|
| 384 |
+
"hydrogen_coordinates": "RDKit-generated with AddHs(addCoords=True); not experimentally observed",
|
| 385 |
})
|
| 386 |
|
| 387 |
# Hydrophobic features are chemically classified by RDKit's BaseFeatures.
|
|
|
|
| 432 |
}
|
| 433 |
return {
|
| 434 |
**categories,
|
| 435 |
+
"status": "DEGRADED" if protein_parse["residues_skipped"] else "COMPUTED",
|
| 436 |
"engine": "RDKit",
|
| 437 |
"engine_version": Chem.rdBase.rdkitVersion,
|
| 438 |
+
"method": "RDKit BaseFeatures chemical perception with coordinate geometry",
|
| 439 |
+
"hydrogen_coordinate_provenance": {
|
| 440 |
+
"source": "RDKit AddHs(addCoords=True) from prepared heavy-atom coordinates",
|
| 441 |
+
"experimental_hydrogen_coordinates": False,
|
| 442 |
+
"interpretation": "Hydrogen-bond angles involving generated hydrogens are model-dependent geometric candidates, not directly observed geometry.",
|
| 443 |
+
},
|
| 444 |
"thresholds": dict(_THRESHOLDS),
|
| 445 |
"counts": {key: len(value) for key, value in categories.items()},
|
| 446 |
"limitations": [
|
| 447 |
"Interaction classifications depend on the supplied protonation/tautomer state and prepared coordinates.",
|
| 448 |
"RDKit feature perception is a computational model, not experimental evidence of binding.",
|
| 449 |
"Only the provided receptor atoms and docked pose are evaluated; omitted waters, ions, cofactors, and alternate conformations are not inferred.",
|
| 450 |
+
"Residues listed in protein_parse.residues_skipped were excluded from chemical feature perception; a DEGRADED status must not be interpreted as complete receptor coverage.",
|
| 451 |
+
"Protein backbone amide N donors are excluded because the residue-wise parser does not reconstruct peptide connectivity; this can omit valid backbone hydrogen bonds.",
|
| 452 |
"Distances and angles are geometric screens, not interaction energies or binding-affinity measurements.",
|
| 453 |
],
|
| 454 |
}
|