Guides / Molecular dynamics

pose-stabilitydocking-validationligand-rmsdcontact-occupancyopenmm

Using molecular dynamics to check whether a docked pose holds

A short simulation in water tests whether a docked ligand keeps its position and key contacts under thermal motion. Here are the protocol and the metrics.

Updated 5 min read

A docked pose is a static picture produced with a rigid or nearly rigid receptor, no explicit water and a scoring function built for speed. Molecular dynamics tests that picture. The complex is solvated, equilibrated and run for tens of nanoseconds in several replicas, and the question is whether the ligand keeps its position and its key contacts under thermal motion. A pose that drifts or falls apart in independent runs is suspect. A pose that holds has passed a necessary test, not a sufficient one, because nanosecond runs cannot see the slow events that decide real binding.

What docking gets wrong that dynamics can catch

Docking programs such as AutoDock Vina place a flexible ligand in a fixed protein and score poses with an empirical function, as explained in how AutoDock Vina scores a pose. Three simplifications are built in. The protein does not respond to the ligand. Water is absent, so a hydrogen bond scores the same whether or not water would compete for it. And the pose is a single minimum of a scoring function, not a state with a population.

Dynamics relaxes all three. Side chains move, water enters and leaves, and the ligand explores around its starting pose. If the docked pose relied on a side chain being frozen in a shape it would not hold, on a hydrogen bond that water immediately replaces, or on a clash the scoring function tolerated, the ligand drifts. Dynamics after docking is therefore a filter, applied after the pose has been read by eye and before any expensive experiment.

The protocol, from pose to production

The steps follow the rest of this cluster, with the ligand added.

  1. Take the docked pose with the receptor in the exact frame used for docking. Confirm the ligand's protonation state and tautomer match the pH you care about.
  2. Parametrise the ligand with GAFF or an Open Force Field release and compute its charges. Use the same AMBER family for the protein.
  3. Solvate with TIP3P, pad by at least one nanometre, neutralise and add salt.
  4. Minimise. Heat under heavy-atom restraints on both protein and ligand. Switch on the barostat. Release the restraints in stages.
  5. Run production in at least three replicas with different random seeds, tens of nanoseconds each. Save frames every ten picoseconds or so.

On the Advanced Modeling page, MolForge runs molecular dynamics with OpenMM, and a docked pose from the same page can serve as the starting structure for such a check.

The four metrics that decide

Ligand RMSD relative to the protein comes first. Fit each frame on the alpha carbons of the binding-site residues, then compute the heavy-atom RMSD of the ligand from its starting pose. Fitting on the site rather than the whole protein keeps a distant floppy domain from inflating the number. The details and traps of this measurement are in RMSD and RMSF, reading a trajectory.

Contact occupancy comes second. Identify the two or three interactions that make the pose, usually a hydrogen bond or a salt bridge, and measure the fraction of frames in which each is present using a distance criterion. An interaction present in ninety percent of frames is a feature of the pose. One present in twenty percent was a feature of the docking picture only.

Buried fraction or solvent exposure of the ligand comes third. A ligand that gradually gains solvent-accessible surface is working its way out of the pocket even before its RMSD says so.

Water intrusion comes fourth. Count water molecules within a few angstroms of the ligand's polar groups. A sudden rise means a hydrogen bond to the protein has been replaced by one to water, which often precedes drift.

Worked example, ibuprofen in cyclooxygenase-2

Ibuprofen is a carboxylic acid that binds in the cyclooxygenase channel with its carboxylate at the channel mouth, where arginine 120 and tyrosine 355 offer a salt bridge and a hydrogen bond, and its aromatic ring and isobutyl tail in the hydrophobic channel above. A docked pose that reproduces this arrangement is the hypothesis to test.

import mdtraj as md
import numpy as np

traj = md.load("cox2_ibuprofen.dcd", top="system.pdb")
traj.image_molecules(inplace=True)
ref = traj[0]

site = traj.topology.select("protein and name CA and resSeq 100 to 530")
lig = traj.topology.select("resname IBP and not element H")
traj.superpose(ref, atom_indices=site)
lig_rmsd = np.sqrt(((traj.xyz[:, lig] - ref.xyz[0, lig])**2).sum(2).mean(1)) * 10  # A

# salt bridge: carboxylate oxygens to Arg120 guanidinium nitrogens
ox = traj.topology.select("resname IBP and element O")
arg_n = traj.topology.select("resSeq 120 and resname ARG and name NH1 NH2 NE")
pairs = np.array([(o, n) for o in ox for n in arg_n])
dmin = md.compute_distances(traj, pairs).min(axis=1) * 10  # A
occupancy = (dmin < 3.5).mean()

print(f"ligand RMSD, last half mean: {lig_rmsd[len(traj)//2:].mean():.2f} A")
print(f"Arg120 salt bridge occupancy: {occupancy:.0%}")

Three replicas of this analysis give three RMSD traces and three occupancy figures. If all three hold the carboxylate at arginine 120 with ligand RMSD flat below two angstroms, the pose is consistent with the force field and with the known binding mode. If one replica loses the salt bridge and the ligand rotates in the channel, the pose is fragile and the docking picture over-stated the contact. If all three lose it in the first nanoseconds, the pose was wrong, or the protonation was wrong, and the carboxylate question from ligand preparation returns.

Reading the outcome honestly

Four outcomes are possible, and only one of them is good news without qualification.

Stability is a filter that rejects poses. It does not accept them, and it does not rank them.

Stability says nothing about affinity. A weak binder can sit happily for a hundred nanoseconds because leaving takes microseconds even for weak binders. The argument in why docking scores are not binding affinities carries over in full, and the timescale reasons are spelled out in the limits of short molecular dynamics runs. Used as a filter with replicas and honest reporting, a pose-stability run removes a class of docking artefacts cheaply.

Key points

Questions people ask

How long should a molecular dynamics run be to check a docked pose?
Long enough to see the pose relax and either settle or drift, which in practice means tens of nanoseconds per replica, and more than one replica. A pose that leaves within ten nanoseconds in several independent runs is a clear warning. A pose that stays for a hundred nanoseconds has passed a necessary test, but ligand residence times are far longer, so no run of this kind proves a pose correct.
What ligand RMSD means a docked pose is stable?
After aligning frames on the binding-site residues, ligand heavy-atom RMSD from the starting pose below about two angstroms, holding steady with no upward trend, is the usual working definition of a pose that stayed. Values climbing past three or four angstroms indicate the ligand has shifted or flipped. Always inspect the frames, since a symmetric ligand can flip and still report a modest RMSD.
Can molecular dynamics rank docked compounds by affinity?
Not from plain simulations. Pose stability is a qualitative filter that removes poses the force field rejects, but a stable pose does not imply tight binding and an unstable one may reflect a bad starting placement rather than weak affinity. Ranking by affinity needs free-energy methods with their own validation.
Why run several replicas instead of one longer simulation?
Each simulation is one sample of a random process. A single run that holds for fifty nanoseconds may have been lucky, and one that drifts may have hit a rare fluctuation. Three or more runs from the same equilibrated structure with different random seeds show how reproducible the outcome is, and disagreement between them is itself a result.

Further reading

In practice: Advanced Modeling runs molecular dynamics with OpenMM. Nanosecond runs answer narrow questions, such as whether a pose holds; the guides say which questions they cannot answer.

← All guides