MolDraw › Chemistry tools › SDF to PDBQT Converter

SDF to PDBQT Converter for AutoDock Vina

In short: Upload a ligand SDF or MOL file and get a PDBQT file ready for AutoDock Vina: hydrogens, Gasteiger charges, AutoDock atom types and a torsion tree. It runs in your browser, free, with no sign-up.

Quick answer: A ligand PDBQT is a PDB-style file with a partial charge and an AutoDock atom type on every atom, non-polar hydrogens merged into their carbons, and ROOT/BRANCH records for rotatable bonds. Ibuprofen gives 16 atoms, 5 active torsions and TORSDOF 5.

Ligand SDF or MOL input

Examples:

PDBQT output

Ready. Your file stays in your browser.

What the converter does

  1. Reads the SDF. V2000 and V3000 MOL blocks, any number of records. Charges from M CHG lines are kept. Aromatic bond type 4 is converted to alternating single and double bonds. Salts and waters are removed (largest fragment kept).
  2. Hydrogens and 3D. A 2D file (all z = 0) gets one 3D conformer with all hydrogens, built with OpenChemLib's conformer generator and minimised with MMFF94s. A 3D file keeps its coordinates; missing hydrogens are added at standard bond lengths and angles.
  3. Gasteiger charges. Gasteiger-Marsili (PEOE) charges with RDKit's parameters, 12 iterations. Formal charges are spread over equivalent atoms (for example both carboxylate oxygens), as RDKit does.
  4. AutoDock atom types. Each atom gets an AutoDock 4 type (table below). Aromaticity uses the 4n + 2 rule on rings and fused rings.
  5. Merges non-polar hydrogens. Hydrogens on carbon are removed and their charge is added to the carbon, as AutoDock expects. Polar hydrogens stay as HD.
  6. Torsion tree. Acyclic single bonds are rotatable, except amide and amidine C–N bonds and bonds that only spin a terminal atom (for example a CH3). The central rigid group becomes ROOT; each rotatable bond opens a BRANCH. TORSDOF equals the number of active torsions.

We checked the output against Meeko 0.8 (the AutoDock team's ligand preparation tool, with RDKit Gasteiger charges) on 47 drug-like molecules, from 3D SDF, from SDF without hydrogens and from 2D SDF: the same AutoDock types and torsion counts, and charges within 0.002 e. Meeko can read the SMILES remarks this tool writes and rebuild the molecule from the PDBQT.

AutoDock atom types

TypeAtomsRule used
CAliphatic carbonCarbon not in an aromatic ring
AAromatic carbonCarbon in an aromatic ring (benzene, pyridine, indole, caffeine rings)
NANitrogen, H-bond acceptorDefault for N: pyridine N, amines, imines, nitriles
NNitrogen, not an acceptorAmide N, aniline and pyrrole-type N, N bonded to an aromatic atom with three connections, charged N+
OAOxygenAll oxygens (always acceptors)
SASulfur, acceptorNon-aromatic S with two connections (thioether, thiol)
SOther sulfurSulfonyl, sulfoxide, thiophene S
HDPolar hydrogen (donor)H on N, O, S, P or F
F Cl Br I PHalogens, phosphorusBy element

PDBQT columns Vina reads

ATOM 7 C7 UNL 1 -2.336 0.072 -0.907 1.00 0.00 +0.038 C 1 2 3 4 5 6 7 1234567890123456789012345678901234567890123456789012345678901234567890123456789

x, y and z are in columns 31–54, the partial charge in columns 71–76 (Vina reads 69–76) and the AutoDock type in columns 78–79. Every line this tool writes is checked against these positions.

How to convert SDF to PDBQT

  1. Upload your .sdf or .mol file, paste it, or press an example.
  2. Press Convert to PDBQT. Each ligand appears in the table with its atom count, torsions, net charge and atom types.
  3. Read the notes under the table. They say if hydrogens or 3D coordinates were added, or if a fragment was removed.
  4. Download one .pdbqt per ligand and dock: vina --receptor receptor.pdbqt --ligand ibuprofen.pdbqt --config config.txt.

Many ligands in one SDF

AutoDock Vina reads one ligand per PDBQT file. Use the download button on each row, or Download all to get one file with MODEL/ENDMDL blocks. That combined file is for viewers and for splitting: run vina_split --input all_ligands.pdbqt to get one file per ligand, then dock them one by one or with vina --batch (Vina 1.2). Do not pass the combined file to --ligand.

Limitations

Frequently asked questions

Can I convert SDF to PDBQT without Open Babel or MGLTools?

Yes. This page runs in your browser. It adds hydrogens, computes Gasteiger charges, assigns AutoDock 4 atom types, merges non-polar hydrogens and writes the ROOT/BRANCH torsion tree, following the rules of Meeko, the current AutoDock ligand preparation tool.

Does my SDF need 3D coordinates and hydrogens?

No. If all z coordinates are zero the tool builds one 3D conformer with hydrogens. If the file is 3D but has no hydrogens, the coordinates are kept and hydrogens are added at standard geometry. Protonation follows the charges in the file; no pKa prediction is done.

Can AutoDock Vina dock a multi-molecule SDF?

No. Vina reads one ligand per PDBQT file. Download each ligand separately, or download the combined file with MODEL blocks and split it with vina_split. Vina 1.2 can dock a folder of files with --batch.

Which AutoDock atom types are used?

C for aliphatic carbon, A for aromatic carbon, NA for nitrogen acceptors, N for amide, aniline, pyrrole and charged nitrogens, OA for oxygen, SA for thioether and thiol sulfur, S for other sulfur, HD for hydrogens on N, O or S, plus F, Cl, Br, I and P.

How many torsions will my ligand have?

Every acyclic single bond that moves atoms is active, except amide and amidine C-N bonds. Ibuprofen has 5 (including the carboxylic acid O-H) and imatinib has 7. Ring bonds stay rigid.

Last updated: