drug-protein-ligand-md
Run a protein-ligand MD simulation in OpenMM with energy minimization, restrained equilibration, and production NPT, producing trajectory and checkpoint files…
Skill by learningmatter-mit
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/learningmatter-mit-drug-protein-ligand-md
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/drug-protein-ligand-md
What's inside
- Skill name
drug-protein-ligand-md- Description
- Run a protein-ligand MD simulation in OpenMM with energy minimization, restrained equilibration, and production NPT, producing trajectory and checkpoint files for downstream analysis.
- License
- MIT
- Instructions
- 129 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (4)
- SKILL.md
- README.md · examples/hiv1-protease/
- md_provenance.json · examples/hiv1-protease/run/
- run_md.py · scripts/
SKILL.md (first lines)
# drug-protein-ligand-md
## Goal
To run a complete protein-ligand molecular dynamics simulation using OpenMM, starting from a system bundle produced by [drug-complex-system-builder](../drug-complex-system-builder/SKILL.md). The workflow includes:
1. Energy minimization
2. NVT equilibration with positional restraints on heavy atoms
3. NPT equilibration with restraints gradually released
4. NPT production run
The output is a DCD trajectory + final state checkpoint suitable for [drug-trajectory-analysis](../drug-trajectory-analysis/SKILL.md).
## Instructions
### 1. Prepare inputs
Required from [drug-complex-system-builder](../drug-complex-system-builder/SKILL.md):
- `system.xml`: serialized OpenMM System
- `complex_solvated.pdb`: solvated complex PDB (used as topology reference)
### 2. Run the simulation
```bash
${CLAUDE_SKILL_DIR}/../../venv/run cpu+openmm python ${CLAUDE_SKILL_DIR}/scripts/run_md.py \
--system_xml md/system/system.xml \
--input_pdb md/system/complex_solvated.pdb \
--temperature 300 \
--pressure 1.0 \
--timestep 4.0 \
--minimize_steps 5000 \
--equil_nvt_steps 25000 \
--equil_npt_steps 50000 \
--production_steps 2500000 \
--restraint_k 50.0 \
--reporting_interval 5000 \
--checkpoint_interval 25000 \
--output_dir md/run/
```
Key parameters:
- `--temperature`: simulation temperature in Kelvin (default: 300).
- `--pressure`: target pressure in atm (default: 1.0).
- `--timestep`: integration timestep in fs (default: 4.0). 4 fs is safe with hydrogen mass repartitioning (HMR) from the system builder; use 2 fs without HMR.
- `--minimize_steps`: max minimization steps (default: 5000). Set to 0 to skip.
- `--equil_nvt_steps`: NVT equilibration steps with restraints on protein/ligand heavy atoms (default: 25000 = 100 ps at 4 fs).
- `--equil_npt_steps`: NPT equilibration steps with restraints released (default: 50000 = 200 ps).
- `--production_steps`: production NPT steps (default: 2500000 = 10 ns at 4 fs).
- `--restraint_k`: restraint force constant for equilibration in kJ/mol/nm^2 (default: 50.0).
- `--reporting_interval`: write trajectory frame every N steps (default: 5000 = 20 ps).
- `--checkpoint_interval`: write checkpoint every N steps (default: 25000).
### 3. Output files
The script produces:
- `md/run/minimized.pdb`: structure after energy minimization
- `md/run/nvt_equilibration.log`: energy/temperature log during NVT equilibration
- `md/run/npt_equilibration.log`: energy/temperature/density log during NPT equilibration
- `md/run/production.dcd`: production trajectory (DCD format)
- `md/run/production.log`: production energy/temperature/density log
- `md/run/final_state.xml`: serialized simulation state for restarts
- `md/run/md_provenance.json`: all simulation parameters and timing
### 4. Running replicates
For statistical confidence, run multiple independent replicates with different random seeds:
```bash
for i in 1 2 3; do
${CLAUDE_SKILL_DIR}/../../venv/run cpu+openmm python ${CLAUDE_SKILL_DIR}/scripts/run_md.py \
--system_xml md/system/system.xml \
--input_pdb md/system/complex_solvated.pdb \
--production_steps 2500000 \
--seed $((42 + i)) \
--output_dir md/rep_${i}/
done
```
### 5. Quick validation checks
After the run, verify:
- Temperature fluctuates around the target (check production.log)
- Density is stable around 1.0 g/cm^3 for aqueous systems
- Total energy does not drift monotonically
- The ligand remains in the binding pocket (use [drug-trajectory-analysis](../drug-trajectory-analysis/SKILL.md))
## Examples
### Example: 10 ns production MD of TYK2 complex
```bash
${CLAUDE_SKILL_DIR}/../../venv/run cpu+openmm python ${CLAUDE_SKILL_DIR}/scripts/run_md.py \
--system_xml tyk2/md/system/system.xml \
--input_pdb tyk2/md/system/complex_solvated.pdb \
--temperature 300 \
--timestep 4.0 \
--production_steps 2500000 \
--output_dir tyk2/md/run/
```
### Example: short 1 ns refinement for pose assessment
```bash
${CLAUDE_SKILL_DIR}/../../venv/run cpu+openmm python ${CLAUDE_SKILL_DIR}/scripts/run_md.py \
--system_xml md/system/system.xml \
--input_pdb md/system/complex_solvated.pdb \
--production_steps 250000 \
--reporting_interval 2500 \
--output_dir md/short_refine/
```
## Constraints
- **Environment**: Requires `cpu+openmm`.
- **GPU acceleration**: The script auto-detects CUDA GPUs. Without a GPU, simulations will run on CPU (significantly slower; consider reducing production_steps for testing).
- **Timestep**: 4 fs requires hydrogen mass repartitioning (HMR) in the system. The [drug-complex-system-builder](../drug-complex-system-builder/SKILL.md) applies HMR by default. If using a system without HMR, set `--timestep 2.0`.
- **Trajectory size**: DCD files grow ~1 MB per 1000 frames for a typical 50k-atom system. A 10 ns run at 20 ps intervals produces ~500 frames (~500 MB).
- **Restarts**: use `--restart_from` with a saved state XML to continue a simulation.
## ReferencesFrom learningmatter-mit/AtomisticSkills, MIT.
More from learningmatter-mit/AtomisticSkills
- 0.681score
drug-binding-site-definition
learningmatter-mit
Define a docking search box (center coordinates + box dimensions in Angstroms) from a co-crystal ligand, binding-site residues, or a saved JSON specification.
SkillAFreshness: A★ 183Claude Code +9 - 0.681score
drug-mmpbsa-gbsa
learningmatter-mit
Compute single-trajectory MM-GBSA and / or MM-PBSA binding free energy estimates from a protein-ligand MD trajectory.
SkillAFreshness: A★ 183Claude Code +9 - 0.681score
drug-complex-system-builder
learningmatter-mit
Build a solvated, charge-neutralized protein-ligand complex for OpenMM molecular dynamics simulation.
SkillAFreshness: A★ 183Claude Code +9 - 0.681score
drug-pocket-detection
learningmatter-mit
Identify and rank ligandable pockets on a protein structure or model using geometry (fpocket) or an ML predictor (P2Rank).
SkillAFreshness: A★ 183Claude Code +9 - 0.678score
chem-sorption-relax
learningmatter-mit
Prepares supercells for porous frameworks based on minimum interplanar distance and relaxes them using standard MLIP relaxation tools.
SkillAFreshness: A★ 183Claude Code +9 - 0.678score
drug-redocking-rmsd
learningmatter-mit
Compute symmetry-corrected heavy-atom RMSD between docked poses and a reference crystal ligand to validate docking protocols.
SkillAFreshness: A★ 183Claude Code +9 - 0.678score
chem-dft-orca-singlepoint
learningmatter-mit
Run a DFT or Coupled Cluster single-point energy calculation (with optional gradients/Hessian) on a molecular structure with ORCA through SCINE wrapper.
SkillAFreshness: A★ 183Claude Code +9 - 0.678score
chem-db-mof
learningmatter-mit
Query multiple MOF databases (QMOF via MPContribs; ARC-MOF DB7/Majumdar et al.
SkillAFreshness: A★ 183Claude Code +9 - 0.678score
chem-dft-orca-optimization
learningmatter-mit
Run DFT geometry optimization (minimization or TS search) on a molecular structure using ORCA via SCINE/ReaDuct wrapper.
SkillAFreshness: A★ 183Claude Code +9 - 0.678score
chem-bond-dissociation
learningmatter-mit
Calculate homolytic and heterolytic bond dissociation energies (BDEs) for all single bonds in a molecule using MLIPs with RDKit fragmentation.
SkillAFreshness: A★ 183Claude Code +9 - 0.678score
drug-pose-validation
learningmatter-mit
Validate docked or generated ligand poses for physical plausibility using PoseBusters, filtering out chemically invalid or clashing poses before downstream…
SkillAFreshness: A★ 183Claude Code +9 - 0.678score
chem-hazard-toxicity
learningmatter-mit
Extract explicit safety warnings, GHS classifications, LD50 toxicity profiles, and acute oral toxicity triage from PubChem PUG VIEW.
SkillAFreshness: A★ 183Claude Code +9
Signals
- Stars
- 183
- Forks
- 31
- Open issues
- 0
- Last commit (this folder)
- Oct 5, 2026 (22 days ago)
- Last release
- Oct 6, 2026 (21 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Website
- arxiv.org/abs/2605.24002
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from learningmatter-mit
- 0.681score
drug-binding-site-definition
learningmatter-mit
Define a docking search box (center coordinates + box dimensions in Angstroms) from a co-crystal ligand, binding-site residues, or a saved JSON specification.
SkillAFreshness: A★ 183Claude Code +9 - 0.681score
drug-complex-system-builder
learningmatter-mit
Build a solvated, charge-neutralized protein-ligand complex for OpenMM molecular dynamics simulation.
SkillAFreshness: A★ 183Claude Code +9 - 0.681score
drug-mmpbsa-gbsa
learningmatter-mit
Compute single-trajectory MM-GBSA and / or MM-PBSA binding free energy estimates from a protein-ligand MD trajectory.
SkillAFreshness: A★ 183Claude Code +9 - 0.681score
drug-pocket-detection
learningmatter-mit
Identify and rank ligandable pockets on a protein structure or model using geometry (fpocket) or an ML predictor (P2Rank).
SkillAFreshness: A★ 183Claude Code +9 - 0.678score
drug-pose-validation
learningmatter-mit
Validate docked or generated ligand poses for physical plausibility using PoseBusters, filtering out chemically invalid or clashing poses before downstream…
SkillAFreshness: A★ 183Claude Code +9 - 0.678score
chem-sorption-relax
learningmatter-mit
Prepares supercells for porous frameworks based on minimum interplanar distance and relaxes them using standard MLIP relaxation tools.
SkillAFreshness: A★ 183Claude Code +9
Cite this page
drug-protein-ligand-md skill. Agent Mart. https://agentmart.dev/skills/learningmatter-mit-drug-protein-ligand-md (last updated 2026-10-24)