Skip to content

Re-docking benzamidine into trypsin with g-xTB

Does a g-xTB interaction energy put benzamidinium back where the crystal has it? Benzamidine binds the S1 pocket of trypsin with its amidinium group on Asp189 (PDB 3PTB, 1.7 Å). The test samples rigid poses of the ligand around that site, scores them, relaxes the best ten and measures their distance from the crystal pose.

Build script · Run script · Figure script

The native preparation workflow uses Atomli chemistry and provides an MLIP simulation script with separate protein and ligand layers.

Crystal structures carry no hydrogens, so this step uses PDBFixer, OpenMM and RDKit, not atomli. It runs in its own environment (pip install pdbfixer openmm rdkit). PDBFixer protonates the protein at pH 7.4 (Asp189 anionic) and a hydrogen-only Amber14 minimization relaxes the new atoms with the heavy atoms restrained. RDKit adds the hydrogens of benzamidinium (+1) to the crystal heavy atoms. Waters are deleted.

fixer = PDBFixer(filename="protein-crystal.pdb") # ATOM records of 3PTB
fixer.findMissingAtoms(); fixer.addMissingAtoms()
fixer.addMissingHydrogens(7.4)
# ...hydrogen-only minimization, then the pocket cluster:
# whole residues with a heavy atom within 6 Å of the ligand, cut bonds capped with H

The calculation model is a pocket cluster of 22 residues and 304 atoms, including 10 cap hydrogens placed along the severed bonds (N–H 1.01 Å, C–H 1.09 Å). The cluster has charge −1 from its Asp, Lys and Arg residues, the ligand +1, the complex 0. The calcium ion lies 15.1 Å from the cluster and is left out. The full protein with the ligand has 8222 atomic orbitals, beyond the GPU limit of 1088; a CPU attempt passed 9 GB without finishing one SCF and was stopped.

Trypsin as a ribbon with benzamidinium in the S1 pocket and the calcium ion

The run step reads the cluster and ligand. Poses are uniform random rotations with translations inside a 3.5 Å sphere around the crystal ligand centroid (NumPy seed 20261111); a pose with a heavy-atom contact under 2.2 Å to the protein is rejected. 300 survivors come from 20000 random draws. Each is scored as E(cluster + ligand) − E(cluster) − E(ligand at the same geometry) with g-xTB on the GPU. The ten lowest rigid scores, and the crystal pose, are then relaxed with the cluster frozen and rescored.

calc = XTB(method="gxtb", charge=0, device="gpu")
e_int = energy(complex_at(pose)) - energy(cluster) - energy(ligand_at(pose))
atoms = complex_at(pose)
atoms.set_constraint(FixAtoms(indices=range(len(cluster))))
atoms.calc = calc
BFGS(atoms).run(fmax=0.05, steps=200)

RMSD uses the nine ligand heavy atoms without refitting, and is the minimum over the four symmetry-equivalent labelings: the ring flip (C2↔C6, C3↔C5) and the exchange of the two amidinium nitrogens.

Lowest relaxed interaction energy
-6.23eV
RMSD of that pose to the crystal pose
0.44Å
Best rank of a pose within 2 Å (rigid)
2
Rigid poses scored
300

Each point is one scored pose; 5 rigid poses above 8 eV are off the axis. Click a relaxed pose, a crystal point or one of the ten relaxation starting poses to show it.

Each point is one scored pose; 5 rigid poses above 8 eV are off the axis. Click a relaxed pose, a crystal point or one of the ten relaxation starting poses to show it.

Trypsin cartoon with benzamidinium (highlighted) in the S1 pocket:

Trypsin cartoon with benzamidinium (highlighted) in the S1 pocket: crystal: -5.69 eV, RMSD 0.00 Å

PoseStageInteraction energy (eV)RMSD (Å)
p260-relaxedrelaxed-6.2270.44
p068-relaxedrelaxed-6.2150.36
p065-relaxedrelaxed-6.2130.35
p056-relaxedrelaxed-6.1980.43
p025-relaxedrelaxed-6.1590.36
p261-relaxedrelaxed-6.1220.33
p064-relaxedrelaxed-6.1110.38
p091-relaxedrelaxed-6.1050.39
p250-relaxedrelaxed-5.0011.96
p282-relaxedrelaxed-4.6653.50
p065rigid-4.6472.00
p261rigid-4.5551.58
p056rigid-4.4481.10
p025rigid-4.4421.57
p250rigid-4.2562.08
p064rigid-4.2511.18
p091rigid-4.2351.95
p260rigid-4.2231.33
p282rigid-4.2203.56
p068rigid-4.1732.31
crystal-relaxedrelaxed-6.1590.18
crystalrigid-5.6920.00

Interaction energies: atomli XTB(method='gxtb', device='gpu'), atomli 0.1.18: E(cluster+ligand) - E(cluster) - E(ligand at the same geometry), no deformation energy.Poses: 300 rigid poses, NumPy seed 20261111, uniform rotations, translations in a 3.5 Å sphere, heavy-atom clashes under 2.2 Å rejected.RMSD: benzamidinium heavy atoms against the crystal pose, minimum over the ring-flip and amidinium N1/N2 equivalences.Structure: PDB 3PTB, trypsin with benzamidine at 1.7 Å resolution; hydrogens added with PDBFixer/OpenMM at pH 7.4, not by atomli.

Rigid scores alone are dominated by clashes: the lowest is −4.65 eV at 2.00 Å, and the first pose under 2 Å has rank 2. 28 of 300 poses lie within 2 Å. After relaxation, 8 of the ten poses converge to the crystal site, within 0.44 Å of it, between −6.23 and −6.11 eV. The other 2 stay at 1.96 and 3.50 Å, 1.10 eV or more above. The lowest, −6.23 eV, sits 0.44 Å from the crystal pose, so rank 1 recovers it.

The ranking inside the crystal basin is not resolved. The 0.12 eV spread between the eight poses is small, and the crystal pose relaxed in the same frozen pocket (−6.16 eV, 0.18 Å from its start) ranks 5 of 11. The GPU and CPU energies of one complex differ by 1.4 meV. The protocol fixed the ten relaxations before any scoring and was run once, without tuning.

The model is a rigid ligand in a frozen, hydrogen-added crystal pocket: one conformer, no solvent, no entropy, semiempirical interaction energies without ligand deformation energy. The test shows that the score has a funnel toward the crystal site. It does not give a binding affinity.

study.json holds every number on this page.

Terminal window
prep-venv/bin/python python/trypsin-build.py --pdb models/proteins/3PTB.pdb --output models/proteins
python python/trypsin-run.py --models models/proteins --output studies/trypsin-redocking
python python/trypsin-figures.py --models models/proteins --output figures