Software for automated MD trajectory analysis
Project description
FastMDAnalysis
Fully Automated System for Molecular Dynamics Trajectory Analysis
FastMDAnalysis allows you to perform a variety of MD analyses in a single line of code.
FastMDAnalysis is designed to simplify your workflow by allowing you to load a trajectory once (with options for frame and atom selection) and then run multiple analyses without repeating input file details.
FastMDAnalysis automatically generates publication-ready figures (with options for customization).
FastMDAnalysis provides a unified Python API as well as a command‐line interface (CLI).
Documentation
Full documentation with extensive usage examples can be found at https://fastmdanalysis.readthedocs.io
Features
- rmsd: Calculate Root-Mean-Square Deviation relative to a reference frame.
- rmsf: Compute per-atom Root-Mean-Square Fluctuation.
- rg: Determine the Radius of Gyration for each frame.
- hbonds: Detect and count hydrogen bonds using the Baker-Hubbard algorithm.
- ss: Compute Secondary Structure (SS) assignments using DSSP with a discrete heatmap.
- cluster: Perform clustering on trajectory frames:
- KMeans
- DBSCAN
- Hierarchical
- sasa: Compute Solvent Accessible Surface Area (SASA) in multiple ways:
- Total SASA vs. frame.
- Per-residue SASA vs. frame (heatmap).
- Average per-residue SASA (bar plot).
- dimred: Perform dimensionality reduction to project high-dimensional data into 2D:
- PCA
- MDS
- t-SNE
Installation
Navigate to the root directory of the package (the directory containing setup.py).
For a standard installation, run:
pip install .
For development (editable) mode, run:
pip install -e .
Usage
Python API
Instantiate a FastMDAnalysis object with your 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.
RMSD Analysis:
from fastmdanalysis import FastMDAnalysis
fastmda = FastMDAnalysis("traj.dcd", "top.pdb")
# Run RMSD analysis
rmsd_analysis = fastmda.rmsd()
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, topology, frame selection, and atom selection.
RMSF Analysis:
fastmda rmsf -traj traj.dcd -top top.pdb
Contributing
Contributions are welcome. Please submit a Pull Request.
Citation
If you use FastMDAnalysis in your work, please cite:
Adekunle Aina (2025). FastMDAnalysis: Software for Automated Molecular Dynamics Trajectory Analysis. GitHub. https://github.com/aai-research-lab/fastmdanalysis
@software{FastMDAnalysis,
author = {Adekunle Aina},
title = {FastMDAnalysis: Software for Automated Molecular Dynamics Trajectory Analysis},
year = {2025},
publisher = {GitHub},
url = {https://github.com/aai-research-lab/fastmdanalysis}
}
License
FastMDAnalysis is licensed under the MIT License.
Acknowledgements
FastMDAnalysis leverages MDTraj for trajectory analysis. It also relies on popular Python libraries such as NumPy, scikit-learn, and Matplotlib for data processing and visualization. Special thanks to the community for their continuous support and contributions.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastmdanalysis-0.0.1.tar.gz.
File metadata
- Download URL: fastmdanalysis-0.0.1.tar.gz
- Upload date:
- Size: 16.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1cc9df99778833f7739b1fa79c1b988a69f02a7b9684104ff6272a47738abae6
|
|
| MD5 |
3ae31db24c6a163d7471cfda1ebf3011
|
|
| BLAKE2b-256 |
5a950bf3c5c2289b652e6a4c9e0baccf0d3d4f22aa48fc6f97d97f461b2fe741
|
Provenance
The following attestation bundles were made for fastmdanalysis-0.0.1.tar.gz:
Publisher:
release.yml on aai-research-lab/FastMDAnalysis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fastmdanalysis-0.0.1.tar.gz -
Subject digest:
1cc9df99778833f7739b1fa79c1b988a69f02a7b9684104ff6272a47738abae6 - Sigstore transparency entry: 637515889
- Sigstore integration time:
-
Permalink:
aai-research-lab/FastMDAnalysis@2dbc3ce768b89336de8a091c7c3b358a02a795f9 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/aai-research-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2dbc3ce768b89336de8a091c7c3b358a02a795f9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file fastmdanalysis-0.0.1-py3-none-any.whl.
File metadata
- Download URL: fastmdanalysis-0.0.1-py3-none-any.whl
- Upload date:
- Size: 16.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
333e680a6d5d7fa003822b189aecb698ae282446d1af8c08c54816305c07ab21
|
|
| MD5 |
8ae87c49448d3817e5fea3a6039e6a9c
|
|
| BLAKE2b-256 |
c5d66c18288a9ec9f08ba12cf8d90b8d6f51a1e9bb78319527a9535589a042a7
|
Provenance
The following attestation bundles were made for fastmdanalysis-0.0.1-py3-none-any.whl:
Publisher:
release.yml on aai-research-lab/FastMDAnalysis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fastmdanalysis-0.0.1-py3-none-any.whl -
Subject digest:
333e680a6d5d7fa003822b189aecb698ae282446d1af8c08c54816305c07ab21 - Sigstore transparency entry: 637515900
- Sigstore integration time:
-
Permalink:
aai-research-lab/FastMDAnalysis@2dbc3ce768b89336de8a091c7c3b358a02a795f9 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/aai-research-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2dbc3ce768b89336de8a091c7c3b358a02a795f9 -
Trigger Event:
push
-
Statement type: