Skip to content
Agentmart
Submit a tool

drug-trajectory-analysis

Analyze a protein-ligand MD trajectory to compute ligand RMSD, pocket RMSF, hydrogen bonds, contact occupancy, and protein-ligand interaction fingerprints…

Skill by learningmatter-mit

IndexedMIT★ 183
Write a review

Chalk Labs

Need help deploying drug-trajectory-analysis?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

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-trajectory-analysis

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.

We use your email only for this newsletter. Privacy

About

Analyze a protein-ligand MD trajectory to compute ligand RMSD, pocket RMSF, hydrogen bonds, contact occupancy, and protein-ligand interaction fingerprints over time.

No 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-trajectory-analysis

What's inside

Skill name
drug-trajectory-analysis
Description
Analyze a protein-ligand MD trajectory to compute ligand RMSD, pocket RMSF, hydrogen bonds, contact occupancy, and protein-ligand interaction fingerprints over time.
License
MIT
Instructions
105 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (15)

  • SKILL.md
  • README.md · examples/hiv1-protease/
  • analysis_summary.json · examples/hiv1-protease/analysis/
  • contacts.csv · examples/hiv1-protease/analysis/
  • hbonds.csv · examples/hiv1-protease/analysis/
  • interaction_fingerprints.csv · examples/hiv1-protease/analysis/
  • ligand_com.csv · examples/hiv1-protease/analysis/
  • ligand_rmsd.csv · examples/hiv1-protease/analysis/
  • binding_snapshots.png · examples/hiv1-protease/analysis/plots/
  • contacts.png · examples/hiv1-protease/analysis/plots/
  • ligand_com.png · examples/hiv1-protease/analysis/plots/
  • ligand_rmsd.png · examples/hiv1-protease/analysis/plots/
  • pocket_rmsf.png · examples/hiv1-protease/analysis/plots/
  • pocket_rmsf.csv · examples/hiv1-protease/analysis/
  • analyze_trajectory.py · scripts/

SKILL.md (first lines)

# drug-trajectory-analysis

## Goal
To extract quantitative binding-mode descriptors from a protein-ligand MD trajectory, producing:
- Ligand heavy-atom RMSD (pose stability)
- Ligand center-of-mass drift
- Binding-pocket residue RMSF (pocket flexibility)
- Hydrogen bond persistence
- Key contact occupancy
- Protein-ligand interaction fingerprints (IFPs) over time

These outputs feed directly into go/no-go decisions about pose validity and can be used to compare refinement trajectories across compounds.

## Instructions

### 1. Prepare inputs

Required:
- **Trajectory**: DCD file from [drug-protein-ligand-md](../drug-protein-ligand-md/SKILL.md)
- **Topology**: the solvated complex PDB used as the MD input

### 2. Run trajectory analysis

```bash
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/analyze_trajectory.py \
  --topology md/system/complex_solvated.pdb \
  --trajectory md/run/production.dcd \
  --ligand_resname UNL \
  --pocket_cutoff 5.0 \
  --output_dir md/analysis/
```

Key parameters:
- `--ligand_resname`: residue name of the ligand in the topology (default: `UNL`). Check the solvated PDB if unsure.
- `--pocket_cutoff`: distance cutoff in Angstroms for defining pocket residues around the ligand in the first frame (default: 5.0).
- `--skip_frames`: skip the first N frames as equilibration (default: 0).
- `--snapshots`: render PyMOL binding pocket snapshots at 4 timepoints (requires `pymol-open-source`).

### 3. Output files

The script produces:
- `md/analysis/ligand_rmsd.csv`: per-frame ligand heavy-atom RMSD (Angstroms)
- `md/analysis/ligand_com.csv`: per-frame ligand COM relative to protein backbone COM
- `md/analysis/pocket_rmsf.csv`: per-residue RMSF of pocket residues (Angstroms)
- `md/analysis/hbonds.csv`: hydrogen bond donor-acceptor pairs and occupancy fractions
- `md/analysis/contacts.csv`: residue-level contact occupancy fractions
- `md/analysis/interaction_fingerprints.csv`: per-frame binary IFP matrix (requires ProLIF)
- `md/analysis/analysis_summary.json`: summary statistics
- `md/analysis/plots/`: directory with PNG plots (RMSD time series, COM drift, RMSF bar chart, contact occupancy, PyMOL binding pocket snapshots)

### 4. Interpret results

Key indicators of a stable binding pose:
- **Ligand RMSD**: should plateau below 2-3 A for a stable pose. Persistent drift above 3 A suggests the ligand is leaving the pocket or adopting an alternative binding mode.
- **COM drift**: large monotonic drift indicates ligand unbinding.
- **Pocket RMSF**: identifies flexible vs. rigid pocket regions. High RMSF (>2 A) at key contact residues may indicate induced fit.
- **H-bond persistence**: critical hydrogen bonds should have >50% occupancy for a well-resolved interaction.
- **IFP consistency**: stable binding modes show consistent fingerprint patterns across the trajectory.

### 5. Quick single-metric check

For a fast assessment, check only ligand RMSD:

```bash
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/analyze_trajectory.py \
  --topology md/system/complex_solvated.pdb \
  --trajectory md/run/production.dcd \
  --ligand_resname UNL \
  --rmsd_only \
  --output_dir md/analysis/
```

## Examples

### Example: full analysis of TYK2 inhibitor trajectory

```bash
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/analyze_trajectory.py \
  --topology tyk2/md/system/complex_solvated.pdb \
  --trajectory tyk2/md/run/production.dcd \
  --ligand_resname UNL \
  --pocket_cutoff 5.0 \
  --skip_frames 10 \
  --output_dir tyk2/md/analysis/
```

## Constraints

- **Environment**: Requires `cpu` (includes MDAnalysis and ProLIF).
- **Trajectory format**: DCD is the default from the MD skill. PDB trajectories and XTC are also supported by MDAnalysis.
- **Ligand residue name**: must match the name used in the topology PDB. OpenMM often assigns `UNL` to non-standard residues.
- **ProLIF requirement**: interaction fingerprints require ProLIF. If ProLIF is not installed, the script skips IFP computation and logs a warning.
- **Memory**: large trajectories (>10k frames) may require significant memory for IFP computation. Use `--skip_frames` or `--stride` to downsample.

## References

- Michaud-Agrawal, N.; Denning, E. J.; Woolf, T. B.; Beckstein, O. MDAnalysis: A Toolkit for the Analysis of Molecular Dynamics Simulations. *J. Comput. Chem.* **2011**, *32*, 2319-2327. https://doi.org/10.1002/jcc.21787
- Bouysset, C.; Fiorucci, S. ProLIF: a Library to Encode Molecular Interactions as Fingerprints. *J. Cheminform.* **2021**, *13*, 72. https://doi.org/10.1186/s13321-021-00548-6

---

**Author:** Matthew Cox
**Contact:** [GitHub @mcox3406](https://github.com/mcox3406)

From learningmatter-mit/AtomisticSkills, MIT.

More from learningmatter-mit/AtomisticSkills

Signals

Stars
183
Forks
31
Open issues
0
Last commit (this folder)
Oct 5, 2026 (25 days ago)
Last release
Oct 6, 2026 (24 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from learningmatter-mit

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get drug-trajectory-analysis running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying drug-trajectory-analysis?

CallGet help
Cite this page

drug-trajectory-analysis skill. Agent Mart. https://agentmart.dev/skills/learningmatter-mit-drug-trajectory-analysis (last updated 2026-10-24)