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.
TORSDOF 5.Ligand SDF or MOL input
PDBQT output
What the converter does
- Reads the SDF. V2000 and V3000 MOL blocks, any number of records. Charges from
M CHGlines are kept. Aromatic bond type 4 is converted to alternating single and double bonds. Salts and waters are removed (largest fragment kept). - 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.
- 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.
- AutoDock atom types. Each atom gets an AutoDock 4 type (table below). Aromaticity uses the 4n + 2 rule on rings and fused rings.
- 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.
- 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.
TORSDOFequals 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
| Type | Atoms | Rule used |
|---|---|---|
C | Aliphatic carbon | Carbon not in an aromatic ring |
A | Aromatic carbon | Carbon in an aromatic ring (benzene, pyridine, indole, caffeine rings) |
NA | Nitrogen, H-bond acceptor | Default for N: pyridine N, amines, imines, nitriles |
N | Nitrogen, not an acceptor | Amide N, aniline and pyrrole-type N, N bonded to an aromatic atom with three connections, charged N+ |
OA | Oxygen | All oxygens (always acceptors) |
SA | Sulfur, acceptor | Non-aromatic S with two connections (thioether, thiol) |
S | Other sulfur | Sulfonyl, sulfoxide, thiophene S |
HD | Polar hydrogen (donor) | H on N, O, S, P or F |
F Cl Br I P | Halogens, phosphorus | By element |
PDBQT columns Vina reads
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
- Upload your
.sdfor.molfile, paste it, or press an example. - Press Convert to PDBQT. Each ligand appears in the table with its atom count, torsions, net charge and atom types.
- Read the notes under the table. They say if hydrogens or 3D coordinates were added, or if a fragment was removed.
- Download one
.pdbqtper 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
- Protonation is not predicted. The tool uses the charges in your file. Neutral carboxylic acids stay neutral, amines stay neutral. Set the protonation state at your pH before converting, for example with the protonation tool linked below.
- Gasteiger charges are approximate. They follow RDKit and match Meeko to about 0.002 e, but MGLTools or Open Babel can differ in the second decimal. AutoDock Vina's scoring function does not use partial charges; they matter for AutoDock 4.
- One conformer for 2D input. Ring shapes (chair, boat) come from that conformer and stay fixed during docking. Start from a good 3D structure when ring conformation matters.
- Rings are rigid. Meeko can make rings of 7 or more atoms flexible with G0/CG pseudo-atoms; this tool does not (same as
mk_prepare_ligand.py --rigid_macrocycles). - Ligands only. Elements C, H, N, O, F, P, S, Cl, Br and I. Metals and boron are refused. For a receptor use the PDB to PDBQT page and a receptor preparation tool.
- Up to 200 heavy atoms per ligand and 500 ligands per run.
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: