Overview
MDTraj is a Python library for manipulating and analyzing molecular dynamics (MD) trajectories. It supports a wide range of trajectory formats including pdb, xtc, trr, dcd, netcdf, mdcrd, prmtop and gsd, and provides fast RMSD (roughly 4x the Theobald QCP), solvent-accessible surface area, hydrogen-bond identification, secondary-structure assignment and NMR observables, with an emphasis on speed and vectorized operations.
The project is actively maintained by community members and representatives from Folding@Home, the Molecular Sciences Software Institute and the Open Force Field Initiative, and is released under LGPL-2.1.
Key Features
- Supports a wide range of MD trajectory formats including pdb, xtc, trr, dcd, netcdf, mdcrd, prmtop and gsd.
- Provides fast RMSD, solvent-accessible surface area, hydrogen-bonding and secondary-structure analyses.
- Speed-oriented, vectorized operations with a lightweight API.
Use Cases
- Read, write and analyze trajectories produced by molecular dynamics simulations.
- Compute RMSD, hydrogen bonds, SASA and other structural metrics for trajectory characterization.
How to Use
Install with pip install mdtraj and call analysis functions after loading a trajectory. See https://mdtraj.readthedocs.io.
Sources and verification
This entry describes capabilities documented by the linked project sources. Catalog edits are not evidence of a successful run, compatibility test or scientific performance evaluation.
Read the editorial and verification policy