Skip to main content

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

Docs

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

fastmdanalysis-0.0.1.tar.gz (16.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastmdanalysis-0.0.1-py3-none-any.whl (16.4 MB view details)

Uploaded Python 3

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

Hashes for fastmdanalysis-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1cc9df99778833f7739b1fa79c1b988a69f02a7b9684104ff6272a47738abae6
MD5 3ae31db24c6a163d7471cfda1ebf3011
BLAKE2b-256 5a950bf3c5c2289b652e6a4c9e0baccf0d3d4f22aa48fc6f97d97f461b2fe741

See more details on using hashes here.

Provenance

The following attestation bundles were made for fastmdanalysis-0.0.1.tar.gz:

Publisher: release.yml on aai-research-lab/FastMDAnalysis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for fastmdanalysis-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 333e680a6d5d7fa003822b189aecb698ae282446d1af8c08c54816305c07ab21
MD5 8ae87c49448d3817e5fea3a6039e6a9c
BLAKE2b-256 c5d66c18288a9ec9f08ba12cf8d90b8d6f51a1e9bb78319527a9535589a042a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for fastmdanalysis-0.0.1-py3-none-any.whl:

Publisher: release.yml on aai-research-lab/FastMDAnalysis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page