Skip to content

Quick Start

Every Dock2MD stage reads standard files produced by the previous stage, so you can adopt a single command (like reconstruct-ligand or interactions) or run the entire five-stage pipeline.

Terminal window
dock2md init my_project
cd my_project

This creates a clean workspace (receptor/, ligands/, output/, and starter workflow.yaml) with optional filters switched off by default so templates never silently modify your inputs.

2. Reconstruct One Ligand With Guaranteed Stereochemistry

Section titled “2. Reconstruct One Ligand With Guaranteed Stereochemistry”

Have a docked pose (.pdbqt, .sdf, .pdb) or a complex .pdb and need a chemically complete .sdf for ACPYPE, CGenFF, or OpenFF?

Terminal window
# Directly from a docked PDBQT pose (v0.5.0+ / DD-504)
dock2md reconstruct-ligand \
-d docking/donepezil.pdbqt \
-l ligands/donepezil.sdf \
--pose 1 \
-o donepezil_reconstructed.sdf
# Or from an existing protein-ligand complex PDB
dock2md reconstruct-ligand \
-c complex.pdb \
-l ligands/donepezil.sdf \
-o donepezil_reconstructed.sdf

If the 3D coordinates contradict the reference ligand’s stereochemistry (e.g., an inverted chiral centre or flipped E/Z bond), Dock2MD refuses loudly with exit code 1 and a typed ChiralInversionError.

→ Try reconstruct-ligand live in 3D

3. Build One Verified Protein–Ligand Complex

Section titled “3. Build One Verified Protein–Ligand Complex”
Terminal window
dock2md build \
-r receptor.pdb \
-d docking/donepezil.pdbqt \
-l ligands/donepezil.sdf \
--mode md \
--pose 1 \
-o output_complex/

→ Try build live in 3D

4. Analyse & Rank Existing Docking Results (No Re-Docking)

Section titled “4. Analyse & Rank Existing Docking Results (No Re-Docking)”

Already ran AutoDock Vina, Smina, GNINA, AutoDock4, rDock, Glide, or GOLD? Validate your YAML upfront, then run PLIP + ranking:

Terminal window
# 1. Fail-loud preflight check (<1 second)
dock2md validate-config --kind interactions workflow_existing_docking.yaml
# 2. Stream PLIP interactions, 3D contact coordinates, and ranking
dock2md interactions --config workflow_existing_docking.yaml

→ Try workflow_existing_docking.yaml + live PLIP in 3D

5. Run a Full Library Workflow or MD Simulation

Section titled “5. Run a Full Library Workflow or MD Simulation”
Terminal window
# End-to-end docking + reconstruction + PLIP + ranking
dock2md run --config workflow.yaml
# Run GROMACS MD on the bundled T4 Lysozyme example
dock2md md run examples/protein-ligand-basic/amber/project.yaml
# Or launch MD directly on your own verified complex
dock2md md run --complex complex.pdb --ligand ligand.sdf --forcefield gaff2 --time 100