Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 1.1.2 instead.
Reason given by maintainers: missing bundled dataset file; superseded by 1.1.2

Superseded by fastmdxplora

FastMDAnalysis is no longer developed. FastMDXplora has every analysis below, and adds system setup, production MD, enhanced sampling and free energies behind the same CLI and Python API.

pip install fastmdxplora

To reproduce published results, pin the last release: pip install fastmdanalysis==1.1.0. Version 1.1.1 adds this notice and changes nothing else.


DOI Total PyPI downloads

FastMDAnalysis

Tests codecov Docs PyPI Python License


Highlights

  • Perform complex molecular dynamics analyses with intuitive, single-line commands
  • Automatically generate slide-ready, publication-quality figures with consistent axes, fonts, and colorbars
  • Seamlessly switch between Python API for advanced workflows and CLI for rapid batch processing
  • Scalable workflows that handle everything from quick exploratory analysis to large-scale production runs

Analysis Modules

Analysis Description
rmsd Root-Mean-Square Deviation relative to a reference frame
rmsf Per-atom Root-Mean-Square Fluctuation
rg Radius of Gyration for molecular compactness
hbonds Hydrogen bond detection and count using Baker-Hubbard algorithm
ss Secondary Structure assignments using DSSP
cluster Trajectory clustering using KMeans, DBSCAN, and Hierarchical methods
sasa Solvent Accessible Surface Area with total, per-residue, and average per-residue
dimred Dimensionality reduction using PCA, MDS, and t-SNE methods
qvalue Fraction of Native Contacts for protein folding analysis
dihedrals Phi, Psi, Omega angle analysis + Ramachandra Plots

Installation

We strongly recommend installing FastMDAnalysis in a virtual environment to avoid conflicts with system packages and ensure the fastmda command is available in your PATH.

conda create -n fastmda_env python=3.11
conda activate fastmda_env
conda install -c conda-forge fastmdanalysis

Verify installation

fastmda analyze -h

(Alternatively) Install from PyPI

Make sure you have Python 3.9+ installed and available as 'python'.

python -m venv fastmda_env
# On Linux/macOS:
source fastmda_env/bin/activate

# Or on Windows:
# fastmda_env\Scripts\activate
pip install fastmdanalysis

Verify installation

fastmda analyze -h

Usage

Command-Line Interface (CLI)

After installation, you can run FastMDAnalysis from the command line using the fastmda command. Global options allow you to specify the trajectory and topology file paths. Optionally, specify frame selection and atom selection. Frame selection is provided as a tuple (start, stop, stride). Negative indices (e.g., -1 for the last frame) are supported. If no options are provided, the entire trajectory and all atoms are used by default.

Run the analyze orchestrator to execute multiple analyses in one go.

Run all available analyses

fastmda analyze -traj path/to/trajectory -top path/to/topology

Include specific analyses

fastmda analyze -traj traj.dcd -top top.pdb --include rmsd rg

Exclude specific analyses

fastmda analyze -traj traj.dcd -top top.pdb --exclude sasa dimred cluster

Supply options via file (YAML or JSON)

fastmda analyze -traj traj.dcd -top top.pdb --options options.yaml

Create a slide deck from generated figures

fastmda analyze -traj traj.dcd -top top.pdb  --slides

Global flags:

  • --frames start,stop,stride (e.g., 0,-1,10)
  • --atoms "MDTraj selection" (e.g., "protein and name CA")
  • --output DIR (output directory name)
  • --verbose (prints progress and writes logs under <command>_output/ unless --output is set)

Show help:

  • fastmda -h
  • fastmda analyze -h

Options file (schema)

Provide per-analysis keyword arguments in a single file. CLI and Python API share the same schema:

# options.yaml
rmsd:
  ref: 0
cluster:
  methods: [kmeans, hierarchical]
  n_clusters: 5

Slides:

  • --slides creates fastmda_slides_<ddmmyy.HHMM>.pptx in the current working directory.
  • --slides path/to/deck.pptx writes to an explicit filename.

Python API

Instantiate a FastMDAnalysis object with your trajectory and topology file paths.

Run the analyze orchestrator to execute all available analyses.

from fastmdanalysis import FastMDAnalysis
from fastmdanalysis.datasets import TrpCage  # optional helper

fastmda = FastMDAnalysis(TrpCage.traj, TrpCage.top)
fastmda.analyze()

Include or Exclude specific analyses; specify options, generate slides

fastmda = FastMDAnalysis(TrpCage.traj, TrpCage.top)
result = fastmda.analyze(
    include=["rmsd", "rg"],                 # or exclude=[...]; omit to run all
    options={"rmsd": {"ref": 0, "align": True}},
    slides=True                             # or slides="results.pptx"
)

Notes

  • Figures are saved during each analysis; slide decks include all figures produced in the run.
  • MDTraj may emit benign warnings (e.g., dummy CRYST1 records); they do not affect results.

Output

Output includes data tables, figures (already stylized for slides), slide deck, log file ...


Validation and Benchmarks


Documentation

The documentation [under development] (with an extensive User Guide) is available here.


Contributing

Contributions are welcome. Please submit a Pull Request.

Development Installation

If you want to contribute or modify the code:

# Clone the repository
git clone https://github.com/aai-research-lab/FastMDAnalysis.git
cd FastMDAnalysis

# Create and activate virtual environment
python -m venv fastmda_env
source fastmda_env/bin/activate  # On Windows: fastmda_env\Scripts\activate

# Install in development mode with test dependencies
pip install -e ".[test]"

# Verify installation
fastmda -h
fastmda analyze -h

Citation

If you use FastMDAnalysis in your work, please cite:

Aina, A. and Kwan, D. (2025) “FastMDAnalysis: Software for Automated Analysis of Molecular Dynamics Trajectories”. ChemRxiv. https://doi.org/10.26434/chemrxiv-2025-x8xnq

@article{fastmdanalysis,
  author       = {Adekunle Aina and Derrick Kwan},
  title        = {FastMDAnalysis: Software for Automated Analysis of Molecular Dynamics Trajectories},
  year         = {2025},
  doi          = {10.26434/chemrxiv-2025-x8xnq},
  publisher    = {ChemRxiv},
  url          = {https://doi.org/10.26434/chemrxiv-2025-x8xnq},
  type         = {preprint}
}

License

FastMDAnalysis is licensed under the MIT license.


Acknowledgements

FastMDAnalysis builds upon excellent open-source libraries to provide its high-performance analysis capabilities and to improve workflow efficiency, usability, and reproducibility in molecular dynamics trajectory analysis. We gratefully acknowledge:

  • MDTraj for foundational trajectory I/O and analysis modules
  • NumPy/SciPy for efficient numerical computations
  • scikit-learn for advanced machine learning algorithms
  • Matplotlib for publication-quality visualization

While leveraging these robust tools, FastMDAnalysis streamlines analysis for students, professionals, and researchers, especially those new to molecular dynamics. We thank the scientific Python community for their contributions to the ecosystem.

Metadata

Release files for fastmdanalysis 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastmdanalysis 1.1.1
File Size Uploaded
fastmdanalysis-1.1.1.tar.gz 80.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fastmdanalysis 1.1.1
File Interpreter ABI Platform
fastmdanalysis-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 186.0 kB

Release files / fastmdanalysis-1.1.1.tar.gz

Download URL fastmdanalysis-1.1.1.tar.gz
Size 80.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6cf600d16ae93b30108b8b5da05567e85cc75be74e0781c7a7f8a6d3e0cf8c80
BLAKE2b-256 checksum
How to use checksums
d93508fd06a775bd5ef0af8e6801a5777f302fa359cfe1d92ba4b246ac8124d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

Release files / fastmdanalysis-1.1.1-py3-none-any.whl

Download URL fastmdanalysis-1.1.1-py3-none-any.whl
Size 105.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b841525fa55fd0980a789a93278f92406805d013f2c76d078fe27394cb9370c
BLAKE2b-256 checksum
How to use checksums
1f256acef268f701055b8bce6869cd38574306afd807310fa54100e68ec01300
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

Release history Release notifications | RSS feed

1.1.2

2 release files

This release

1.1.1 This release

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page