drug-protein-ligand-md
Skill174 starsChanged 6 months agoMITView on GitHub
Run a protein-ligand MD simulation in OpenMM with energy minimization, restrained equilibration, and production NPT, producing trajectory and checkpoint files for downstream analysis.
In this repository133 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/atomisticskills.mdcCursor rule
- .cursor/rules/use-agent-skills.mdcCursor rule
- chem-bond-dissociationSkill
- chem-conformer-searchSkill
- chem-db-mofSkill
- chem-db-qmofSkill
- chem-db-spectraSkill
- chem-dft-orca-advanced-calculationSkill
- chem-dft-orca-optimizationSkill
- chem-dft-orca-singlepointSkill
- chem-docking-voidSkill
- chem-hazard-toxicitySkill
- chem-irc-verificationSkill
- chem-msms-predictSkill
- chem-neb-barrierSkill
- chem-nmr-analysisSkill
- chem-nmr-predictSkill
- chem-react-otSkill
- chem-similarity-searchSkill
- chem-solution-mdSkill
- chem-sorption-gcmcSkill
- chem-sorption-relaxSkill
- chem-sorption-widomSkill
- chem-spectrum-matcherSkill
- chem-thermochemistrySkill
- chem-ts-optimizationSkill
- chem-vibrationSkill
- drug-admet-predictionSkill
- drug-binding-site-definitionSkill
- drug-bioactivity-assaySkill
- drug-complex-system-builderSkill
- drug-db-chemblSkill
- drug-db-pdbSkill
- drug-db-pubchemSkill
- drug-docking-analysisSkill
- drug-docking-vinaSkill
- drug-ligand-prepSkill
- drug-mmpbsa-gbsaSkill
- drug-molecular-fingerprintsSkill
- drug-pocket-detectionSkill
- drug-pose-validationSkill
- drug-protein-prepSkill
- drug-redocking-rmsdSkill
- drug-retrosynthesisSkill
- drug-trajectory-analysisSkill
- general-arxiv-searchSkill
- general-biorxiv-searchSkill
- general-chemical-literatureSkill
- general-chemical-pricingSkill
- general-deep-researchSkill
- general-fair-data-reviewSkill
- general-patent-searchSkill
- general-peer-reviewSkill
- general-plot-digitizerSkill
- general-presentationSkill
- general-property-unitsSkill
- general-publisher-access-guardSkill
- general-query-literature-databaseSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 88
After the run, verify:
- Very specific: line 127
Restarts: use --restart_from with a saved state XML to continue a simulation.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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. The workflow includes:
- Energy minimization
- NVT equilibration with positional restraints on heavy atoms
- NPT equilibration with restraints gradually released
- NPT production run
The output is a DCD trajectory + final state checkpoint suitable for drug-trajectory-analysis.
Instructions
1. Prepare inputs
Required from drug-complex-system-builder:
system.xml: serialized OpenMM Systemcomplex_solvated.pdb: solvated complex PDB (used as topology reference)
2. Run the simulation
# Env: drugmd-agent
python .agents/skills/drug-protein-ligand-md/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 minimizationmd/run/nvt_equilibration.log: energy/temperature log during NVT equilibrationmd/run/npt_equilibration.log: energy/temperature/density log during NPT equilibrationmd/run/production.dcd: production trajectory (DCD format)md/run/production.log: production energy/temperature/density logmd/run/final_state.xml: serialized simulation state for restartsmd/run/md_provenance.json: all simulation parameters and timing
4. Running replicates
For statistical confidence, run multiple independent replicates with different random seeds:
# Env: drugmd-agent
for i in 1 2 3; do
python .agents/skills/drug-protein-ligand-md/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}/
done5. 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)
Examples
Example: 10 ns production MD of TYK2 complex
# Env: drugmd-agent
python .agents/skills/drug-protein-ligand-md/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
# Env: drugmd-agent
python .agents/skills/drug-protein-ligand-md/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
drugmd-agent. - 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 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_fromwith a saved state XML to continue a simulation.
References
- Eastman, P.; Galvelis, R.; Pelaez, R. P.; et al. OpenMM 8: Molecular Dynamics Simulation with Machine Learning Potentials. J. Phys. Chem. B 2024, 128(1), 109-116. https://doi.org/10.1021/acs.jpcb.3c06662
- Hopkins, C. W.; Le Grand, S.; Walker, R. C.; Roitberg, A. E. Long-Time-Step Molecular Dynamics through Hydrogen Mass Repartitioning. J. Chem. Theory Comput. 2015, 11, 1864-1874. https://doi.org/10.1021/ct5010406
Author: Matthew Cox Contact: GitHub @mcox3406
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

