Skip to main content

TrajMapQuick Logo

Overview

TrajMapQuick 1.0 is a light tool useful for visualization of trajectory maps and residual shifts within select regions of proteins, across several frames. It is built partially on the codes provided in the original work of Matej Kožić and Branimir Bertoša, 2024 : "Trajectory maps: molecular dynamics visualization and analysis". TrajMapQuick extends the work by reconfiguring how the pdb files are parsed to generate the distance matrix, thereby improving speed dramatically. In addition, TrajMapQuick provides a CLI where the user can pass arguments for better throughput and batch processing. We have also extended the code to allow for automatic detection of regions with high residual fluctuations (named "Hotspots") and generation of the residual shifts of those regions. In addition, a python API has also been provided for python based community. In TrajMapQuick, the user can also choose between the backbone (backbone) atoms or the alpha carbon (CA) for computing the maps.

Features

  • Trajectory Map Visualization: Generates a trajectory map of residual fluctuations across the select frames chosen by the user.
  • Residual shift calculation and visualization: For a select range of residues (region), residual shifts are computed and visualized across select frames
  • Difference and Average map visualization This computes the difference and average of two trajectories, respectively and display the resultant trajectory maps.
  • Hotspot Detection and Plotting: This automatically probes and detects regions of high fluctuations and computes the residual shift for each region for downstream processing.
  • Hotspot Annotation: An RMSF like plot is also generated with the key hotspots highlight for visual confirmation and inspection.

Project Structure

See Github

Installation

# Clone the repo
git clone https://github.com/SHEDOOMTC/TrajMapQuick.git
cd TrajMapQuick

# In conda environment with pip
conda create -n tmq python=3.10 
conda activate tmq
conda install -c conda-forge mdtraj
pip install (-e) .

# In conda environment without pip
conda env create -f environment.yml
conda activate tmq

Use tmq --help to see the arguments

Commands

#TrajMapQuick uses a two levell subcommand from the global "tmq" command
tmq  shift  : Extract matrices, compute residue-residue shifts and make plots: For more, use tmq shift --help

tmq hotspot : Detect hotspots in residue shifts and create plots: For more, use tmq hotspot --help

tmq diff      Computes difference between two matrices and creates the difference map: For more, use tmq diff --help

tmq average   Computes average of n matrices and creates the average map: For more, use tmq average --help

Usage (CLI)

# For tmq shift, arguments are passed into the flags for trajectory, topology etc.

tmq shift --traj traj.pdb --top top.parmtop --str 1 --resr 1-300 --resrs 110-125 --cent backbone --plot --out shift_output

#for tmq hotspot, arguments are passed similiarly, except that the region of shift is not provided

tmq hotspot --traj traj.pdb --top top.parmtop --str 1 --resr 1-300 --cent backbone --out hotspot_output

Usage (Python API)

The core modules in the tmq library are clearly demonstrated in the Python_API.ipynb file

#Typical modules are loaded and then used as explained in the jupyter notebook above:

from tmq.core.traj2pdb import traj2pdb
from tmq.core.pdb2csv import pdb2csv  
from tmq.core.trajmap import trajmap
from tmq.core.csv2shift import shift
from tmq.core.shift2graph import shift2graph
from tmq.core.hotspot import detect_shifts
from tmq.core.hotspot import create_submatrices
from tmq.core.hotspot import plot_hotspot_regions
from tmq.core.hotspot import slice_shifts
from tmq.core.hotspot import plot_slice_regions
from tmq.core.diff2graph import diff_map
from tmq.core.average_trajmap import avg_trajmap
# To run the notebook
cd ./Notebooks/
jupyter notebook Python_API.ipynb

Requirements

  • Trajectory processing libraries (mdtraj, biopython)

  • Data wrangling tools (numpy, pandas)

  • Trajectories must have been preprocessed (strippin water, ions,) before feeding into TrajMapQuick

All library requirements are pre-installed installed via pip or conda and are available for use in CLI or via Python API

Examples

Three trajectories and topologies files are included in the Test directory for users to try out the codes. Trajectory 1 has only 125 frames (from apo strucuture of PDB ID: 8EM8 with 789 residues) while others have 250 frames (from apo and bound strucutres of BACE1, with 389 residues). To get the full sized trajectories, see DOI

See the full examples on Github

Improvements (Speed, Throughput and Reliability)

1. Batch processing over the CLI and Python API

2. A major improvement of TrajMapQuick over TrajMap is the speed across varying residue lengths and number of frames. We evaluated a 1000 frame trajectory (at 100 frame interval) over 800 residues (at 100 residue interval) in TrajMapQuick for both subcommands (shift & hotspot).

See full details on Github

3. The choice to select either the CA or backbone for shift calculations.

4. Automatic Detection of hotspots using RMSF plots and generation of associated shift plots.

4. TrajMapQuick allows you to work on any continous chunk of your protein, say residues 300-360 of a 500-residues protein. This reduces time and allows one to focus.

Contributing

Contributions are welcome. Please submit a pull request with your changes.

License

MIT License

Contact

For questions or issues, please contact us @ Reslar Labs © 2026, or Dr. Oluyemi or Shadrach Eze.

Citation

If you use TrajMapQuick, please cite: SHEDOOMTC. (2026). TrajMapQuick: Towards Fast Trajectory Map Analysis and Visualization (v1.0). Zenodo. https://doi.org/10.5281/zenodo.20681061

Software:
DOI

Dataset:
DOI

Metadata

Release files for tmquick 1.0.3

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

Source distribution (sdist)

Source distribution for tmquick 1.0.3
File Size Uploaded Provenance Actions
tmquick-1.0.3.tar.gz 19.9 kB With provenance Details for tmquick-1.0.3.tar.gz

Built distribution (wheel)

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

Total release size: 42.9 kB

Release files / tmquick-1.0.3.tar.gz

Download URL tmquick-1.0.3.tar.gz
Size 19.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3a03978f74a4240e1449257c722d0331550c7606976d473d27c9ef31e32f015b
BLAKE2b-256 checksum
How to use checksums
01ea61bbaa106243195e6b2e053d09df74830d85b5522c5d112180e9f8a98ebe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 10, 2026.

Transparency log

Release files / tmquick-1.0.3-py3-none-any.whl

Download URL tmquick-1.0.3-py3-none-any.whl
Size 22.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d34860d6d9555e9479abff7db6bd9d354534af496645bfbac9ffbc9dec1d9c49
BLAKE2b-256 checksum
How to use checksums
2fb6981bd814ba1cd2bf4b38d96e88d93b9294187dfac3374b6c732c4cdc594c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 10, 2026.

Transparency log

Security for tmquick 1.0.3

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tmquick-1.0.3.tar.gz

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 Nov 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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