MD Analyze

Concatenate molecular dynamics trajectories into a combined DCD and reference PDB.

11|2|Updated Oct 18, 2025
One-click install
npx skills add https://github.com/matsunagalab/mdclaw --skill md-analyze
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: MD Analyze
Source: https://github.com/matsunagalab/mdclaw/tree/main/skills/md-analyze
Command: npx skills add https://github.com/matsunagalab/mdclaw --skill md-analyze

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically consolidates fragmented MD trajectories from a prod lineage into a single, memory-efficient combined trajectory and provides a reference structure for downstream analysis.

Core Features & Use Cases

  • Trajectory consolidation: streaming concatenation of prod trajectories with user-selected atom subsets and stride.
  • Artifact generation: outputs combined_trajectory (dcd), reference_pdb, and selection_indices for cross-tool comparisons.
  • Handoff-ready data: supplies metadata (n_atoms_selected, total_frames, frames_per_source, source_trajectories, prmtop_file) for RMSD, RMSF, and distance analyses.

Quick Start

Run the MD Analyze workflow to concatenate the prod trajectory lineage into a single combined trajectory and generate a reference structure for downstream analyses.

Frequently Asked Questions about MD Analyze

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

FAQPage Schema
How do I concatenate molecular dynamics trajectories from a prod lineage into a single file?▼

To concatenate molecular dynamics trajectories, you can stream and combine fragmented prod trajectory frames into a single memory-efficient combined trajectory. This process uses parameters like --selection, --stride, and --chunk to manage atom subsets and frame streaming.

How do I prepare a reference structure for RMSD and RMSF trajectory analysis?▼

Preparing a reference structure for RMSD and RMSF analysis involves generating a reference_pdb file alongside your combined trajectory. The workflow outputs this reference structure and selection_indices to provide the necessary baseline for cross-tool structural comparisons.

Can I analyze large MD trajectories in chunks to avoid memory limits?▼

Yes, you can analyze large MD trajectories in chunks to avoid memory limits by using a streaming concatenation approach. The workflow supports a --chunk parameter to stream frames efficiently, producing a compact combined trajectory without loading everything into memory at once.

What is the best way to select specific atoms when combining MD simulation trajectories?▼

The best way to select specific atoms when combining MD simulation trajectories is to use the --selection parameter during the streaming concatenation workflow. This generates a combined trajectory containing only your chosen atom subsets and outputs the corresponding selection_indices.

What metadata is generated for downstream molecular dynamics distance analyses?▼

Metadata generated for downstream molecular dynamics distance analyses includes n_atoms_selected, total_frames, frames_per_source, source_trajectories, and prmtop_file. This node metadata ensures reproducible analyses when calculating distances across consolidated trajectory artifacts.