MDAnalysis
A comprehensive Python library that reads a very wide range of trajectory formats.
Tool 043 of 100 in the MolForge directory of open-source tools. Every fact below was read from the repository's host on 2026-11-28.

What MDAnalysis is
MDAnalysis is a Python library for analysing molecular dynamics trajectories. A trajectory is the sequence of atomic coordinates that an MD engine writes; turning it into observables such as distances, root-mean-square deviations or diffusion coefficients requires reading many formats and selecting groups of atoms. MDAnalysis provides a Universe object that joins a topology with a trajectory, a selection language modelled on CHARMM and VMD, and NumPy arrays for everything else.
It reads the native formats of GROMACS, AMBER, CHARMM, NAMD, LAMMPS, HOOMD-blue, DL_POLY, Tinker and others, including XTC, TRR, DCD, NetCDF, GSD, H5MD and PDB, and writes most of them. Analysis classes cover RMSD and RMSF, structural alignment, radial distribution functions, hydrogen bonds, contacts, density maps, mean-squared displacement, principal component analysis, dihedrals, helix geometry and polymer statistics. Converters exchange structures with RDKit, ParmEd and OpenMM, and the MDAKit registry lists community packages built on it.
MDAnalysis processes one frame at a time and leaves plotting and statistics to the user; some heavy analyses require writing a loop or using the parallel analysis backends.
Features
- Readers and writers for XTC, TRR, DCD, NetCDF, GSD, H5MD, LAMMPS dump and many more
- Atom selection language with geometric, topological and chemical criteria
- Analysis modules for RMSD, RDF, hydrogen bonds, contacts, density and MSD
- Structural alignment, principal component analysis and dihedral analysis
- Converters to and from RDKit, ParmEd and OpenMM objects
- Auxiliary readers for energy files alongside trajectories
- MDAKit ecosystem of community analysis packages
What it is for
- Compute RMSD, RMSF and contacts across a protein trajectory
- Measure radial distribution functions and diffusion in liquids
- Select and write out a subset of atoms or frames in another format
- Build custom analyses on NumPy arrays of coordinates
Verified facts
| Family | Trajectory analysis and Markov state models |
|---|---|
| Language or basis | Python |
| Repository | https://github.com/MDAnalysis/mdanalysis (GitHub) |
| Licence | No licence detected by GitHub; read the repository before reuse |
| Main language on GitHub | Python |
| Last commit | 2026-11-27 |
| Latest release | package-2.11.0 (2026-10-21) |
| Stars | 1,686 on 2026-11-28 |
| Open issues and pull requests | 562 on 2026-11-28 |
| Repository created | 2015-04-04 |
| Verified | 2026-11-28 by MolForge's checking script, against the host's API |
Where MDAnalysis fits
Turn molecular-dynamics output into observables: RMSD, radial distributions, diffusion, kinetics.
MDAnalysis appears in this chain of the directory: Biomolecular molecular dynamics.
Questions people ask
- What trajectory formats can MDAnalysis read?
- Most formats in common use: GROMACS XTC, TRR and TPR, AMBER NetCDF and ASCII, CHARMM and NAMD DCD, LAMMPS dump and data, HOOMD GSD, H5MD, DL_POLY, Tinker, PDB, GRO, MOL2, XYZ and more, with chemfiles as an additional backend. The documentation lists each format and whether reading, writing or both are supported.
- How is MDAnalysis different from MDTraj?
- Both are Python trajectory libraries with overlapping features. MDAnalysis emphasises breadth of formats, a rich selection language and an object model of atoms, residues and segments. MDTraj emphasises a compact API, NumPy-centred data and a set of protein analyses such as DSSP and NMR observables. Many groups install both.
- Can MDAnalysis handle very large trajectories?
- Yes, because frames are read one at a time rather than loaded into memory, so file size is not the limit. Analysis time scales with the number of frames; recent versions offer parallel backends for some analysis classes, and users can split trajectories across processes themselves.
- Is MDAnalysis suitable for beginners?
- A user comfortable with Python and NumPy can load a trajectory and compute an RMSD in a few lines, and the User Guide walks through common tasks. Understanding what to compute, periodic boundary conditions and unit conventions still requires knowledge of molecular simulation.
- Where is the MDAnalysis source code?
- At https://github.com/MDAnalysis/mdanalysis (GitHub). This is the address the host reported on the day of verification; renamed repositories are followed to their new home.
- Is MDAnalysis still maintained?
- The last commit was pushed on 2026-11-27 and the latest tagged release is package-2.11.0 from 2026-10-21; the repository had 562 open issues and pull requests on 2026-11-28.
- Does MolForge use MDAnalysis?
- No. MolForge runs nine of the hundred tools in this directory (RDKit, OpenMM, AutoDock Vina, Open Babel, MDTraj, pymbar and NGL, plus PySCF and xTB in MFsig); MDAnalysis is listed because of its place in trajectory analysis and Markov state models, not because we run it.
Our comments on MDAnalysis
MolForge does not run MDAnalysis in production. This page is a verified pointer, not a review: the facts above come from the repository on the date shown, the description is ours, and we make no claim about accuracy or speed that we have not measured. If you maintain MDAnalysis and something here is wrong or out of date, write to hello@molforge.ai and we will correct the source file.
Test status
Not tested by MolForge. To check MDAnalysis yourself: clone the repository, follow the installation section of its README, and run the test suite the project ships before trusting a result; the last-commit date and the open issue count above tell you how alive the project is.