Guides / Docking and structure-based design

ligand-preparationprotonationtautomers3d-conformerspdbqt

Ligand preparation for docking, protonation, tautomers and 3D

Ligand preparation turns a SMILES into a docking-ready 3D molecule with a chosen protonation state and tautomer, defined stereochemistry and flexible torsions.

Updated 5 min read

Ligand preparation turns a two-dimensional structure into a three-dimensional molecule that a docking program can place and score sensibly. The work is to choose a protonation state and a tautomer, define every stereocentre, generate a clean 3D conformer, and write a file that marks which bonds may rotate. AutoDock Vina will explore torsions and position, but it will not fix a wrong charge state, a bad ring geometry or a missing stereocentre. Those are your decisions, and they often change the result more than any docking parameter.

From SMILES to a sensible 3D conformer

Start from a canonical SMILES with explicit stereochemistry, which the guide on stereochemistry in SMILES explains how to read and check. Add explicit hydrogens before embedding, because the geometry around a nitrogen or a chiral carbon depends on them. Embed with a distance-geometry method such as ETKDG, which uses experimental torsion preferences to produce realistic conformers, and then minimise with a force field such as MMFF94 to relieve strain.

Vina keeps the internal geometry you provide except for the torsions it samples. Ring conformations are frozen. A cyclohexane embedded in a twist-boat will stay in a twist-boat in every pose. An amide embedded cis stays cis. Inspect the conformer before docking, and when a flexible ring could matter, prepare two or three ring conformers and dock each.

from rdkit import Chem
from rdkit.Chem import AllChem

smiles = "CC(C)Cc1ccc(cc1)[C@H](C)C(=O)[O-]"  # (S)-ibuprofen as the carboxylate
mol = Chem.AddHs(Chem.MolFromSmiles(smiles))
params = AllChem.ETKDGv3()
params.randomSeed = 42
AllChem.EmbedMolecule(mol, params)
AllChem.MMFFOptimizeMolecule(mol)
Chem.MolToMolFile(mol, "ibuprofen_S_anion.mol")

The seed makes the embedding reproducible. The output file carries the hydrogens and the charge, and the next step converts it to PDBQT.

Protonation at the pH of the experiment

Vina ignores partial charges, so it is tempting to ignore protonation too. That would be a mistake. Protonation decides which heavy atoms carry a polar hydrogen, and polar hydrogens decide which atoms Vina types as hydrogen-bond donors. A protonated piperazine nitrogen is a donor. The same nitrogen neutral is an acceptor. The two forms make different hydrogen bonds and can land in different poses.

The default is the dominant state at pH 7.4. Carboxylic acids are deprotonated. Aliphatic amines and guanidines are protonated. Aromatic amines, amides and most heterocycles stay neutral. Groups with a pKa near 7, such as imidazoles and some anilines or pyridines, are genuinely ambiguous. The guide on pKa and ionisation explains how to estimate which form dominates and how the environment shifts it.

The pocket can override the bulk default. A carboxylate next to a catalytic aspartate may bind as the neutral acid. A basic amine that must sit in a hydrophobic cleft may bind neutral. When the pocket argues against the bulk state, prepare both forms, dock both and report both.

Tautomers change the heavy atoms that Vina sees

A tautomer shift moves a hydrogen between heavy atoms, and with it the donor and acceptor roles. A 2-hydroxypyridine has a donor oxygen and an acceptor nitrogen. Its tautomer 2-pyridone has an acceptor oxygen and a donor nitrogen. Vina scores the two as different molecules. Keto-enol pairs, imidazole and triazole ring tautomers and amide-imidic acid pairs behave the same way.

Choose the tautomer that dominates in water, which for most drug-like groups is well documented, and consider the one the pocket favours when a known ligand suggests it. Database entries often store one arbitrary tautomer, as the guide on tautomers and protonation states in chemical databases explains, so do not assume the registered form is the relevant one. Enumerating a handful of likely tautomers and docking each is cheap compared with missing the right one.

Stereochemistry and rotatable bonds

Vina never inverts a stereocentre or flips a double bond. If your SMILES leaves a centre undefined, the embedding step picks one arbitrarily and that single isomer is all you dock. Enumerate the stereoisomers with RDKit, give each a name and dock them all. For ibuprofen, the S enantiomer is the active one against cyclooxygenase, and a docking study that used an undefined centre would be testing a coin toss.

The PDBQT conversion builds a torsion tree. Every single bond that is not in a ring and not terminal becomes a rotatable torsion by default. Amide bonds are usually kept rigid because they are planar in practice. Tools such as Meeko handle these rules, and let you freeze a torsion when you have reason to. More rotatable bonds mean a larger search and a larger entropy penalty in the score, as explained in the guide on how Vina scores a pose.

Checks before the run

Three quick checks prevent most wasted runs. Confirm that the heavy-atom count of the PDBQT matches the intended molecule, since a conversion that silently dropped a fragment or a counter-ion is common. Confirm that polar hydrogens sit where you intended by viewing the structure. Confirm that the stereochemistry survived by reading the 3D structure back into RDKit and assigning stereo from the coordinates.

If the ligand comes from a database rather than from your own drawing, strip salts and keep the parent compound. The counter-ion is not part of the binding event.

MolForge's Molecule Builder exports SMILES and SDF for a drawn structure, and the Molecule Analysis page shows a 3D structure for any compound resolved by name, CID or SMILES. The protonation, tautomer and stereo choices above still have to be made before the structure is docked in Advanced Modeling.

Key points

Questions people ask

Does the starting 3D conformer matter if the ligand is flexible during docking?
Less than people fear, but it still matters. Vina rotates the torsions you mark as flexible, yet it keeps bond lengths, angles and ring conformations fixed. A poorly embedded ring or a distorted amide stays that way in every pose, so start from a clean, minimised conformer.
Which protonation state should I use for a carboxylic acid or an amine?
Use the state that dominates at physiological pH unless the pocket argues otherwise. A carboxylic acid is usually deprotonated and an aliphatic amine protonated at pH 7.4. Because Vina ignores charges, the choice matters through which atoms can donate or accept hydrogen bonds, so prepare both states when in doubt.
Should I enumerate stereoisomers before docking?
Yes, when the stereochemistry is undefined in your input. Vina does not invert stereocentres, so a single input gives a single stereoisomer. Enumerate the isomers, dock each one and compare, otherwise you may conclude a compound cannot bind when only its wrong enantiomer was tested.

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