tmquick 1.0.2__tar.gz → 1.0.4__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.
- {tmquick-1.0.2/tmquick.egg-info → tmquick-1.0.4}/PKG-INFO +29 -14
- tmquick-1.0.4/README.md +215 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/pyproject.toml +2 -2
- tmquick-1.0.2/README.md → tmquick-1.0.4/readme_pypi.md +27 -13
- tmquick-1.0.4/setup.py +30 -0
- {tmquick-1.0.2 → tmquick-1.0.4/tmquick.egg-info}/PKG-INFO +29 -14
- {tmquick-1.0.2 → tmquick-1.0.4}/tmquick.egg-info/SOURCES.txt +2 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/LICENSE.md +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/MANIFEST.in +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/setup.cfg +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmq/__init__.py +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmq/cli.py +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmq/commands/__init__.py +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmq/commands/average_trajmap_cli.py +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmq/commands/csv2shift_cli.py +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmq/commands/diff2graph_cli.py +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmq/commands/hotspot_cli.py +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmq/commands/pdb2csv_cli.py +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmq/commands/shift2graph_cli.py +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmq/commands/traj2pdb_cli.py +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmq/commands/trajmap_cli.py +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmq/core/__init__.py +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmq/core/average_trajmap.py +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmq/core/csv2shift.py +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmq/core/diff2graph.py +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmq/core/hotspot.py +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmq/core/pdb2csv.py +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmq/core/shift2graph.py +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmq/core/traj2pdb.py +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmq/core/trajmap.py +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmq/utils/__init__.py +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmq/utils/utils.py +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmquick.egg-info/dependency_links.txt +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmquick.egg-info/entry_points.txt +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmquick.egg-info/requires.txt +0 -0
- {tmquick-1.0.2 → tmquick-1.0.4}/tmquick.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tmquick
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.4
|
|
4
4
|
Summary: TrajMapQuick: Towards Fast Trajectory Map Analysis and Visualization
|
|
5
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
6
|
Project-URL: Homepage, https://github.com/SHEDOOMTC/TrajMapQuick.git
|
|
@@ -21,6 +21,7 @@ Requires-Dist: colorama
|
|
|
21
21
|
Provides-Extra: md
|
|
22
22
|
Requires-Dist: mdtraj; extra == "md"
|
|
23
23
|
Dynamic: license-file
|
|
24
|
+
Dynamic: requires-python
|
|
24
25
|
|
|
25
26
|
<p align="center">
|
|
26
27
|
<img src="https://raw.githubusercontent.com/SHEDOOMTC/TrajMapQuick/main/assets/TrajMapQuick.png" alt="TrajMapQuick Logo" />
|
|
@@ -41,12 +42,12 @@ We have also extended the code to allow for automatic detection of regions with
|
|
|
41
42
|
|
|
42
43
|
See **[Github](https://github.com/SHEDOOMTC/TrajMapQuick/blob/main/README.md)**
|
|
43
44
|
|
|
44
|
-
|
|
45
45
|
## **Installation**
|
|
46
|
+
|
|
47
|
+
### **From Source**
|
|
46
48
|
```bash
|
|
47
49
|
# Clone the repo
|
|
48
|
-
git clone https://github.com/SHEDOOMTC/TrajMapQuick.git
|
|
49
|
-
cd TrajMapQuick
|
|
50
|
+
git clone https://github.com/SHEDOOMTC/TrajMapQuick.git && cd TrajMapQuick
|
|
50
51
|
|
|
51
52
|
# In conda environment with pip
|
|
52
53
|
conda create -n tmq python=3.10
|
|
@@ -60,31 +61,45 @@ conda activate tmq
|
|
|
60
61
|
|
|
61
62
|
Use tmq --help to see the arguments
|
|
62
63
|
```
|
|
64
|
+
|
|
65
|
+
### **From PyPI**
|
|
66
|
+
```bash
|
|
67
|
+
pip install tmquick
|
|
68
|
+
conda install -c conda-forge mdtraj
|
|
69
|
+
```
|
|
70
|
+
|
|
63
71
|
## **Commands**
|
|
64
72
|
```bash
|
|
65
|
-
#TrajMapQuick uses a
|
|
66
|
-
tmq shift : Extract matrices, compute residue-residue shifts and make plots:
|
|
73
|
+
#TrajMapQuick uses a four levell subcommand from the global "tmq" command
|
|
74
|
+
tmq shift : Extract matrices, compute residue-residue shifts and make plots:
|
|
75
|
+
For more, use tmq shift --help
|
|
67
76
|
|
|
68
|
-
tmq hotspot : Detect hotspots in residue shifts and create plots:
|
|
77
|
+
tmq hotspot : Detect hotspots in residue shifts and create plots:
|
|
78
|
+
For more, use tmq hotspot --help
|
|
69
79
|
|
|
70
|
-
tmq diff
|
|
80
|
+
tmq diff: Computes difference between two matrices and creates
|
|
81
|
+
the difference map: For more, use tmq diff --help
|
|
71
82
|
|
|
72
|
-
tmq average Computes average of n matrices and creates the average map:
|
|
83
|
+
tmq average Computes average of n matrices and creates the average map:
|
|
84
|
+
For more, use tmq average --help
|
|
73
85
|
|
|
74
86
|
```
|
|
75
87
|
## **Usage (CLI)**
|
|
76
88
|
```bash
|
|
77
89
|
# For tmq shift, arguments are passed into the flags for trajectory, topology etc.
|
|
78
90
|
|
|
79
|
-
tmq shift --traj traj.pdb --top top.parmtop --str 1 --resr 1-300
|
|
91
|
+
tmq shift --traj traj.pdb --top top.parmtop --str 1 --resr 1-300 \
|
|
92
|
+
--resrs 110-125 --cent backbone --out shift_output
|
|
80
93
|
|
|
81
|
-
#for tmq hotspot, arguments are passed similiarly,
|
|
94
|
+
#for tmq hotspot, arguments are passed similiarly, the region of shift is not provided
|
|
82
95
|
|
|
83
|
-
tmq hotspot --traj traj.pdb --top top.parmtop --str 1 --resr 1-300
|
|
96
|
+
tmq hotspot --traj traj.pdb --top top.parmtop --str 1 --resr 1-300 \
|
|
97
|
+
--cent backbone --out hotspot_output
|
|
84
98
|
```
|
|
85
99
|
## **Usage (Python API)**
|
|
86
|
-
The core modules in the tmq library are clearly demonstrated in the
|
|
87
|
-
|
|
100
|
+
The core modules in the tmq library are clearly demonstrated in the
|
|
101
|
+
**[Python_API.ipynb](./Notebooks/Python_API.ipynb)** file
|
|
102
|
+
|
|
88
103
|
```python
|
|
89
104
|
#Typical modules are loaded and then used as explained in the jupyter notebook above:
|
|
90
105
|
|
tmquick-1.0.4/README.md
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
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
|
+
## **Installation**
|
|
17
|
+
|
|
18
|
+
### **From Source**
|
|
19
|
+
```bash
|
|
20
|
+
# Clone the repo
|
|
21
|
+
git clone https://github.com/SHEDOOMTC/TrajMapQuick.git && cd TrajMapQuick
|
|
22
|
+
|
|
23
|
+
# In conda environment with pip
|
|
24
|
+
conda create -n tmq python=3.10
|
|
25
|
+
conda activate tmq
|
|
26
|
+
conda install -c conda-forge mdtraj
|
|
27
|
+
pip install (-e) .
|
|
28
|
+
|
|
29
|
+
# In conda environment without pip
|
|
30
|
+
conda env create -f environment.yml
|
|
31
|
+
conda activate tmq
|
|
32
|
+
|
|
33
|
+
Use tmq --help to see the arguments
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### **From PyPI**
|
|
37
|
+
```bash
|
|
38
|
+
pip install tmquick
|
|
39
|
+
conda install -c conda-forge mdtraj
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## **Commands**
|
|
43
|
+
```bash
|
|
44
|
+
#TrajMapQuick uses a four levell subcommand from the global "tmq" command
|
|
45
|
+
tmq shift : Extract matrices, compute residue-residue shifts and make plots:
|
|
46
|
+
For more, use tmq shift --help
|
|
47
|
+
|
|
48
|
+
tmq hotspot : Detect hotspots in residue shifts and create plots:
|
|
49
|
+
For more, use tmq hotspot --help
|
|
50
|
+
|
|
51
|
+
tmq diff: Computes difference between two matrices and creates
|
|
52
|
+
the difference map: For more, use tmq diff --help
|
|
53
|
+
|
|
54
|
+
tmq average Computes average of n matrices and creates the average map:
|
|
55
|
+
For more, use tmq average --help
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
## **Usage (CLI)**
|
|
59
|
+
```bash
|
|
60
|
+
# For tmq shift, arguments are passed into the flags for trajectory, topology etc.
|
|
61
|
+
|
|
62
|
+
tmq shift --traj traj.pdb --top top.parmtop --str 1 --resr 1-300 \
|
|
63
|
+
--resrs 110-125 --cent backbone --out shift_output
|
|
64
|
+
|
|
65
|
+
#for tmq hotspot, arguments are passed similiarly, the region of shift is not provided
|
|
66
|
+
|
|
67
|
+
tmq hotspot --traj traj.pdb --top top.parmtop --str 1 --resr 1-300 \
|
|
68
|
+
--cent backbone --out hotspot_output
|
|
69
|
+
```
|
|
70
|
+
## **Usage (Python API)**
|
|
71
|
+
The core modules in the tmq library are clearly demonstrated in the
|
|
72
|
+
**[Python_API.ipynb](./Notebooks/Python_API.ipynb)** file
|
|
73
|
+
|
|
74
|
+
```python
|
|
75
|
+
#Typical modules are loaded and then used as explained in the jupyter notebook above:
|
|
76
|
+
|
|
77
|
+
from tmq.core.traj2pdb import traj2pdb
|
|
78
|
+
from tmq.core.pdb2csv import pdb2csv
|
|
79
|
+
from tmq.core.trajmap import trajmap
|
|
80
|
+
from tmq.core.csv2shift import shift
|
|
81
|
+
from tmq.core.shift2graph import shift2graph
|
|
82
|
+
from tmq.core.hotspot import detect_shifts
|
|
83
|
+
from tmq.core.hotspot import create_submatrices
|
|
84
|
+
from tmq.core.hotspot import plot_hotspot_regions
|
|
85
|
+
from tmq.core.hotspot import slice_shifts
|
|
86
|
+
from tmq.core.hotspot import plot_slice_regions
|
|
87
|
+
from tmq.core.diff2graph import diff_map
|
|
88
|
+
from tmq.core.average_trajmap import avg_trajmap
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
```python
|
|
92
|
+
# To run the notebook
|
|
93
|
+
cd ./Notebooks/
|
|
94
|
+
jupyter notebook Python_API.ipynb
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## **Project Structure**
|
|
98
|
+
<pre>
|
|
99
|
+
TrajMapQuick/
|
|
100
|
+
├── README.md # Project overview, installation, usage
|
|
101
|
+
├── requirements.txt # Python dependencies
|
|
102
|
+
├── setup.py # Packaging configuration
|
|
103
|
+
├── environment.yml # Build config
|
|
104
|
+
├── pyproject.toml # Build config
|
|
105
|
+
├── LICENSE # MIT license
|
|
106
|
+
├── Manifest.in
|
|
107
|
+
├── tmq/ # Source codes and CLI wrappers lives here
|
|
108
|
+
│ ├── cli.py/ # Main command line launcher
|
|
109
|
+
│ ├── __init__.py # Main launcher for the python API
|
|
110
|
+
│ ├── core/ # Python package folder
|
|
111
|
+
│ │ ├── __init__.py
|
|
112
|
+
│ │ ├── traj2pdb.py # Converts trajectory to pdb
|
|
113
|
+
│ │ ├── pdb2csv.py # Converts pdb to distance matrix
|
|
114
|
+
│ │ ├── trajmap.py # plots the trajectory map
|
|
115
|
+
│ │ ├── csv2shift.py # Core shift logic for a given loop
|
|
116
|
+
│ │ ├── shift2graph.py # Makes shift plots for a given loop
|
|
117
|
+
│ │ ├── hotspot.py # Automatic detection of regions with peak fluctuations
|
|
118
|
+
│ │ ├── diff2graph.py # Computes and plot difference map for two trajectories
|
|
119
|
+
│ │ └── average_trajmap.py # Computes and plot average map for two trajectories
|
|
120
|
+
│ ├── commands/ # Main wrapper for the CLI
|
|
121
|
+
│ │ ├── __init__.py
|
|
122
|
+
│ │ ├── traj2pdb_cli.py # CLI wrapper
|
|
123
|
+
│ │ ├── pdb2csv_cli.py # CLI wrapper
|
|
124
|
+
│ │ ├── trajmap_cli.py # CLI wrapper
|
|
125
|
+
│ │ ├── csv2shift_cli.py # CLI wrapper
|
|
126
|
+
│ │ ├── shift2graph_cli.py # CLI wrapper
|
|
127
|
+
│ │ ├── hotspot_cli.py # CLI wrapper
|
|
128
|
+
│ │ ├── diff2graph_cli.py # CLI wrapper
|
|
129
|
+
│ │ └── average_trajmap_cli.py# CLI wrapper
|
|
130
|
+
│ └── utils # Holds functions
|
|
131
|
+
│ │ ├── __init__.py
|
|
132
|
+
│ │ └── utils.py # utility functions
|
|
133
|
+
├── docs/ # docstrings for the modules
|
|
134
|
+
├── assets/ # Container for images
|
|
135
|
+
├── Tests/ # Containers for test trajectories and topologies
|
|
136
|
+
└── Conda/ # Backup YAML files
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
</pre>
|
|
140
|
+
|
|
141
|
+
## **Requirements**
|
|
142
|
+
- Trajectory processing libraries (mdtraj, biopython)
|
|
143
|
+
|
|
144
|
+
- Data wrangling tools (numpy, pandas)
|
|
145
|
+
|
|
146
|
+
- Trajectories must have been preprocessed (strippin water, ions,) before feeding into TrajMapQuick
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
All library requirements are pre-installed installed via pip or conda and are available for use in CLI or via Python API
|
|
150
|
+
|
|
151
|
+
## **Examples**
|
|
152
|
+
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 [](https://doi.org/10.5281/zenodo.20681326)
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
The Utility of the shift command (using a 500 frame trajectory) was shown by the figure below:
|
|
156
|
+
|
|
157
|
+

|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
**And that of the hotspot command by:**
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+

|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
To reproduce the figures above, download the full length trajectory (500 frames) from Zenodo [](https://doi.org/10.5281/zenodo.20681326) and run the codes below on the CLI
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
#The exact codes used to produce the results above
|
|
170
|
+
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
|
|
171
|
+
|
|
172
|
+
tmq hotspot -tr traj_9NSR_500.nc -to topol_9NSR.prmtop -st 1 -rr 1-378 -ce backbone -o out
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
## **Improvements (Speed, Throughput and Reliability)**
|
|
177
|
+
**1.** Batch processing over the CLI and Python API
|
|
178
|
+
|
|
179
|
+
**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:**
|
|
180
|
+
|
|
181
|
+

|
|
182
|
+
|
|
183
|
+
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.
|
|
184
|
+
|
|
185
|
+
**3.** The choice to select either the CA or backbone for shift calculations.
|
|
186
|
+
|
|
187
|
+
**4.** Automatic Detection of hotspots using RMSF plots and generation of associated shift plots.
|
|
188
|
+
|
|
189
|
+
**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.
|
|
190
|
+
|
|
191
|
+
## **Tutorials**
|
|
192
|
+
A video tutorial on the usage of **TrajMapQuick** is available **[here](https://youtu.be/iU6CaBQL8FU?si=EM2Hdk9ZednyJINj)**
|
|
193
|
+
|
|
194
|
+
## **Contributing**
|
|
195
|
+
Contributions are welcome. Please submit a pull request with your changes.
|
|
196
|
+
|
|
197
|
+
## **License**
|
|
198
|
+
[**MIT License**](../License.md)
|
|
199
|
+
|
|
200
|
+
## **Contact**
|
|
201
|
+
|
|
202
|
+
For questions or issues, please contact us @ [Reslar Labs](reslarscience@gmail.com) **© 2026**, or [Dr. Oluyemi](oluyemiwm@abuad.edu.ng) or [Shadrach Eze](shadrachchinecheremeze@gmail.com).
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
## **Citation**
|
|
206
|
+
|
|
207
|
+
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
|
|
208
|
+
|
|
209
|
+
**Software:**
|
|
210
|
+
[](https://doi.org/10.5281/zenodo.20681061)
|
|
211
|
+
|
|
212
|
+
**Dataset:**
|
|
213
|
+
[](https://doi.org/10.5281/zenodo.20681326)
|
|
214
|
+
|
|
215
|
+
|
|
@@ -4,8 +4,8 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "tmquick"
|
|
7
|
-
version = "1.0.
|
|
8
|
-
readme = "
|
|
7
|
+
version = "1.0.4"
|
|
8
|
+
readme = "readme_pypi.md"
|
|
9
9
|
description = "TrajMapQuick: Towards Fast Trajectory Map Analysis and Visualization"
|
|
10
10
|
authors = [
|
|
11
11
|
{ name = "Wande M. Oluyemi (PhD)" },
|
|
@@ -17,12 +17,12 @@ We have also extended the code to allow for automatic detection of regions with
|
|
|
17
17
|
|
|
18
18
|
See **[Github](https://github.com/SHEDOOMTC/TrajMapQuick/blob/main/README.md)**
|
|
19
19
|
|
|
20
|
-
|
|
21
20
|
## **Installation**
|
|
21
|
+
|
|
22
|
+
### **From Source**
|
|
22
23
|
```bash
|
|
23
24
|
# Clone the repo
|
|
24
|
-
git clone https://github.com/SHEDOOMTC/TrajMapQuick.git
|
|
25
|
-
cd TrajMapQuick
|
|
25
|
+
git clone https://github.com/SHEDOOMTC/TrajMapQuick.git && cd TrajMapQuick
|
|
26
26
|
|
|
27
27
|
# In conda environment with pip
|
|
28
28
|
conda create -n tmq python=3.10
|
|
@@ -36,31 +36,45 @@ conda activate tmq
|
|
|
36
36
|
|
|
37
37
|
Use tmq --help to see the arguments
|
|
38
38
|
```
|
|
39
|
+
|
|
40
|
+
### **From PyPI**
|
|
41
|
+
```bash
|
|
42
|
+
pip install tmquick
|
|
43
|
+
conda install -c conda-forge mdtraj
|
|
44
|
+
```
|
|
45
|
+
|
|
39
46
|
## **Commands**
|
|
40
47
|
```bash
|
|
41
|
-
#TrajMapQuick uses a
|
|
42
|
-
tmq shift : Extract matrices, compute residue-residue shifts and make plots:
|
|
48
|
+
#TrajMapQuick uses a four levell subcommand from the global "tmq" command
|
|
49
|
+
tmq shift : Extract matrices, compute residue-residue shifts and make plots:
|
|
50
|
+
For more, use tmq shift --help
|
|
43
51
|
|
|
44
|
-
tmq hotspot : Detect hotspots in residue shifts and create plots:
|
|
52
|
+
tmq hotspot : Detect hotspots in residue shifts and create plots:
|
|
53
|
+
For more, use tmq hotspot --help
|
|
45
54
|
|
|
46
|
-
tmq diff
|
|
55
|
+
tmq diff: Computes difference between two matrices and creates
|
|
56
|
+
the difference map: For more, use tmq diff --help
|
|
47
57
|
|
|
48
|
-
tmq average Computes average of n matrices and creates the average map:
|
|
58
|
+
tmq average Computes average of n matrices and creates the average map:
|
|
59
|
+
For more, use tmq average --help
|
|
49
60
|
|
|
50
61
|
```
|
|
51
62
|
## **Usage (CLI)**
|
|
52
63
|
```bash
|
|
53
64
|
# For tmq shift, arguments are passed into the flags for trajectory, topology etc.
|
|
54
65
|
|
|
55
|
-
tmq shift --traj traj.pdb --top top.parmtop --str 1 --resr 1-300
|
|
66
|
+
tmq shift --traj traj.pdb --top top.parmtop --str 1 --resr 1-300 \
|
|
67
|
+
--resrs 110-125 --cent backbone --out shift_output
|
|
56
68
|
|
|
57
|
-
#for tmq hotspot, arguments are passed similiarly,
|
|
69
|
+
#for tmq hotspot, arguments are passed similiarly, the region of shift is not provided
|
|
58
70
|
|
|
59
|
-
tmq hotspot --traj traj.pdb --top top.parmtop --str 1 --resr 1-300
|
|
71
|
+
tmq hotspot --traj traj.pdb --top top.parmtop --str 1 --resr 1-300 \
|
|
72
|
+
--cent backbone --out hotspot_output
|
|
60
73
|
```
|
|
61
74
|
## **Usage (Python API)**
|
|
62
|
-
The core modules in the tmq library are clearly demonstrated in the
|
|
63
|
-
|
|
75
|
+
The core modules in the tmq library are clearly demonstrated in the
|
|
76
|
+
**[Python_API.ipynb](./Notebooks/Python_API.ipynb)** file
|
|
77
|
+
|
|
64
78
|
```python
|
|
65
79
|
#Typical modules are loaded and then used as explained in the jupyter notebook above:
|
|
66
80
|
|
tmquick-1.0.4/setup.py
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
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,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tmquick
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.4
|
|
4
4
|
Summary: TrajMapQuick: Towards Fast Trajectory Map Analysis and Visualization
|
|
5
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
6
|
Project-URL: Homepage, https://github.com/SHEDOOMTC/TrajMapQuick.git
|
|
@@ -21,6 +21,7 @@ Requires-Dist: colorama
|
|
|
21
21
|
Provides-Extra: md
|
|
22
22
|
Requires-Dist: mdtraj; extra == "md"
|
|
23
23
|
Dynamic: license-file
|
|
24
|
+
Dynamic: requires-python
|
|
24
25
|
|
|
25
26
|
<p align="center">
|
|
26
27
|
<img src="https://raw.githubusercontent.com/SHEDOOMTC/TrajMapQuick/main/assets/TrajMapQuick.png" alt="TrajMapQuick Logo" />
|
|
@@ -41,12 +42,12 @@ We have also extended the code to allow for automatic detection of regions with
|
|
|
41
42
|
|
|
42
43
|
See **[Github](https://github.com/SHEDOOMTC/TrajMapQuick/blob/main/README.md)**
|
|
43
44
|
|
|
44
|
-
|
|
45
45
|
## **Installation**
|
|
46
|
+
|
|
47
|
+
### **From Source**
|
|
46
48
|
```bash
|
|
47
49
|
# Clone the repo
|
|
48
|
-
git clone https://github.com/SHEDOOMTC/TrajMapQuick.git
|
|
49
|
-
cd TrajMapQuick
|
|
50
|
+
git clone https://github.com/SHEDOOMTC/TrajMapQuick.git && cd TrajMapQuick
|
|
50
51
|
|
|
51
52
|
# In conda environment with pip
|
|
52
53
|
conda create -n tmq python=3.10
|
|
@@ -60,31 +61,45 @@ conda activate tmq
|
|
|
60
61
|
|
|
61
62
|
Use tmq --help to see the arguments
|
|
62
63
|
```
|
|
64
|
+
|
|
65
|
+
### **From PyPI**
|
|
66
|
+
```bash
|
|
67
|
+
pip install tmquick
|
|
68
|
+
conda install -c conda-forge mdtraj
|
|
69
|
+
```
|
|
70
|
+
|
|
63
71
|
## **Commands**
|
|
64
72
|
```bash
|
|
65
|
-
#TrajMapQuick uses a
|
|
66
|
-
tmq shift : Extract matrices, compute residue-residue shifts and make plots:
|
|
73
|
+
#TrajMapQuick uses a four levell subcommand from the global "tmq" command
|
|
74
|
+
tmq shift : Extract matrices, compute residue-residue shifts and make plots:
|
|
75
|
+
For more, use tmq shift --help
|
|
67
76
|
|
|
68
|
-
tmq hotspot : Detect hotspots in residue shifts and create plots:
|
|
77
|
+
tmq hotspot : Detect hotspots in residue shifts and create plots:
|
|
78
|
+
For more, use tmq hotspot --help
|
|
69
79
|
|
|
70
|
-
tmq diff
|
|
80
|
+
tmq diff: Computes difference between two matrices and creates
|
|
81
|
+
the difference map: For more, use tmq diff --help
|
|
71
82
|
|
|
72
|
-
tmq average Computes average of n matrices and creates the average map:
|
|
83
|
+
tmq average Computes average of n matrices and creates the average map:
|
|
84
|
+
For more, use tmq average --help
|
|
73
85
|
|
|
74
86
|
```
|
|
75
87
|
## **Usage (CLI)**
|
|
76
88
|
```bash
|
|
77
89
|
# For tmq shift, arguments are passed into the flags for trajectory, topology etc.
|
|
78
90
|
|
|
79
|
-
tmq shift --traj traj.pdb --top top.parmtop --str 1 --resr 1-300
|
|
91
|
+
tmq shift --traj traj.pdb --top top.parmtop --str 1 --resr 1-300 \
|
|
92
|
+
--resrs 110-125 --cent backbone --out shift_output
|
|
80
93
|
|
|
81
|
-
#for tmq hotspot, arguments are passed similiarly,
|
|
94
|
+
#for tmq hotspot, arguments are passed similiarly, the region of shift is not provided
|
|
82
95
|
|
|
83
|
-
tmq hotspot --traj traj.pdb --top top.parmtop --str 1 --resr 1-300
|
|
96
|
+
tmq hotspot --traj traj.pdb --top top.parmtop --str 1 --resr 1-300 \
|
|
97
|
+
--cent backbone --out hotspot_output
|
|
84
98
|
```
|
|
85
99
|
## **Usage (Python API)**
|
|
86
|
-
The core modules in the tmq library are clearly demonstrated in the
|
|
87
|
-
|
|
100
|
+
The core modules in the tmq library are clearly demonstrated in the
|
|
101
|
+
**[Python_API.ipynb](./Notebooks/Python_API.ipynb)** file
|
|
102
|
+
|
|
88
103
|
```python
|
|
89
104
|
#Typical modules are loaded and then used as explained in the jupyter notebook above:
|
|
90
105
|
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|