Guides / Docking and structure-based design

autodock-vinascoring-functiondocking-scoreempirical-scoring

How AutoDock Vina scores a pose, term by term

AutoDock Vina sums two steric gaussians, a repulsion term, a hydrophobic term and a hydrogen-bond term over atom pairs, then applies a rotatable-bond penalty.

Updated 5 min read

AutoDock Vina scores a pose by summing a handful of simple terms over every pair of ligand and receptor heavy atoms within a cutoff distance. Two gaussian terms reward close steric contact, a repulsion term punishes overlap, a hydrophobic term rewards non-polar atoms touching each other and a hydrogen-bond term rewards donor-acceptor pairs at bonding distance. The total is then divided by a factor that grows with the number of rotatable bonds in the ligand. The result is reported in kcal/mol, but it is a fitted score, not a measured binding free energy.

Every term depends on surface distance, not centre distance

Vina does not use the distance between atom centres directly. For each pair of atoms it computes a surface distance, the centre-to-centre distance minus the sum of the two van der Waals radii. A surface distance of zero means the two atoms are just touching. A negative value means they overlap. A positive value means there is a gap between them.

This choice makes the function behave consistently across atom types. A carbon next to a sulfur and a nitrogen next to an oxygen are judged by the same curves, shifted by their radii. It also explains why hydrogens are not scored at all. Vina uses a united-atom model. Polar hydrogens matter only to decide whether a heavy atom counts as a hydrogen-bond donor. Non-polar hydrogens are ignored entirely. This is why ligand preparation must get the hydrogens right even though the program will not score them, as the guide on ligand preparation for docking explains.

The steric terms, two gaussians and a repulsion

The steric part of the function has three pieces. The first gaussian is narrow and centred at a surface distance of zero. It rewards atom pairs that sit in close contact. The second gaussian is broader and centred at a positive surface distance. It rewards pairs that are nearby without touching, which captures the general benefit of a ligand being enclosed by protein rather than exposed to solvent.

The repulsion term is a quadratic penalty that switches on only when the surface distance is negative. The deeper the overlap, the steeper the penalty. Together these three terms play the role of a van der Waals potential, attractive at contact and repulsive on overlap, but with a gentler shape that tolerates the small errors of a rigid receptor model.

The practical consequence is that Vina likes buried ligands. A pose that fills the pocket and touches many protein atoms gains from both gaussians. A pose that hangs partly in solvent loses that reward. A pose with a single bad clash pays a large repulsive price, which is why docking into a slightly closed pocket can push the ligand out to a wrong but unclashed position.

Hydrophobic and hydrogen-bond terms

The hydrophobic term applies only between pairs of hydrophobic atoms, which in Vina's typing means carbons that are not bonded to nitrogen or oxygen, plus halogens. It is a piecewise linear function of surface distance. It gives full reward when the atoms are close to touching and fades to zero as a gap opens between them.

The hydrogen-bond term applies only between a donor and an acceptor. Donors are nitrogen or oxygen atoms carrying a polar hydrogen. Acceptors are nitrogen or oxygen atoms typed as acceptors. The reward is again piecewise linear, full when the heavy atoms are slightly closer than touching and fading as they separate. There is no angular dependence, so a geometrically poor hydrogen bond scores the same as a perfect one if the distance matches. It is worth remembering this when a pose shows a hydrogen bond in the viewer that looks strained.

Because the typing drives these two terms, the protonation and tautomer state you choose decides which atoms can donate or accept. A pyridine nitrogen is an acceptor. The same nitrogen in a protonated pyridinium is a donor. The pose that Vina prefers can change accordingly, which is why the guide on water and protonation in docking treats this as a modelling decision rather than a file-format detail.

The rotatable-bond penalty and what Vina leaves out

After summing the pairwise terms, Vina divides the intermolecular total by a factor of the form one plus a weight times the number of active rotatable bonds. The idea is that a flexible ligand loses more conformational entropy on binding and should be penalised for it. The effect is modest, and it does not fully cancel the advantage that large ligands gain from having more atoms in contact.

Several physical effects are absent. There is no electrostatic term and partial charges in the PDBQT file are ignored. There is no explicit desolvation term, so the cost of stripping water from a charged group is not counted. There is no treatment of metal coordination beyond generic steric contact. Protein strain is zero by construction because the receptor does not move. These omissions are deliberate simplifications that make the function fast and reasonably transferable, and they are also the reasons docking scores are not binding affinities.

Reading a score with the terms in mind

Consider caffeine docked into a kinase ATP site next to a larger hinge binder such as imatinib. Caffeine has fourteen heavy atoms, imatinib has thirty-seven. Even with excellent complementarity, caffeine cannot accumulate as many favourable pairs. Its score will be less negative, and that says more about size than about quality of fit. When ranking compounds of different sizes, the guide on ligand efficiency metrics describes how to divide the score by heavy-atom count to correct for this.

Vina 1.2 also offers the Vinardo function and an AutoDock4-style function as alternatives. Running two of them and keeping only poses that both rank well is a cheap consensus check. MolForge runs Vina in Advanced Modeling and reports the score with each pose, so the terms described here are what sits behind every number shown.

Key points

Questions people ask

What terms make up the AutoDock Vina scoring function?
Vina sums five pairwise terms over ligand and receptor heavy atoms, two attractive gaussian steric terms, a quadratic repulsion term, a hydrophobic term between non-polar atoms and a hydrogen-bond term between donor and acceptor pairs. The sum is then reduced by a penalty that grows with the number of rotatable bonds in the ligand.
Does AutoDock Vina use partial charges or electrostatics?
No. The default Vina function has no electrostatic term and ignores the partial charges written in PDBQT files. Polar interactions enter only through the hydrogen-bond term, which depends on atom typing rather than on charge.
Why does a bigger molecule usually get a better Vina score?
Every favourable atom pair adds to the score, so a ligand with more heavy atoms in contact with the protein accumulates more attraction. The rotatable-bond penalty offsets this only partly. Comparing scores across molecules of very different size therefore favours the large ones unless you normalise by size.
What is the difference between Vina and Vinardo scoring?
Vinardo is an alternative empirical function available in Vina 1.2 with a simplified set of terms and re-fitted weights. It uses one gaussian steric term rather than two and different atomic radii. Both return a score in kcal/mol, and neither is a measured affinity.

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.

← All guides