mdanalysis-trajectory

Analyze MD trajectories to compute RMSD, RMSF, hydrogen bonds, contact maps, and protein–ligand distances.

33|6|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill mdanalysis-trajectory-xjtulyc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mdanalysis-trajectory
Source: https://github.com/xjtulyc/awesome-rosetta-skills/tree/main/skills/02-chemistry/mdanalysis-trajectory
Command: npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill mdanalysis-trajectory-xjtulyc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you quantify biomolecular stability and interactions from molecular dynamics (MD) trajectories by turning raw per-frame coordinates into interpretable structural metrics and publication-ready figures.

Core Features & Use Cases

  • RMSD/RMSF analysis: Compute alignment-based RMSD for structural deviation and per-residue RMSF for flexibility over time.
  • Hydrogen bond & contact mapping: Track hydrogen bond occupancy and generate Cα contact maps or distance matrices to identify persistent interactions.
  • Protein–ligand distance monitoring: Measure whether a ligand remains in the binding pocket using centroid or pocket-distance time series.
  • Exportable results: Save computed metrics into pandas DataFrames/CSV for downstream statistics and reporting.

Quick Start

Use the mdanalysis-trajectory skill to analyze your trajectory by asking: Analyze my MD trajectory files with MDAnalysis to compute RMSD, RMSF, hydrogen bond occupancy, a Cα contact map, and protein–ligand pocket distance plots, then save the results to CSV and PNG.

Frequently Asked Questions about mdanalysis-trajectory

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compute RMSD and RMSF from a molecular dynamics trajectory using Python?

To compute RMSD and RMSF from a molecular dynamics trajectory, you load your topology and trajectory files into an MDAnalysis universe and apply alignment-based distance metrics to extract structural deviation and per-residue flexibility over time.

Can I track hydrogen bonds and generate contact maps for protein-ligand interactions in MDAnalysis?

Yes, you can track hydrogen bonds and generate contact maps in MDAnalysis by applying hydrogen bond criteria and optional cutoff aggregation to produce residue-resolved interaction summaries and distance matrices for your trajectory.

Does this trajectory analysis approach work with GROMACS, AMBER, NAMD, and LAMMPS output files?

Yes, this trajectory analysis approach works with GROMACS, AMBER, NAMD, and LAMMPS files by loading their topology and trajectory inputs into the MDAnalysis universe to process time-resolved coordinates.

How do I measure protein-ligand distances to see if a ligand stays in the binding pocket?

You measure protein-ligand distances by calculating centroid or pocket-distance time series from your trajectory frames, producing quantitative outputs that show whether the ligand remains in the binding pocket throughout the simulation.

What is the best way to export RMSD and hydrogen bond data for downstream statistical reporting?

The best way to export RMSD and hydrogen bond data for reporting is to save the computed metrics into pandas DataFrames and CSV files, which provides structured data suitable for downstream statistics and publication-ready matplotlib plots.