SMILES to PDBQT for AutoDock Vina: A Practical Ligand Preparation Guide
Format conversion is the easy part. A docking-ready ligand also needs the right protonation, charges and torsions — this guide walks through the whole preparation.
AutoDock Vina and AutoDock 4 do not read SMILES. They expect a PDBQT file that contains the ligand's 3D coordinates, AutoDock atom types, partial charges and a tree of rotatable bonds. Converting the text is straightforward; preparing a ligand that behaves correctly in docking is the part that needs attention.
This guide covers the full workflow: choosing the protonation state, generating 3D coordinates, inspecting the torsion tree, assigning charges, preparing the receptor and validating the result. The SMILES to PDBQT converter handles the format conversion and 3D generation; the rest of the steps are about chemistry, not file formats.
1. Start from the right structure
A SMILES string describes connectivity, but docking is sensitive to the protonation state, tautomer and charge. Before converting, decide which form you want to dock:
- Protonation — at pH 7.4, carboxylic acids are mostly deprotonated and aliphatic amines are mostly protonated. The binding site may favour a different state; if the site is known, match the state observed in the co-crystal structure or expected from the mechanism.
- Tautomer — 2-hydroxypyridine and 2-pyridone are the same formula but different hydrogen positions. Docking one tautomer can miss the binding mode of the other.
- Salts and counter-ions — strip counter-ions unless the ion is part of the intended ligand. A sodium salt adds atoms and changes the charge.
- Stereochemistry — define chiral centres with
@or@@. A flat SMILES cannot produce a stereo-defined 3D conformer.
If you are not sure which state to use, prepare the most likely physiological form first, then repeat the docking with the alternative if the results are ambiguous.
2. Generate 3D coordinates
A PDBQT ligand needs 3D coordinates. A 2D structure or a SMILES without coordinates produces a file with all atoms at the same position, which is useless for docking.
The converter generates a force-field-optimised conformer with OpenBabel (MMFF94 when parameters are available, UFF otherwise). That is a reasonable starting geometry for a drug-like molecule, but it is one local minimum, not an ensemble. For a flexible ligand, inspect the conformer and consider generating several starting geometries if the docking protocol supports it.
3. Convert to PDBQT and inspect the torsion tree
The output contains a ROOT section, one or more BRANCH/ENDBRANCH sections and a TORSDOF line. The ROOT is the rigid core; each BRANCH is a flexible branch attached to it; TORSDOF is the number of active torsions. Open the file in a text editor and check:
- The number of torsions is what you expect. Amide bonds and ring bonds are usually rigid; terminal groups may be treated as rigid.
- The atom count matches the molecule. Missing hydrogens or a dropped counter-ion will change the count.
- There are no duplicate atoms from multiple models or alternate locations.
If the torsion tree looks wrong, fix the structure or adjust the active torsions in AutoDockTools before running Vina.
4. Charges: the step most conversions skip
PDBQT atom records include a partial charge column. Docking scoring depends on those charges, and a file with all zeros is not equivalent to a properly prepared ligand.
OpenBabel's PDBQT writer can produce the atom types and torsion tree but may leave the charge column at zero. In the converter, this is called out explicitly. For production docking, use a preparation tool that assigns Gasteiger or another charge model:
- Meeko — the modern Python preparation tool for AutoDock Vina and AutoDock-GPU; it assigns charges and writes PDBQT.
- AutoDockTools — the classic GUI/command-line preparation suite; assign Gasteiger charges before saving the PDBQT.
- Your docking pipeline — many pipelines wrap ligand preparation and charge assignment; use its documented defaults.
Whatever tool you use, inspect a few atom records and confirm that the charge column is not all zero.
5. Prepare the receptor separately
The ligand and the receptor are different preparation problems. For the receptor:
- Remove crystallographic waters unless a water is known to mediate binding.
- Remove the co-crystallised ligand and unwanted ions, or keep them deliberately.
- Add hydrogens and assign the protonation state at the intended pH.
- Assign charges and AutoDock atom types, then write a receptor PDBQT.
- Define the search box around the binding site, with enough padding for the ligand.
AutoDockTools, Meeko and established docking pipelines provide receptor preparation steps. Do not use the ligand converter for a protein unless you have completed these steps separately.
6. Validate before docking
| Check | What to look for |
|---|---|
| Coordinates | Atoms are not all at (0,0,0); the conformer is 3D. |
| Atom count | Matches the intended protonation and salt form. |
| Charges | The charge column is not all zero; the model is documented. |
| Torsions | TORSDOF is sensible; amide and ring bonds are not freely rotating. |
| Protonation | Acids, amines and heterocycles match the intended state. |
| Receptor | Waters, co-ligands, hydrogens and charges are intentional. |
Common mistakes
| Mistake | Consequence |
|---|---|
| Converting a 2D SMILES without 3D generation | All atoms at the same coordinates; docking cannot run correctly. |
| Accepting zero charges | Scoring and pose ranking are wrong; results are not comparable to a properly prepared run. |
| Docking the wrong tautomer or protonation state | The correct binding mode may be missed or scored poorly. |
| Leaving the counter-ion in the ligand | Extra atoms and a different net charge; the ligand is no longer the intended molecule. |
| Too many active torsions | A larger search space, slower runs and more false positives. |
| Unprepared receptor | Waters, missing hydrogens or wrong charges distort the site and the score. |
Automating the conversion
For a single ligand, the web page is enough. For a series, the API accepts a SMILES and returns a PDBQT:
curl -s https://api.seqandchem.com/api/v1/convert \
-H 'Content-Type: application/json' \
-d '{"from":"smi","to":"pdbqt","data":"CCO","opts":["--gen3d"]}'
The response contains the PDBQT text in result. The same caveat applies: check the
charges and protonation before using the output in a production docking campaign. For a
library, use the batch converter and then run a charge-assignment step.
Frequently asked questions
Can I use the SMILES to PDBQT converter for a production docking campaign?
Use it to generate the 3D structure and the PDBQT skeleton, then assign charges and verify the protonation with Meeko, AutoDockTools or your docking pipeline. The converter is a starting point, not a complete ligand-preparation protocol.
Why are the charges in my PDBQT all zero?
OpenBabel's PDBQT writer does not always assign Gasteiger charges. Use a preparation tool that does, or add charges in your pipeline before docking.
How many torsions should a ligand have?
There is no fixed number. A rigid ligand may have zero; a flexible drug-like molecule often has three to ten. Too many torsions increase the search space and can slow the run or produce more false positives.
Does the converter work for peptides or large ligands?
The conversion can run, but docking a flexible peptide is a different problem: the search space is much larger and the preparation requirements are stricter. Use a protocol designed for peptides rather than treating them as small molecules.
Can I convert a receptor PDB to PDBQT with the same tool?
The page is intended for small-molecule ligands. Receptor preparation requires removing waters, adding hydrogens, assigning charges and defining the search box; use AutoDockTools, Meeko or a docking pipeline.
Is PDBQT the same as PDB?
No. PDBQT extends PDB with AutoDock atom types, partial charges and a torsion tree. A PDB file does not contain the information docking needs.