Defining the binding-site box, size, centre and what goes wrong
The docking box tells Vina where to search. Centre it on the known ligand or pocket, give the ligand room to turn, and raise exhaustiveness as the box grows.
The binding-site box is the rectangular region in which AutoDock Vina searches for ligand poses. You define it with a centre in three coordinates and three side lengths in ångströms. Centre it on the known ligand or on the pocket you want to target, make it large enough for the ligand to rotate freely with a margin of a few ångströms, and raise exhaustiveness when the box grows. Most unexplained docking failures trace back to a box that was off-centre, too small or too large.
What the box does inside the search
Vina samples ligand positions only inside the box. It evaluates the scoring function on a grid that covers the box, and it pushes any ligand atom that drifts outside back in. The box is therefore a hard limit on what the program can find, not a hint. A pocket that lies even partly outside the box cannot be fully explored.
The box also sets the difficulty of the search. The Monte Carlo procedure makes a fixed number of attempts per unit of exhaustiveness. Doubling each side multiplies the volume eight-fold while the number of attempts stays the same, so the search becomes less thorough. Vina's documentation makes the same point and recommends increasing exhaustiveness for larger boxes. A focused box with the default exhaustiveness often outperforms a large box with a high one, because the search effort goes where the pocket is.
Choosing the centre
The best centre is the centroid of a ligand that was crystallised in the site. You saved those coordinates during protein preparation, so the centroid is one line of code away. When several structures of the target exist with different ligands, superpose them and use the union of their ligands to define the centre and the extent. That captures sub-pockets that a single ligand does not fill.
Without a ligand, use the residues. Pick the residues that papers or mutagenesis name as lining the site, take the geometric centre of their atoms and inspect the result in a viewer. The centre should sit in open space, not inside a helix. A cavity-detection tool offers a third route when the site is unknown, and the guide on druggability assessment discusses how to judge whether a detected cavity is worth docking into.
Whatever you choose, record the centre and size in the run notes. A docking result without its box is not reproducible.
Choosing the size
Start from the extent of the reference ligand along each axis. Add a margin so the ligand can translate and rotate without touching the faces. A margin of a few ångströms per side is the common practice, and the result for a drug-sized ligand usually lands near 20 to 25 Å per side. A long ligand such as imatinib needs more room along its long axis than caffeine does along any axis.
Two situations call for a larger box. If your new compounds are bigger than the reference ligand, scale the box to them, not to the reference. If the pocket has a channel or sub-pocket that known ligands do not occupy but yours might, extend the box to include it. In both cases raise exhaustiveness in proportion.
A short Python snippet computes centre and size from a ligand file with RDKit and NumPy.
import numpy as np
from rdkit import Chem
lig = Chem.MolFromMolFile("crystal_ligand.sdf")
xyz = lig.GetConformer().GetPositions()
center = xyz.mean(axis=0)
margin = 4.0 # per side, in angstrom
size = (xyz.max(axis=0) - xyz.min(axis=0)) + 2 * margin
print("center_x, center_y, center_z =", np.round(center, 2))
print("size_x, size_y, size_z =", np.round(size, 1))
Paste the printed values into the Vina configuration. If a size comes out below the ligand's longest dimension plus margin, something is wrong with the file.
Blind docking and when it is justified
A box covering the whole protein is called blind docking. It is tempting when the binding site is unknown. It is also where docking is weakest. The search is diluted across a huge volume, and the scoring function rewards any groove that lets the ligand bury itself, whether or not that groove is a functional site. Shallow surface clefts with many hydrophobic atoms are frequent false positives.
If you run a blind search anyway, raise exhaustiveness well above the default, run it several times with different random seeds and look for a site that recurs. Then define a focused box on that site and dock again. Report the blind result as a site hypothesis, never as a binding mode.
The four ways a box goes wrong
A box that is too small clips the pocket. The ligand is squeezed, poses press against a face, scores are poor and the program may place the ligand in the wrong half of the site. Check the top poses for atoms near the box boundary.
A box that is too large wastes the search. The right pose may never be sampled, and the run returns scattered poses that disagree with each other. If the RMSD between the top modes is large and the scores are close, the search has not converged. Shrink the box or raise exhaustiveness.
An off-centre box misses part of the pocket. This is common when the centre comes from a single residue rather than from the site. A box in the wrong units is rarer but fatal, since Vina expects ångströms and a box of 2 by 2 by 2 is a point.
The remedy for all four is the same. Redock the reference ligand with the box you intend to use and check that it returns within 2 Å of the crystal pose, as the guide on redocking and validation describes. In MolForge's Advanced Modeling, the box parameters are part of the docking setup, and the redocking check applies there in exactly the same way.
Key points
- The box is a hard search limit. Nothing outside it can be found.
- Centre on the crystallised ligand's centroid or on the pocket residues, and record the values.
- Size the box to the largest ligand you will dock plus a margin of a few ångströms per side.
- Larger boxes need higher exhaustiveness, because search effort per unit volume falls as volume grows.
- Validate every box by redocking a known ligand to under 2 Å RMSD before docking new compounds.
Questions people ask
- How big should the AutoDock Vina search box be?
- Large enough for the ligand to adopt every plausible orientation inside the pocket, and no larger. A common practice is to take the extent of a known bound ligand and add a margin of a few ångströms on each side. Boxes around 20 to 25 Å per side are typical for a defined pocket, with exhaustiveness raised for bigger boxes.
- Where do I put the centre of the docking box?
- On the centroid of a co-crystallised ligand when one exists. Otherwise on the geometric centre of the residues that line the pocket you want to target, or on a pocket identified by a cavity-detection tool. Record the centre you used so the run can be reproduced.
- What is blind docking and should I use it?
- Blind docking means a box that covers the whole protein. It can suggest where a ligand might bind, but the search is spread thin and the scoring function has no knowledge of real site preferences, so the result is weak evidence. If you must do it, raise exhaustiveness and treat the output as a hypothesis to test with a focused box.
- What happens if the ligand is bigger than the box?
- Vina keeps the ligand inside the search space, so a box that is too small forces the ligand into compressed or cut-off poses with poor scores. If the top poses press against the box faces, enlarge the box and run again.
Further reading
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.