Skip to content

Ligand Reconstruction

dock2md reconstruct-ligand restores trustworthy chemistry onto a ligand’s 3D pose and writes the ligand alone (.sdf, .mol, or .pdb), ready for external parameterization services (ACPYPE, CGenFF, CHARMM-GUI, OpenFF) or downstream validation.

  • From a docked pose file directly (-d / --pose-file, DD-504): Accepts .pdbqt, .sdf/.sd, .mol, .mol2, .pdb, or .dlg without needing a protein receptor. Use --pose N to pick a 1-based pose from a multi-pose file.
  • From a protein–ligand complex PDB (-c / --complex): Auto-detects the non-water, non-artifact ligand (or override with --ligand-resname / CHAIN:RESNAME:RESNUM).
  • Chemistry reference (-l / --reference-ligand): Chemically complete .sdf, .mol, or .mol2 carrying your desired protonation state, bond orders, and stereoisomer.
Terminal window
# Reconstruct pose 2 from a multi-pose Vina PDBQT
dock2md reconstruct-ligand \
-d poses/compound1.pdbqt \
-l references/compound1.sdf \
--pose 2 \
-o compound1_pose2.sdf
# Reconstruct ligand from a co-crystal or docked complex PDB
dock2md reconstruct-ligand \
-c 4EY7_complex.pdb \
-l donepezil_ref.sdf \
-o donepezil_reconstructed.sdf
# Restore ligand chemistry AND write back the merged complex PDB
dock2md prepare-complex \
-c 4EY7_complex.pdb \
-l donepezil_ref.sdf \
-o 4EY7_prepared.pdb
Failure Condition Dock2MD Behavior
Heavy-atom count or molecular graph mismatch Named refusal (exit 1)
Pose 3D coordinates invert a declared R/S or E/Z stereo element ChiralInversionError refusal (exit 1)
Planar tetrahedral centre (` v_norm
Explicit stereogenic hydrogen on the wrong tetrahedral face verify_hydrogen_geometry refusal (exit 1)

→ Run reconstruct-ligand live in 3D