Step-by-Step From Docked Pose to Verified GROMACS MD
This tutorial walks through the exact path from a docked .pdbqt pose to a reproducible GROMACS molecular dynamics trajectory without silent chemistry or receptor defects.
Step 1: Build a Verified Complex (dock2md build)
Section titled “Step 1: Build a Verified Complex (dock2md build)”Combine your receptor .pdb, your docked pose .pdbqt, and your reference ligand .sdf in --mode md:
dock2md build \ -r receptor.pdb \ -d docking/donepezil.pdbqt \ -l ligands/donepezil_ref.sdf \ --mode md \ --pose 1 \ -o complex_out/Why --mode md?
- If
-lis missing,--mode mdrefuses immediately rather than falling back to bondless visualization mode. - The resulting
complex_out/donepezil_pose1_complex.pdbmerges the receptor with the chemistry-verified, explicit-H ligand.
→ Test dock2md build live in 3D
Step 2: Run Pre-MD Integrity Gates Automatically
Section titled “Step 2: Run Pre-MD Integrity Gates Automatically”Before gmx pdb2gmx or ACPYPE ever runs, dock2md md prepare / dock2md md run enforces Surface 3 pre-MD contracts that catch the exact failure modes unguarded GROMACS tutorials pass silently:
| Pre-MD Gate | What It Catches | Action |
|---|---|---|
NEG-001 |
Bondless pose with no reference chemistry | Named refusal |
NEG-003 |
Missing backbone chain gap in receptor | Named refusal (prevents artificial long peptide bond) |
NEG-004 |
Covalent protein–ligand contact (< 1.9 Å) |
Named refusal (covalent ligands out of non-covalent MD scope) |
NEG-005 |
Non-standard residues (e.g., selenomethionine MSE) |
Named refusal with clean suggestion |
NEG-006 |
Unsupported metal ions (Mo, unparameterized cofactors) |
Named refusal unless explicitly acknowledged |
X1 / X2 / X3 |
Severe ligand–protein steric clash (~2.0 Å), stretched ligand bonds, missing side-chain atoms |
Named refusal |
Across 26 Astex Diverse controls × 10 injected single-fault classes, Dock2MD stopped 190 / 190 faulty inputs cleanly while unguarded tutorial scripts silently ran 5/10 fault classes.
Step 3: Initialize & Validate Your MD YAML
Section titled “Step 3: Initialize & Validate Your MD YAML”Create a reproducible AMBER/GAFF2 (Protocol v1) or CHARMM36/CGenFF configuration from Dock2MD’s shipped templates (md_standard.yaml, md_apo.yaml, md_charmm.yaml):
# Validate your MD configuration upfront (<1 second)dock2md validate-config --kind md md_standard.yamlStep 4: Launch Crash-Safe Production MD
Section titled “Step 4: Launch Crash-Safe Production MD”# Run from a validated YAML (recommended for publications)dock2md md run md_standard.yaml
# Or run directly on a verified complex + reference liganddock2md md run \ --complex complex_out/donepezil_pose1_complex.pdb \ --ligand ligands/donepezil_ref.sdf \ --forcefield gaff2 \ --time 100What Gets Recorded Automatically
Section titled “What Gets Recorded Automatically”- Crash-safe checkpoints: Interrupted runs (
SIGINT/SIGKILL/ HPC wall-time limits) resume cleanly from the last completed stage viadock2md md runwithout overwriting completed stages. - Provenance bundle:
run_manifest.json,PROVENANCE.md(ready-to-edit Methods text), andCITATION.txtlisting exact versions of GROMACS, ACPYPE, RDKit, and force-field parameters used. - No GPU locally? Launch the same workflow on a free T4 GPU via Google Colab (
colab/dock2md.ipynb) (~92.7 ns/day measured on T4).