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
From Source
# 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
From PyPI
pip install tmquick
conda install -c conda-forge mdtraj
Commands
#TrajMapQuick uses a four 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 --out shift_output
#for tmq hotspot, arguments are passed similiarly, 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
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
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
Metadata
Release files for tmquick 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tmquick-1.0.6.tar.gz | 20.2 kB | With provenance | Details for tmquick-1.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tmquick-1.0.6-py3-none-any.whl | Python 3 | none | any | Details for tmquick-1.0.6-py3-none-any.whl |
Total release size: 43.2 kB
Release files / tmquick-1.0.6.tar.gz
| Download URL | tmquick-1.0.6.tar.gz |
|---|---|
| Size | 20.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
837c788b010cd665237d7993136bd6f7b92adeca3c813cc1694ef14267e714db
|
|
BLAKE2b-256 checksum How to use checksums |
8eb962a646fb6e8313b6bf39aa78171d1ce03df6c0e61fa328f34b0a5a48c80d
|
| 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 logRelease files / tmquick-1.0.6-py3-none-any.whl
| Download URL | tmquick-1.0.6-py3-none-any.whl |
|---|---|
| Size | 23.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ea71ec19d8b6f9a6302dfe36a4957f832982c2e0d46076b84dcc199b16ea63a
|
|
BLAKE2b-256 checksum How to use checksums |
ce87babbb543f8d3de4c45a79e1c5de178e5b389221427ed773688e8e083f8e0
|
| 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 logSecurity for tmquick 1.0.6
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.
Attestation for tmquick-1.0.6.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 logA 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.