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.

MDAnalysis, open-source tool for trajectory analysis and Markov state models: A comprehensive Python library that reads a very wide range of trajectory formats.

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

What it is for

Verified facts

FamilyTrajectory analysis and Markov state models
Language or basisPython
Repositoryhttps://github.com/MDAnalysis/mdanalysis (GitHub)
LicenceNo licence detected by GitHub; read the repository before reuse
Main language on GitHubPython
Last commit2026-11-27
Latest releasepackage-2.11.0 (2026-10-21)
Stars1,686 on 2026-11-28
Open issues and pull requests562 on 2026-11-28
Repository created2015-04-04
Verified2026-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.

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.

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.

Guides that explain the methods

Other tools in trajectory analysis and Markov state models