tmquick 1.0.0__tar.gz → 1.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. {tmquick-1.0.0 → tmquick-1.0.2}/LICENSE.md +0 -0
  2. {tmquick-1.0.0 → tmquick-1.0.2}/MANIFEST.in +0 -0
  3. tmquick-1.0.0/README.md → tmquick-1.0.2/PKG-INFO +161 -197
  4. tmquick-1.0.2/README.md +137 -0
  5. {tmquick-1.0.0 → tmquick-1.0.2}/pyproject.toml +2 -1
  6. {tmquick-1.0.0 → tmquick-1.0.2}/setup.cfg +0 -0
  7. {tmquick-1.0.0 → tmquick-1.0.2}/tmq/__init__.py +0 -0
  8. {tmquick-1.0.0 → tmquick-1.0.2}/tmq/cli.py +0 -0
  9. {tmquick-1.0.0 → tmquick-1.0.2}/tmq/commands/__init__.py +0 -0
  10. {tmquick-1.0.0 → tmquick-1.0.2}/tmq/commands/average_trajmap_cli.py +0 -0
  11. {tmquick-1.0.0 → tmquick-1.0.2}/tmq/commands/csv2shift_cli.py +0 -0
  12. {tmquick-1.0.0 → tmquick-1.0.2}/tmq/commands/diff2graph_cli.py +0 -0
  13. {tmquick-1.0.0 → tmquick-1.0.2}/tmq/commands/hotspot_cli.py +0 -0
  14. {tmquick-1.0.0 → tmquick-1.0.2}/tmq/commands/pdb2csv_cli.py +0 -0
  15. {tmquick-1.0.0 → tmquick-1.0.2}/tmq/commands/shift2graph_cli.py +0 -0
  16. {tmquick-1.0.0 → tmquick-1.0.2}/tmq/commands/traj2pdb_cli.py +0 -0
  17. {tmquick-1.0.0 → tmquick-1.0.2}/tmq/commands/trajmap_cli.py +0 -0
  18. {tmquick-1.0.0 → tmquick-1.0.2}/tmq/core/__init__.py +0 -0
  19. {tmquick-1.0.0 → tmquick-1.0.2}/tmq/core/average_trajmap.py +0 -0
  20. {tmquick-1.0.0 → tmquick-1.0.2}/tmq/core/csv2shift.py +0 -0
  21. {tmquick-1.0.0 → tmquick-1.0.2}/tmq/core/diff2graph.py +0 -0
  22. {tmquick-1.0.0 → tmquick-1.0.2}/tmq/core/hotspot.py +0 -0
  23. {tmquick-1.0.0 → tmquick-1.0.2}/tmq/core/pdb2csv.py +0 -0
  24. {tmquick-1.0.0 → tmquick-1.0.2}/tmq/core/shift2graph.py +0 -0
  25. {tmquick-1.0.0 → tmquick-1.0.2}/tmq/core/traj2pdb.py +0 -0
  26. {tmquick-1.0.0 → tmquick-1.0.2}/tmq/core/trajmap.py +0 -0
  27. {tmquick-1.0.0 → tmquick-1.0.2}/tmq/utils/__init__.py +0 -0
  28. {tmquick-1.0.0 → tmquick-1.0.2}/tmq/utils/utils.py +0 -0
  29. tmquick-1.0.2/tmquick.egg-info/PKG-INFO +161 -0
  30. {tmquick-1.0.0 → tmquick-1.0.2}/tmquick.egg-info/SOURCES.txt +0 -1
  31. {tmquick-1.0.0 → tmquick-1.0.2}/tmquick.egg-info/dependency_links.txt +0 -0
  32. {tmquick-1.0.0 → tmquick-1.0.2}/tmquick.egg-info/entry_points.txt +0 -0
  33. {tmquick-1.0.0 → tmquick-1.0.2}/tmquick.egg-info/requires.txt +0 -0
  34. {tmquick-1.0.0 → tmquick-1.0.2}/tmquick.egg-info/top_level.txt +0 -0
  35. tmquick-1.0.0/PKG-INFO +0 -23
  36. tmquick-1.0.0/setup.py +0 -30
  37. tmquick-1.0.0/tmquick.egg-info/PKG-INFO +0 -23
File without changes
File without changes
@@ -1,197 +1,161 @@
1
- <p align="center">
2
- <img src="https://github.com/SHEDOOMTC/TrajMapQuick/blob/main/assets/TrajMapQuick.png" alt="TrajMapQuick Logo" />
3
- </p>
4
-
5
- ## **Overview**
6
- **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"**](https://doi.org/10.1093/nargab/lqad114). **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.
7
- 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.
8
-
9
- ## **Features**
10
- - **Trajectory Map Visualization:** Generates a trajectory map of residual fluctuations across the select frames chosen by the user.
11
- - **Residual shift calculation and visualization:** For a select range of residues (region), residual shifts are computed and visualized across select frames
12
- - **Difference and Average map visualization** This computes the difference and average of two trajectories, respectively and display the resultant trajectory maps.
13
- - **Hotspot Detection and Plotting:** This automatically probes and detects regions of high fluctuations and computes the residual shift for each region for downstream processing.
14
- - **Hotspot Annotation:** An RMSF like plot is also generated with the key hotspots highlight for visual confirmation and inspection.
15
-
16
- ## **Project Structure**
17
- <pre>
18
- TrajMapQuick/
19
- ├── README.md # Project overview, installation, usage
20
- ├── requirements.txt # Python dependencies
21
- ├── setup.py # Packaging configuration
22
- ├── environment.yml # Build config
23
- ├── pyproject.toml # Build config
24
- ├── LICENSE # MIT license
25
- ├── Manifest.in
26
- ├── tmq/ # Source codes and CLI wrappers lives here
27
- │ ├── cli.py/ # Main command line launcher
28
- │ ├── __init__.py # Main launcher for the python API
29
- │ ├── core/ # Python package folder
30
- │ │ ├── __init__.py
31
- │ │ ├── traj2pdb.py # Converts trajectory to pdb
32
- │ │ ├── pdb2csv.py # Converts pdb to distance matrix
33
- │ │ ├── trajmap.py # plots the trajectory map
34
- │ │ ├── csv2shift.py # Core shift logic for a given loop
35
- │ │ ├── shift2graph.py # Makes shift plots for a given loop
36
- │ │ ├── hotspot.py # Automatic detection of regions with peak fluctuations
37
- │ │ ├── diff2graph.py # Computes and plot difference map for two trajectories
38
- │ │ └── average_trajmap.py # Computes and plot average map for two trajectories
39
- │ ├── commands/ # Main wrapper for the CLI
40
- │ │ ├── __init__.py
41
- │ │ ├── traj2pdb_cli.py # CLI wrapper
42
- │ │ ├── pdb2csv_cli.py # CLI wrapper
43
- │ │ ├── trajmap_cli.py # CLI wrapper
44
- │ │ ├── csv2shift_cli.py # CLI wrapper
45
- │ │ ├── shift2graph_cli.py # CLI wrapper
46
- │ │ ├── hotspot_cli.py # CLI wrapper
47
- │ │ ├── diff2graph_cli.py # CLI wrapper
48
- │ │ └── average_trajmap_cli.py# CLI wrapper
49
- │ └── utils # Holds functions
50
- │ │ ├── __init__.py
51
- │ │ └── utils.py # utility functions
52
- ├── docs/ # docstrings for the modules
53
- ├── assets/ # Container for images
54
- ├── Tests/ # Containers for test trajectories and topologies
55
- └── Conda/ # Backup YAML files
56
-
57
-
58
- </pre>
59
-
60
- ## **Installation**
61
- ```bash
62
- # Clone the repo
63
- git clone https://github.com/SHEDOOMTC/TrajMapQuick.git
64
- cd TrajMapQuick
65
-
66
- # In conda environment with pip
67
- conda create -n tmq python=3.10
68
- conda activate tmq
69
- conda install -c conda-forge mdtraj
70
- pip install (-e) .
71
-
72
- # In conda environment without pip
73
- conda env create -f environment.yml
74
- conda activate tmq
75
-
76
- Use tmq --help to see the arguments
77
- ```
78
- ## **Commands**
79
- ```bash
80
- #TrajMapQuick uses a two levell subcommand from the global "tmq" command
81
- tmq shift : Extract matrices, compute residue-residue shifts and make plots: For more, use tmq shift --help
82
-
83
- tmq hotspot : Detect hotspots in residue shifts and create plots: For more, use tmq hotspot --help
84
-
85
- tmq diff Computes difference between two matrices and creates the difference map: For more, use tmq diff --help
86
-
87
- tmq average Computes average of n matrices and creates the average map: For more, use tmq average --help
88
-
89
- ```
90
- ## **Usage (CLI)**
91
- ```bash
92
- # For tmq shift, arguments are passed into the flags for trajectory, topology etc.
93
-
94
- tmq shift --traj traj.pdb --top top.parmtop --str 1 --resr 1-300 --resrs 110-125 --cent backbone --plot --out shift_output
95
-
96
- #for tmq hotspot, arguments are passed similiarly, except that the region of shift is not provided
97
-
98
- tmq hotspot --traj traj.pdb --top top.parmtop --str 1 --resr 1-300 --cent backbone --out hotspot_output
99
- ```
100
- ## **Usage (Python API)**
101
- The core modules in the tmq library are clearly demonstrated in the **[Python_API.ipynb](./Notebooks/Python_API.ipynb)** file
102
-
103
- ```python
104
- #Typical modules are loaded and then used as explained in the jupyter notebook above:
105
-
106
- from tmq.core.traj2pdb import traj2pdb
107
- from tmq.core.pdb2csv import pdb2csv
108
- from tmq.core.trajmap import trajmap
109
- from tmq.core.csv2shift import shift
110
- from tmq.core.shift2graph import shift2graph
111
- from tmq.core.hotspot import detect_shifts
112
- from tmq.core.hotspot import create_submatrices
113
- from tmq.core.hotspot import plot_hotspot_regions
114
- from tmq.core.hotspot import slice_shifts
115
- from tmq.core.hotspot import plot_slice_regions
116
- from tmq.core.diff2graph import diff_map
117
- from tmq.core.average_trajmap import avg_trajmap
118
- ```
119
-
120
- ```python
121
- # To run the notebook
122
- cd ./Notebooks/
123
- jupyter notebook Python_API.ipynb
124
- ```
125
-
126
- ## **Requirements**
127
- - Trajectory processing libraries (mdtraj, biopython)
128
-
129
- - Data wrangling tools (numpy, pandas)
130
-
131
- - Trajectories must have been preprocessed (strippin water, ions,) before feeding into TrajMapQuick
132
-
133
-
134
- All library requirements are pre-installed installed via pip or conda and are available for use in CLI or via Python API
135
-
136
- ## **Examples**
137
- Three trajectories and topologies files are included in the **[Test](./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](https://zenodo.org/badge/DOI/10.5281/zenodo.20681326.svg)](https://doi.org/10.5281/zenodo.20681326)
138
-
139
-
140
- The Utility of the shift command (using a 500 frame trajectory) was shown by the figure below:
141
-
142
- ![test_traj_2_shift_graph.png](https://github.com/SHEDOOMTC/TrajMapQuick/blob/main/assets/test_traj_2_shift_graph.png)
143
-
144
-
145
- **And that of the hotspot command by:**
146
-
147
-
148
- ![test_traj_2_hotspot_graph.png](https://github.com/SHEDOOMTC/TrajMapQuick/blob/main/assets/test_traj_2_hotspot_graph.png)
149
-
150
-
151
- To reproduce the figures above, download the full length trajectory (500 frames) from Zenodo [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.20681326.svg)](https://doi.org/10.5281/zenodo.20681326) and run the codes below on the CLI
152
-
153
- ```bash
154
- #The exact codes used to produce the results above
155
- tmq shift -tr traj_9NSR_500.nc -to topol_9NSR.prmtop -st 1 -rr 1-378 -rs 272-285 -ce backbone -ma 5 -o out
156
-
157
- tmq hotspot -tr traj_9NSR_500.nc -to topol_9NSR.prmtop -st 1 -rr 1-378 -ce backbone -o out
158
- ```
159
-
160
-
161
- ## **Improvements (Speed, Throughput and Reliability)**
162
- **1.** Batch processing over the CLI and Python API
163
-
164
- **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). The **performance plots below:**
165
-
166
- ![performance plots](https://github.com/SHEDOOMTC/TrajMapQuick/blob/main/assets/Performance_shift_hotspot.png?raw=true)
167
-
168
- shows clear scaling with number of residues and frames, with completion time between **2-5 mins**. Compared to TrajMapQuick, a single 500 frame calculations across 800 residues took around **10 minutes** in TrajMap, besides the manual editing of input parameters.
169
-
170
- **3.** The choice to select either the CA or backbone for shift calculations.
171
-
172
- **4.** Automatic Detection of hotspots using RMSF plots and generation of associated shift plots.
173
-
174
- **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.
175
-
176
- ## **Contributing**
177
- Contributions are welcome. Please submit a pull request with your changes.
178
-
179
- ## **License**
180
- [**MIT License**](../License.md)
181
-
182
- ## **Contact**
183
-
184
- For questions or issues, please contact us @ [Reslar Labs](reslarscience@gmail.com) **&copy; 2026**, or [Dr. Oluyemi](oluyemiwm@abuad.edu.ng) or [Shadrach Eze](shadrachchinecheremeze@gmail.com).
185
-
186
-
187
- ## **Citation**
188
-
189
- 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
190
-
191
- **Software:**
192
- [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.20681061.svg)](https://doi.org/10.5281/zenodo.20681061)
193
-
194
- **Dataset:**
195
- [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.20681326.svg)](https://doi.org/10.5281/zenodo.20681326)
196
-
197
-
1
+ Metadata-Version: 2.4
2
+ Name: tmquick
3
+ Version: 1.0.2
4
+ Summary: TrajMapQuick: Towards Fast Trajectory Map Analysis and Visualization
5
+ Author: Wande M. Oluyemi (PhD), Adeniyi T. Adewumi (PhD), Shadrach C. Eze, Stephen C. Nnemolisa, @ Research Laboratory for Rational Design of Drugs and Biomaterials (ResLaR Labs), Afe Babalola University, Ado-Ekiti Nigeria
6
+ Project-URL: Homepage, https://github.com/SHEDOOMTC/TrajMapQuick.git
7
+ Project-URL: Documentation, https://github.com/SHEDOOMTC/TrajMapQuick/blob/7997b0076a6c31bd725dba3ccdca4349b43250d4/README.md
8
+ Project-URL: DOI, https://github.com/SHEDOOMTC/TrajMapQuick.git
9
+ Requires-Python: >=3.9
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE.md
12
+ Requires-Dist: numpy
13
+ Requires-Dist: pandas
14
+ Requires-Dist: matplotlib
15
+ Requires-Dist: seaborn
16
+ Requires-Dist: tqdm
17
+ Requires-Dist: biopython
18
+ Requires-Dist: scipy
19
+ Requires-Dist: netcdf4
20
+ Requires-Dist: colorama
21
+ Provides-Extra: md
22
+ Requires-Dist: mdtraj; extra == "md"
23
+ Dynamic: license-file
24
+
25
+ <p align="center">
26
+ <img src="https://raw.githubusercontent.com/SHEDOOMTC/TrajMapQuick/main/assets/TrajMapQuick.png" alt="TrajMapQuick Logo" />
27
+ </p>
28
+
29
+ ## **Overview**
30
+ **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"**](https://doi.org/10.1093/nargab/lqad114). **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.
31
+ 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.
32
+
33
+ ## **Features**
34
+ - **Trajectory Map Visualization:** Generates a trajectory map of residual fluctuations across the select frames chosen by the user.
35
+ - **Residual shift calculation and visualization:** For a select range of residues (region), residual shifts are computed and visualized across select frames
36
+ - **Difference and Average map visualization** This computes the difference and average of two trajectories, respectively and display the resultant trajectory maps.
37
+ - **Hotspot Detection and Plotting:** This automatically probes and detects regions of high fluctuations and computes the residual shift for each region for downstream processing.
38
+ - **Hotspot Annotation:** An RMSF like plot is also generated with the key hotspots highlight for visual confirmation and inspection.
39
+
40
+ ## **Project Structure**
41
+
42
+ See **[Github](https://github.com/SHEDOOMTC/TrajMapQuick/blob/main/README.md)**
43
+
44
+
45
+ ## **Installation**
46
+ ```bash
47
+ # Clone the repo
48
+ git clone https://github.com/SHEDOOMTC/TrajMapQuick.git
49
+ cd TrajMapQuick
50
+
51
+ # In conda environment with pip
52
+ conda create -n tmq python=3.10
53
+ conda activate tmq
54
+ conda install -c conda-forge mdtraj
55
+ pip install (-e) .
56
+
57
+ # In conda environment without pip
58
+ conda env create -f environment.yml
59
+ conda activate tmq
60
+
61
+ Use tmq --help to see the arguments
62
+ ```
63
+ ## **Commands**
64
+ ```bash
65
+ #TrajMapQuick uses a two levell subcommand from the global "tmq" command
66
+ tmq shift : Extract matrices, compute residue-residue shifts and make plots: For more, use tmq shift --help
67
+
68
+ tmq hotspot : Detect hotspots in residue shifts and create plots: For more, use tmq hotspot --help
69
+
70
+ tmq diff Computes difference between two matrices and creates the difference map: For more, use tmq diff --help
71
+
72
+ tmq average Computes average of n matrices and creates the average map: For more, use tmq average --help
73
+
74
+ ```
75
+ ## **Usage (CLI)**
76
+ ```bash
77
+ # For tmq shift, arguments are passed into the flags for trajectory, topology etc.
78
+
79
+ tmq shift --traj traj.pdb --top top.parmtop --str 1 --resr 1-300 --resrs 110-125 --cent backbone --plot --out shift_output
80
+
81
+ #for tmq hotspot, arguments are passed similiarly, except that the region of shift is not provided
82
+
83
+ tmq hotspot --traj traj.pdb --top top.parmtop --str 1 --resr 1-300 --cent backbone --out hotspot_output
84
+ ```
85
+ ## **Usage (Python API)**
86
+ The core modules in the tmq library are clearly demonstrated in the **[Python_API.ipynb](./Notebooks/Python_API.ipynb)** file
87
+
88
+ ```python
89
+ #Typical modules are loaded and then used as explained in the jupyter notebook above:
90
+
91
+ from tmq.core.traj2pdb import traj2pdb
92
+ from tmq.core.pdb2csv import pdb2csv
93
+ from tmq.core.trajmap import trajmap
94
+ from tmq.core.csv2shift import shift
95
+ from tmq.core.shift2graph import shift2graph
96
+ from tmq.core.hotspot import detect_shifts
97
+ from tmq.core.hotspot import create_submatrices
98
+ from tmq.core.hotspot import plot_hotspot_regions
99
+ from tmq.core.hotspot import slice_shifts
100
+ from tmq.core.hotspot import plot_slice_regions
101
+ from tmq.core.diff2graph import diff_map
102
+ from tmq.core.average_trajmap import avg_trajmap
103
+ ```
104
+
105
+ ```python
106
+ # To run the notebook
107
+ cd ./Notebooks/
108
+ jupyter notebook Python_API.ipynb
109
+ ```
110
+
111
+ ## **Requirements**
112
+ - Trajectory processing libraries (mdtraj, biopython)
113
+
114
+ - Data wrangling tools (numpy, pandas)
115
+
116
+ - Trajectories must have been preprocessed (strippin water, ions,) before feeding into TrajMapQuick
117
+
118
+
119
+ All library requirements are pre-installed installed via pip or conda and are available for use in CLI or via Python API
120
+
121
+ ## **Examples**
122
+ Three trajectories and topologies files are included in the **[Test](./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](https://zenodo.org/badge/DOI/10.5281/zenodo.20681326.svg)](https://doi.org/10.5281/zenodo.20681326)
123
+
124
+ See the full examples on **[Github](https://github.com/SHEDOOMTC/TrajMapQuick/blob/main/README.md)**
125
+
126
+
127
+ ## **Improvements (Speed, Throughput and Reliability)**
128
+ **1.** Batch processing over the CLI and Python API
129
+
130
+ **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).
131
+
132
+ See full details on **[Github](https://github.com/SHEDOOMTC/TrajMapQuick/blob/main/README.md)**
133
+
134
+ **3.** The choice to select either the CA or backbone for shift calculations.
135
+
136
+ **4.** Automatic Detection of hotspots using RMSF plots and generation of associated shift plots.
137
+
138
+ **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.
139
+
140
+ ## **Contributing**
141
+ Contributions are welcome. Please submit a pull request with your changes.
142
+
143
+ ## **License**
144
+ [**MIT License**](../License.md)
145
+
146
+ ## **Contact**
147
+
148
+ For questions or issues, please contact us @ [Reslar Labs](reslarscience@gmail.com) **&copy; 2026**, or [Dr. Oluyemi](oluyemiwm@abuad.edu.ng) or [Shadrach Eze](shadrachchinecheremeze@gmail.com).
149
+
150
+
151
+ ## **Citation**
152
+
153
+ 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
154
+
155
+ **Software:**
156
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.20681061.svg)](https://doi.org/10.5281/zenodo.20681061)
157
+
158
+ **Dataset:**
159
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.20681326.svg)](https://doi.org/10.5281/zenodo.20681326)
160
+
161
+
@@ -0,0 +1,137 @@
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/SHEDOOMTC/TrajMapQuick/main/assets/TrajMapQuick.png" alt="TrajMapQuick Logo" />
3
+ </p>
4
+
5
+ ## **Overview**
6
+ **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"**](https://doi.org/10.1093/nargab/lqad114). **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.
7
+ 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.
8
+
9
+ ## **Features**
10
+ - **Trajectory Map Visualization:** Generates a trajectory map of residual fluctuations across the select frames chosen by the user.
11
+ - **Residual shift calculation and visualization:** For a select range of residues (region), residual shifts are computed and visualized across select frames
12
+ - **Difference and Average map visualization** This computes the difference and average of two trajectories, respectively and display the resultant trajectory maps.
13
+ - **Hotspot Detection and Plotting:** This automatically probes and detects regions of high fluctuations and computes the residual shift for each region for downstream processing.
14
+ - **Hotspot Annotation:** An RMSF like plot is also generated with the key hotspots highlight for visual confirmation and inspection.
15
+
16
+ ## **Project Structure**
17
+
18
+ See **[Github](https://github.com/SHEDOOMTC/TrajMapQuick/blob/main/README.md)**
19
+
20
+
21
+ ## **Installation**
22
+ ```bash
23
+ # Clone the repo
24
+ git clone https://github.com/SHEDOOMTC/TrajMapQuick.git
25
+ cd TrajMapQuick
26
+
27
+ # In conda environment with pip
28
+ conda create -n tmq python=3.10
29
+ conda activate tmq
30
+ conda install -c conda-forge mdtraj
31
+ pip install (-e) .
32
+
33
+ # In conda environment without pip
34
+ conda env create -f environment.yml
35
+ conda activate tmq
36
+
37
+ Use tmq --help to see the arguments
38
+ ```
39
+ ## **Commands**
40
+ ```bash
41
+ #TrajMapQuick uses a two levell subcommand from the global "tmq" command
42
+ tmq shift : Extract matrices, compute residue-residue shifts and make plots: For more, use tmq shift --help
43
+
44
+ tmq hotspot : Detect hotspots in residue shifts and create plots: For more, use tmq hotspot --help
45
+
46
+ tmq diff Computes difference between two matrices and creates the difference map: For more, use tmq diff --help
47
+
48
+ tmq average Computes average of n matrices and creates the average map: For more, use tmq average --help
49
+
50
+ ```
51
+ ## **Usage (CLI)**
52
+ ```bash
53
+ # For tmq shift, arguments are passed into the flags for trajectory, topology etc.
54
+
55
+ tmq shift --traj traj.pdb --top top.parmtop --str 1 --resr 1-300 --resrs 110-125 --cent backbone --plot --out shift_output
56
+
57
+ #for tmq hotspot, arguments are passed similiarly, except that the region of shift is not provided
58
+
59
+ tmq hotspot --traj traj.pdb --top top.parmtop --str 1 --resr 1-300 --cent backbone --out hotspot_output
60
+ ```
61
+ ## **Usage (Python API)**
62
+ The core modules in the tmq library are clearly demonstrated in the **[Python_API.ipynb](./Notebooks/Python_API.ipynb)** file
63
+
64
+ ```python
65
+ #Typical modules are loaded and then used as explained in the jupyter notebook above:
66
+
67
+ from tmq.core.traj2pdb import traj2pdb
68
+ from tmq.core.pdb2csv import pdb2csv
69
+ from tmq.core.trajmap import trajmap
70
+ from tmq.core.csv2shift import shift
71
+ from tmq.core.shift2graph import shift2graph
72
+ from tmq.core.hotspot import detect_shifts
73
+ from tmq.core.hotspot import create_submatrices
74
+ from tmq.core.hotspot import plot_hotspot_regions
75
+ from tmq.core.hotspot import slice_shifts
76
+ from tmq.core.hotspot import plot_slice_regions
77
+ from tmq.core.diff2graph import diff_map
78
+ from tmq.core.average_trajmap import avg_trajmap
79
+ ```
80
+
81
+ ```python
82
+ # To run the notebook
83
+ cd ./Notebooks/
84
+ jupyter notebook Python_API.ipynb
85
+ ```
86
+
87
+ ## **Requirements**
88
+ - Trajectory processing libraries (mdtraj, biopython)
89
+
90
+ - Data wrangling tools (numpy, pandas)
91
+
92
+ - Trajectories must have been preprocessed (strippin water, ions,) before feeding into TrajMapQuick
93
+
94
+
95
+ All library requirements are pre-installed installed via pip or conda and are available for use in CLI or via Python API
96
+
97
+ ## **Examples**
98
+ Three trajectories and topologies files are included in the **[Test](./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](https://zenodo.org/badge/DOI/10.5281/zenodo.20681326.svg)](https://doi.org/10.5281/zenodo.20681326)
99
+
100
+ See the full examples on **[Github](https://github.com/SHEDOOMTC/TrajMapQuick/blob/main/README.md)**
101
+
102
+
103
+ ## **Improvements (Speed, Throughput and Reliability)**
104
+ **1.** Batch processing over the CLI and Python API
105
+
106
+ **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).
107
+
108
+ See full details on **[Github](https://github.com/SHEDOOMTC/TrajMapQuick/blob/main/README.md)**
109
+
110
+ **3.** The choice to select either the CA or backbone for shift calculations.
111
+
112
+ **4.** Automatic Detection of hotspots using RMSF plots and generation of associated shift plots.
113
+
114
+ **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.
115
+
116
+ ## **Contributing**
117
+ Contributions are welcome. Please submit a pull request with your changes.
118
+
119
+ ## **License**
120
+ [**MIT License**](../License.md)
121
+
122
+ ## **Contact**
123
+
124
+ For questions or issues, please contact us @ [Reslar Labs](reslarscience@gmail.com) **&copy; 2026**, or [Dr. Oluyemi](oluyemiwm@abuad.edu.ng) or [Shadrach Eze](shadrachchinecheremeze@gmail.com).
125
+
126
+
127
+ ## **Citation**
128
+
129
+ 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
130
+
131
+ **Software:**
132
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.20681061.svg)](https://doi.org/10.5281/zenodo.20681061)
133
+
134
+ **Dataset:**
135
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.20681326.svg)](https://doi.org/10.5281/zenodo.20681326)
136
+
137
+
@@ -4,7 +4,8 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "tmquick"
7
- version = "1.0.0"
7
+ version = "1.0.2"
8
+ readme = "README.md"
8
9
  description = "TrajMapQuick: Towards Fast Trajectory Map Analysis and Visualization"
9
10
  authors = [
10
11
  { name = "Wande M. Oluyemi (PhD)" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,161 @@
1
+ Metadata-Version: 2.4
2
+ Name: tmquick
3
+ Version: 1.0.2
4
+ Summary: TrajMapQuick: Towards Fast Trajectory Map Analysis and Visualization
5
+ Author: Wande M. Oluyemi (PhD), Adeniyi T. Adewumi (PhD), Shadrach C. Eze, Stephen C. Nnemolisa, @ Research Laboratory for Rational Design of Drugs and Biomaterials (ResLaR Labs), Afe Babalola University, Ado-Ekiti Nigeria
6
+ Project-URL: Homepage, https://github.com/SHEDOOMTC/TrajMapQuick.git
7
+ Project-URL: Documentation, https://github.com/SHEDOOMTC/TrajMapQuick/blob/7997b0076a6c31bd725dba3ccdca4349b43250d4/README.md
8
+ Project-URL: DOI, https://github.com/SHEDOOMTC/TrajMapQuick.git
9
+ Requires-Python: >=3.9
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE.md
12
+ Requires-Dist: numpy
13
+ Requires-Dist: pandas
14
+ Requires-Dist: matplotlib
15
+ Requires-Dist: seaborn
16
+ Requires-Dist: tqdm
17
+ Requires-Dist: biopython
18
+ Requires-Dist: scipy
19
+ Requires-Dist: netcdf4
20
+ Requires-Dist: colorama
21
+ Provides-Extra: md
22
+ Requires-Dist: mdtraj; extra == "md"
23
+ Dynamic: license-file
24
+
25
+ <p align="center">
26
+ <img src="https://raw.githubusercontent.com/SHEDOOMTC/TrajMapQuick/main/assets/TrajMapQuick.png" alt="TrajMapQuick Logo" />
27
+ </p>
28
+
29
+ ## **Overview**
30
+ **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"**](https://doi.org/10.1093/nargab/lqad114). **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.
31
+ 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.
32
+
33
+ ## **Features**
34
+ - **Trajectory Map Visualization:** Generates a trajectory map of residual fluctuations across the select frames chosen by the user.
35
+ - **Residual shift calculation and visualization:** For a select range of residues (region), residual shifts are computed and visualized across select frames
36
+ - **Difference and Average map visualization** This computes the difference and average of two trajectories, respectively and display the resultant trajectory maps.
37
+ - **Hotspot Detection and Plotting:** This automatically probes and detects regions of high fluctuations and computes the residual shift for each region for downstream processing.
38
+ - **Hotspot Annotation:** An RMSF like plot is also generated with the key hotspots highlight for visual confirmation and inspection.
39
+
40
+ ## **Project Structure**
41
+
42
+ See **[Github](https://github.com/SHEDOOMTC/TrajMapQuick/blob/main/README.md)**
43
+
44
+
45
+ ## **Installation**
46
+ ```bash
47
+ # Clone the repo
48
+ git clone https://github.com/SHEDOOMTC/TrajMapQuick.git
49
+ cd TrajMapQuick
50
+
51
+ # In conda environment with pip
52
+ conda create -n tmq python=3.10
53
+ conda activate tmq
54
+ conda install -c conda-forge mdtraj
55
+ pip install (-e) .
56
+
57
+ # In conda environment without pip
58
+ conda env create -f environment.yml
59
+ conda activate tmq
60
+
61
+ Use tmq --help to see the arguments
62
+ ```
63
+ ## **Commands**
64
+ ```bash
65
+ #TrajMapQuick uses a two levell subcommand from the global "tmq" command
66
+ tmq shift : Extract matrices, compute residue-residue shifts and make plots: For more, use tmq shift --help
67
+
68
+ tmq hotspot : Detect hotspots in residue shifts and create plots: For more, use tmq hotspot --help
69
+
70
+ tmq diff Computes difference between two matrices and creates the difference map: For more, use tmq diff --help
71
+
72
+ tmq average Computes average of n matrices and creates the average map: For more, use tmq average --help
73
+
74
+ ```
75
+ ## **Usage (CLI)**
76
+ ```bash
77
+ # For tmq shift, arguments are passed into the flags for trajectory, topology etc.
78
+
79
+ tmq shift --traj traj.pdb --top top.parmtop --str 1 --resr 1-300 --resrs 110-125 --cent backbone --plot --out shift_output
80
+
81
+ #for tmq hotspot, arguments are passed similiarly, except that the region of shift is not provided
82
+
83
+ tmq hotspot --traj traj.pdb --top top.parmtop --str 1 --resr 1-300 --cent backbone --out hotspot_output
84
+ ```
85
+ ## **Usage (Python API)**
86
+ The core modules in the tmq library are clearly demonstrated in the **[Python_API.ipynb](./Notebooks/Python_API.ipynb)** file
87
+
88
+ ```python
89
+ #Typical modules are loaded and then used as explained in the jupyter notebook above:
90
+
91
+ from tmq.core.traj2pdb import traj2pdb
92
+ from tmq.core.pdb2csv import pdb2csv
93
+ from tmq.core.trajmap import trajmap
94
+ from tmq.core.csv2shift import shift
95
+ from tmq.core.shift2graph import shift2graph
96
+ from tmq.core.hotspot import detect_shifts
97
+ from tmq.core.hotspot import create_submatrices
98
+ from tmq.core.hotspot import plot_hotspot_regions
99
+ from tmq.core.hotspot import slice_shifts
100
+ from tmq.core.hotspot import plot_slice_regions
101
+ from tmq.core.diff2graph import diff_map
102
+ from tmq.core.average_trajmap import avg_trajmap
103
+ ```
104
+
105
+ ```python
106
+ # To run the notebook
107
+ cd ./Notebooks/
108
+ jupyter notebook Python_API.ipynb
109
+ ```
110
+
111
+ ## **Requirements**
112
+ - Trajectory processing libraries (mdtraj, biopython)
113
+
114
+ - Data wrangling tools (numpy, pandas)
115
+
116
+ - Trajectories must have been preprocessed (strippin water, ions,) before feeding into TrajMapQuick
117
+
118
+
119
+ All library requirements are pre-installed installed via pip or conda and are available for use in CLI or via Python API
120
+
121
+ ## **Examples**
122
+ Three trajectories and topologies files are included in the **[Test](./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](https://zenodo.org/badge/DOI/10.5281/zenodo.20681326.svg)](https://doi.org/10.5281/zenodo.20681326)
123
+
124
+ See the full examples on **[Github](https://github.com/SHEDOOMTC/TrajMapQuick/blob/main/README.md)**
125
+
126
+
127
+ ## **Improvements (Speed, Throughput and Reliability)**
128
+ **1.** Batch processing over the CLI and Python API
129
+
130
+ **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).
131
+
132
+ See full details on **[Github](https://github.com/SHEDOOMTC/TrajMapQuick/blob/main/README.md)**
133
+
134
+ **3.** The choice to select either the CA or backbone for shift calculations.
135
+
136
+ **4.** Automatic Detection of hotspots using RMSF plots and generation of associated shift plots.
137
+
138
+ **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.
139
+
140
+ ## **Contributing**
141
+ Contributions are welcome. Please submit a pull request with your changes.
142
+
143
+ ## **License**
144
+ [**MIT License**](../License.md)
145
+
146
+ ## **Contact**
147
+
148
+ For questions or issues, please contact us @ [Reslar Labs](reslarscience@gmail.com) **&copy; 2026**, or [Dr. Oluyemi](oluyemiwm@abuad.edu.ng) or [Shadrach Eze](shadrachchinecheremeze@gmail.com).
149
+
150
+
151
+ ## **Citation**
152
+
153
+ 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
154
+
155
+ **Software:**
156
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.20681061.svg)](https://doi.org/10.5281/zenodo.20681061)
157
+
158
+ **Dataset:**
159
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.20681326.svg)](https://doi.org/10.5281/zenodo.20681326)
160
+
161
+
@@ -2,7 +2,6 @@ LICENSE.md
2
2
  MANIFEST.in
3
3
  README.md
4
4
  pyproject.toml
5
- setup.py
6
5
  tmq/__init__.py
7
6
  tmq/cli.py
8
7
  tmq/commands/__init__.py
tmquick-1.0.0/PKG-INFO DELETED
@@ -1,23 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: tmquick
3
- Version: 1.0.0
4
- Summary: TrajMapQuick: Towards Fast Trajectory Map Analysis and Visualization
5
- Author: Wande M. Oluyemi (PhD), Adeniyi T. Adewumi (PhD), Shadrach C. Eze, Stephen C. Nnemolisa, @ Research Laboratory for Rational Design of Drugs and Biomaterials (ResLaR Labs), Afe Babalola University, Ado-Ekiti Nigeria
6
- Project-URL: Homepage, https://github.com/SHEDOOMTC/TrajMapQuick.git
7
- Project-URL: Documentation, https://github.com/SHEDOOMTC/TrajMapQuick/blob/7997b0076a6c31bd725dba3ccdca4349b43250d4/README.md
8
- Project-URL: DOI, https://github.com/SHEDOOMTC/TrajMapQuick.git
9
- Requires-Python: >=3.9
10
- License-File: LICENSE.md
11
- Requires-Dist: numpy
12
- Requires-Dist: pandas
13
- Requires-Dist: matplotlib
14
- Requires-Dist: seaborn
15
- Requires-Dist: tqdm
16
- Requires-Dist: biopython
17
- Requires-Dist: scipy
18
- Requires-Dist: netcdf4
19
- Requires-Dist: colorama
20
- Provides-Extra: md
21
- Requires-Dist: mdtraj; extra == "md"
22
- Dynamic: license-file
23
- Dynamic: requires-python
tmquick-1.0.0/setup.py DELETED
@@ -1,30 +0,0 @@
1
- from setuptools import setup, find_packages
2
-
3
- setup(
4
- name="tmq",
5
- version="1.0",
6
- description = "Trajectory map analysis toolkit",
7
- authors = "Wande M. Oluyemi (PhD), Adeniyi Adewumi (PhD), Shadrach Eze @ ResLaR Labs, Afe Babalola University, Nigeria",
8
- readme = "README.md",
9
- python_requires = ">=3.9",
10
- packages=find_packages(include=["tmq", "tmq.*"]),
11
- include_package_data=True,
12
- extras_require={"md": ["mdtraj"],},
13
- install_requires=[
14
- "numpy",
15
- "pandas",
16
- "matplotlib",
17
- "seaborn",
18
- "tqdm",
19
- "biopython",
20
- "scipy",
21
- "netcdf4",
22
- "colorama"
23
-
24
- ],
25
- entry_points={
26
- "console_scripts": [
27
- "tmq=tmq.cli:main",
28
- ]
29
- },
30
- )
@@ -1,23 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: tmquick
3
- Version: 1.0.0
4
- Summary: TrajMapQuick: Towards Fast Trajectory Map Analysis and Visualization
5
- Author: Wande M. Oluyemi (PhD), Adeniyi T. Adewumi (PhD), Shadrach C. Eze, Stephen C. Nnemolisa, @ Research Laboratory for Rational Design of Drugs and Biomaterials (ResLaR Labs), Afe Babalola University, Ado-Ekiti Nigeria
6
- Project-URL: Homepage, https://github.com/SHEDOOMTC/TrajMapQuick.git
7
- Project-URL: Documentation, https://github.com/SHEDOOMTC/TrajMapQuick/blob/7997b0076a6c31bd725dba3ccdca4349b43250d4/README.md
8
- Project-URL: DOI, https://github.com/SHEDOOMTC/TrajMapQuick.git
9
- Requires-Python: >=3.9
10
- License-File: LICENSE.md
11
- Requires-Dist: numpy
12
- Requires-Dist: pandas
13
- Requires-Dist: matplotlib
14
- Requires-Dist: seaborn
15
- Requires-Dist: tqdm
16
- Requires-Dist: biopython
17
- Requires-Dist: scipy
18
- Requires-Dist: netcdf4
19
- Requires-Dist: colorama
20
- Provides-Extra: md
21
- Requires-Dist: mdtraj; extra == "md"
22
- Dynamic: license-file
23
- Dynamic: requires-python