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.
Supported Inputs (v0.5.0 / v0.5.1)
Section titled “Supported Inputs (v0.5.0 / v0.5.1)”- From a docked pose file directly (
-d/--pose-file, DD-504): Accepts.pdbqt,.sdf/.sd,.mol,.mol2,.pdb, or.dlgwithout needing a protein receptor. Use--pose Nto 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.mol2carrying your desired protonation state, bond orders, and stereoisomer.
Usage Examples
Section titled “Usage Examples”# Reconstruct pose 2 from a multi-pose Vina PDBQTdock2md 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 PDBdock2md reconstruct-ligand \ -c 4EY7_complex.pdb \ -l donepezil_ref.sdf \ -o donepezil_reconstructed.sdf
# Restore ligand chemistry AND write back the merged complex PDBdock2md prepare-complex \ -c 4EY7_complex.pdb \ -l donepezil_ref.sdf \ -o 4EY7_prepared.pdbFail-Loud Guarantees
Section titled “Fail-Loud Guarantees”| 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) |