Redocking and other ways to validate a docking setup
Validate a docking setup by redocking the crystallised ligand to under 2 Å RMSD, then cross-dock, test enrichment with actives and decoys and repeat runs.
Validating a docking setup means proving that the prepared receptor, the box and the parameters can reproduce something known before you ask them about something unknown. The first and standard test is redocking. Take the ligand that was crystallised in the structure, dock it back, and check that the top pose lies within 2 Å heavy-atom RMSD of the crystal pose. Then go further with cross-docking, enrichment against known actives and decoys, and repeat runs. A setup that passes these tests has earned a cautious trust. One that fails them should not be used, however reasonable its poses look.
Redocking and the 2 Å convention
Redocking is simple. Extract the crystallised ligand from the structure, prepare it as you would any ligand, remove it from the receptor, define the box around its position and run the docking. Compare the top-ranked pose with the crystal coordinates.
The usual convention counts a heavy-atom RMSD below 2 Å as success. The threshold is a community habit rather than a law of nature, chosen because it roughly separates poses that reproduce the key interactions from poses that do not. A value below 1 Å is excellent. A value between 2 and 3 Å often means the ligand is in the right site but shifted, or partly flipped, and deserves a look. Above 3 Å the binding mode is wrong.
Two details change the number more than people expect. First, do not align the docked pose onto the crystal ligand before computing RMSD. The receptor frame is shared, so the comparison must be made in place. An alignment hides translation errors and makes every pose look better. Second, account for symmetry. A phenyl ring rotated by 180 degrees puts the same atoms in the same positions with different labels, and a naive atom-by-atom comparison reports a large deviation for an identical pose. The RDKit snippet below handles both.
from rdkit import Chem
from rdkit.Chem import rdMolAlign
ref = Chem.RemoveHs(Chem.MolFromMolFile("crystal_ligand.sdf"))
pose = Chem.RemoveHs(Chem.MolFromMolFile("docked_pose_1.sdf"))
rmsd = rdMolAlign.CalcRMS(pose, ref) # in place, symmetry-aware
print(f"heavy-atom RMSD = {rmsd:.2f} A")
If the top pose fails but a lower-ranked pose passes, the search found the answer and the scoring function misranked it. If no pose passes, the search or the setup is at fault. Those are different problems with different fixes.
When redocking passes too easily
Redocking is a necessary test and a flattering one. The crystal structure holds the pocket in exactly the shape that ligand needs, with side chains already in place. Any reasonable setup redocks the native ligand well. Passing tells you that the box is right, the protonation is not absurd and the search is adequate. It does not tell you that a different ligand will dock correctly.
Cross-docking closes some of that gap. Collect other crystal structures of the same protein with different ligands, superpose them onto your prepared receptor and dock each foreign ligand into it. Success rates will fall, and the amount they fall measures how much this pocket reshapes itself around its ligands. A target with high cross-docking success is a good docking target. A target where cross-docking collapses needs multiple receptor conformations or flexible side chains, and that limitation is discussed in the guide on where docking fails.
Enrichment with actives and decoys
Pose accuracy is one question. Ranking is another, and for a virtual screen it is the one that matters. To test ranking, assemble a set of known actives for the target from a source such as ChEMBL, mix them with a larger set of decoys that match the actives in simple properties but are presumed inactive, and dock everything with your setup.
Then ask how many actives appear in the top one or two percent by score compared with what a random order would give. That ratio is the enrichment factor. A receiver operating characteristic curve and its area give a fuller picture. The guide on evaluating a QSAR model explains those metrics in the context of machine learning, and they transfer directly to docking.
Property-matched decoys matter because of size bias. If the decoys are smaller than the actives, docking will separate them by size alone and the enrichment will look wonderful and mean nothing. Match molecular weight, logP, hydrogen-bond counts and charge, then see whether the scoring function still finds the actives.
Repeatability, exhaustiveness and seeds
Vina's search is stochastic. Run the same redocking three times with different random seeds and compare the top poses. If they agree within a fraction of an ångström, the search converges at the chosen exhaustiveness. If they scatter, raise exhaustiveness until they agree, and only then trust a single run. The guide on defining the binding-site box explains why a larger box needs more exhaustiveness to reach the same convergence.
Record the seed, the exhaustiveness, the box and the preparation choices alongside every result. A docking pose without its parameters cannot be reproduced, and reproducibility is the minimum standard for a computational result that will inform a synthesis.
Reading the RMSD against the trajectory
Redocking RMSD and molecular dynamics RMSD are the same quantity used for different questions. In docking, RMSD measures how far a predicted pose lies from a reference. In a simulation, it measures how far the ligand drifts from its starting pose over time. The guide on RMSD and RMSF in a trajectory covers the second case, and a redocked pose that holds under 2 Å through a short simulation has passed two independent tests.
In MolForge's Advanced Modeling, a redocking run is set up exactly like any other docking run, with the crystallised ligand as the input and its coordinates as the reference. The checks in this guide are the ones to run first.
Key points
- Redock the crystallised ligand first. A top pose within 2 Å heavy-atom RMSD of the crystal pose is the standard pass.
- Compute RMSD in place and with symmetry correction, or the number lies in both directions.
- Redocking flatters the setup. Cross-docking with other ligands of the target measures how much pocket shape matters.
- Test ranking with known actives and property-matched decoys, and report enrichment rather than raw scores.
- Repeat runs with different seeds to confirm the search converges, and record every parameter.
Questions people ask
- What RMSD counts as a successful redocking?
- The usual convention is a heavy-atom RMSD under 2 Å between the top-ranked docked pose and the crystal pose, computed without re-aligning the ligand and with molecular symmetry taken into account. Under 1 Å is excellent. Between 2 and 3 Å usually means the right site but a shifted or partly flipped pose.
- Why does redocking pass but my new compounds still dock wrongly?
- Redocking is a necessary check, not a sufficient one. The crystal pocket is shaped around the crystallised ligand, so that ligand redocks easily. A new compound of different size or chemistry may need a pocket shape the structure does not show. Cross-docking with other ligands of the target tests that.
- What is cross-docking?
- Cross-docking takes ligands from other crystal structures of the same protein and docks them into your prepared receptor. It measures how well the chosen structure accommodates ligands it was not solved with. Success rates fall compared with redocking, and the drop tells you how much the pocket shape matters for this target.
- How do I compute a symmetry-corrected RMSD?
- Use a tool that matches equivalent atoms before computing the deviation, so that a rotated phenyl ring or a swapped pair of carboxylate oxygens does not inflate the number. In RDKit, CalcRMS compares two conformers in place with symmetry handled, after removing hydrogens from both.
Further reading
- Wikipedia, Root-mean-square deviation of atomic positions
- RDKit documentation
- Trott and Olson, AutoDock Vina (2010)
In practice: Advanced Modeling docks with AutoDock Vina. A score is an estimate in kcal/mol under the program's scoring function, not a measured affinity, and the guides say where the method stops.