CLI Commands Reference (23 Commands)
Run dock2md <command> --help on any subcommand below to inspect every flag and default value. Always invoke via dock2md or python -m dock2md so exit codes are preserved.
Project Setup & Diagnostics
Section titled “Project Setup & Diagnostics”| Command | Purpose |
|---|---|
dock2md init |
Create a new Dock2MD project skeleton (workflow.yaml, receptor/, ligands/, output/, README.md) |
dock2md doctor |
Verify installed Python packages, pinned plip=3.0.0, openbabel=3.1.1, docking engines, and GROMACS |
dock2md validate-config |
Fail-loud upfront validation of any workflow, existing-docking, MD, or MD-batch YAML (<0.7 s) |
Stage 1 · Acquire & Prepare
Section titled “Stage 1 · Acquire & Prepare”| Command | Purpose |
|---|---|
dock2md chembl |
Acquire and curate ChEMBL actives/inactives with explicit inactivity relation contracts (chembl.yaml) |
dock2md filter |
Triage a compound library by descriptors/ADMET/structural alerts (filtering.yaml) |
dock2md detect-ligand |
Auto-identify a co-crystallized ligand (filtering BioLiP crystallization additives) |
dock2md expand-assembly |
Build a deposited structure’s biological assembly (DD-203) |
dock2md box |
Compute a docking box from a complex’s co-crystallized ligand |
Stage 2 · Dock & Validate
Section titled “Stage 2 · Dock & Validate”| Command | Purpose |
|---|---|
dock2md dock |
Prepare a ligand library and execute AutoDock Vina, Smina, GNINA, AutoDock4, or rDock |
dock2md validate-docking |
Redock a crystallographic ligand and compute symmetry-corrected RMSD (spyrmsd) |
Stage 3 · Chemistry-Preserving Reconstruction
Section titled “Stage 3 · Chemistry-Preserving Reconstruction”| Command | Purpose |
|---|---|
dock2md reconstruct-ligand |
Restore reference chemistry + explicit H onto a complex PDB (-c) or docked pose (-d) and write the ligand alone — Try live |
dock2md prepare-complex |
Restore reference ligand chemistry onto an existing protein–ligand complex PDB |
dock2md build |
Build one verified protein–ligand complex from receptor + docking pose + reference ligand — Try live |
dock2md batch |
Reconstruct an entire directory of docking outputs |
dock2md compare |
Compare two protein–ligand complexes using ligand RMSD |
Stage 4 · Interactions, Ranking, Fingerprints & ML Export
Section titled “Stage 4 · Interactions, Ranking, Fingerprints & ML Export”| Command | Purpose |
|---|---|
dock2md interactions |
Run pinned PLIP 3.0.0 analysis on existing docking outputs, complexes, or interactions.csv (workflow_existing_docking.yaml) — Try live |
dock2md rank |
Re-rank compounds from an existing interactions.csv under new criteria without re-running PLIP |
dock2md fingerprint |
Build dense residue-interaction matrices, pairwise similarity, and reference-retention reports |
dock2md profile-template |
Generate a curated interaction_profile.csv template from a complex (DD-205) |
dock2md screen |
Run docking → interactions → fingerprint → retention screening |
dock2md export-dataset |
Export model-ready ML dataset bundles (labels, matrices, 3D pharmacophores, dataset card) |
dock2md run |
Orchestrate Stages 1–4 end-to-end from a single declarative workflow.yaml |
Stage 5 · Molecular Dynamics
Section titled “Stage 5 · Molecular Dynamics”| Command | Purpose |
|---|---|
dock2md md |
Sub-actions: prepare, run, analyze, batch, progress, init (GROMACS Protocol v1 default; Protocol v2 and OpenMM experimental) |