Convert AutoDock Vina PDBQT to SDF Without Losing Bond Orders or Stereochemistry
The Problem With Converting .pdbqt Using Open Babel Alone
Section titled “The Problem With Converting .pdbqt Using Open Babel Alone”AutoDock Vina, Smina, and GNINA write docked poses in .pdbqt format. That format stores 3D heavy-atom coordinates, partial charges, and AutoDock atom types — it does not store bond orders, aromaticity tables, or formal charges.
When you convert a docked .pdbqt straight to .sdf or .mol2 with obabel pose.pdbqt -O ligand.sdf -h, Open Babel must guess bond multiplicities and hybridization from 3D bond lengths. Even small docking distortions (0.05–0.15 Å) routinely cause:
- Aromatic rings downgraded to single bonds or wrong Kekulé forms
- Deprotonated carboxylates or protonated amines flipped to the wrong formal charge
- Silent stereochemical inversions (
R ↔ SorE ↔ Z) - Wrong-face explicit hydrogens placed on tetrahedral stereocentres (an error that default PoseBusters
ignore_hydrogens=Trueand H-stripping RDKit checks do not catch)
Downstream tools (ACPYPE, CGenFF, GROMACS, PLIP) do not crash on these errors — they run cleanly and produce scientifically invalid trajectories.
The Solution: Authority Separation With dock2md reconstruct-ligand
Section titled “The Solution: Authority Separation With dock2md reconstruct-ligand”Dock2MD separates where coordinates come from (the docked .pdbqt or complex .pdb) from where chemistry comes from (your trusted reference .sdf or .mol2, e.g., the exact molecule you prepared before docking).
Step 1: Prepare Your Reference Ligand (Chemistry Authority)
Section titled “Step 1: Prepare Your Reference Ligand (Chemistry Authority)”Make sure your reference .sdf carries the exact protonation state, tautomer, and stereoisomer you want at physiological pH (e.g., from dimorphite_dl, Epik, or curated PubChem/ChEMBL input). Dock2MD preserves that exact microstate without altering it.
Step 2: Reconstruct Directly From a Multi-Pose .pdbqt
Section titled “Step 2: Reconstruct Directly From a Multi-Pose .pdbqt”dock2md reconstruct-ligand \ -d docking/donepezil.pdbqt \ -l ligands/donepezil_ref.sdf \ --pose 1 \ -o donepezil_pose1_verified.sdfYou can also reconstruct the ligand directly from an existing protein–ligand complex .pdb:
dock2md reconstruct-ligand \ -c complex.pdb \ -l ligands/donepezil_ref.sdf \ -o donepezil_verified.sdfStep 3: Understand What Dock2MD Checks Automatically
Section titled “Step 3: Understand What Dock2MD Checks Automatically”Before writing donepezil_pose1_verified.sdf, Dock2MD executes four verification checks:
- Graph & Heavy-Atom Conservation: Confirms the pose heavy atoms map 1-to-1 onto the reference molecular graph.
- Coordinate Transfer + MMFF Explicit-H Optimization: Transfers exact docked heavy-atom coordinates and optimizes explicit hydrogens while holding heavy atoms fixed.
- Realised 3D Stereochemistry Gate (
R/S,E/Z): Re-reads stereochemistry directly from the actual 3D output coordinates. If the docked pose inverted a chiral centre (for example,(R)vs(S)onC6), Dock2MD refuses loudly with exit code1:ERROR: Dock2MD failed: The pose's coordinates invert 1 stereo element(s)the reference chemistry declares: C6. The result would declare onestereoisomer while its geometry is another. - Explicit Stereogenic-H Face Gate (
verify_hydrogen_geometry): Verifies that every stereogenic explicit hydrogen sits on the chemically consistent face of its tetrahedral centre.
Try It Live in 3D Right Now
Section titled “Try It Live in 3D Right Now”Want to see both a clean reconstruction and a live ChiralInversionError refusal on real AChE–Donepezil files without installing anything?