A simple gui based application to process and analyse TRACT data from NMR spectroscopy.
Project description
pyTRACTnmr
pyTRACTnmr is a graphical user interface (GUI) application designed for the processing and analysis of TRACT (TROSY for Rotational Correlation Times) experiments in NMR spectroscopy. It provides a streamlined workflow to go from raw Bruker data to calculated rotational correlation times ($\tau_c$) with robust error estimation. Currently this only supports data collected with Bruker spectrometers using pulseprogram tractf3gpphwg.
Features
- User-Friendly Interface: Built with PySide6 for a responsive and native experience.
- Bruker Data Import: Directly load Bruker experiment directories.
- Interactive Spectral Processing:
- Real-time 0th and 1st order phase correction.
- Adjustable Apodization (Sine-bell squared) and Zero Filling.
- Interactive Region Selection: Drag directly on the spectrum to define integration limits.
- Advanced Analysis:
- Automatic calculation of relaxation rates ($R_\alpha$ and $R_\beta$).
- Determination of Rotational Correlation Time ($\tau_c$).
- Bootstrap Error Analysis: rigorous uncertainty estimation for $\tau_c$.
- Data Management:
- Tabular view of multiple loaded experiments.
- Context menu to export results to CSV.
Installation
Prerequisites
- Python 3.14 or higher recommended (Though it is not tested it should run with earlier version of Python 3).
- uv (optional, but recommended for building).
Installation
Quick Start with uv
The fastest way to try pyTRACTnmr without installation is:
uvx pyTRACTnmr
Using pip
pip install pyTRACTnmr
From Source
-
Clone the repository:
git clone https://github.com/debadutta-patra/pyTRACTnmr.git cd pyTRACTnmr
-
Install the package:
Using
uv(fastest):uv pip install .
Using standard
pip:pip install .
Usage
Launching the App
After installation, you can start the application from the terminal:
pytractnmr
Or run it as a python module:
python -m pyTRACTnmr.main
Analysis Workflow
- Load Data: Click "Load Bruker Directory" and select your experiment folder.
- Process:
- Use the Processing tab to adjust phase correction sliders.
- Drag the green selection box on the top spectrum plot to define the integration region (Start/End ppm).
- Fit:
- Switch to the Fitting tab.
- Input experimental parameters (Field Strength, CSA, etc.).
- Set the number of Bootstraps (e.g., 1000).
- Click "Calculate Tau_c".
- Export:
- Right-click the results table to Export Table to CSV.
Dependencies
PySide6numpyscipymatplotlibnmrglue
License
This project is licensed under the GNU General Public License v3.0 License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytractnmr-0.1.2b4.tar.gz.
File metadata
- Download URL: pytractnmr-0.1.2b4.tar.gz
- Upload date:
- Size: 50.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
451e036ea986b75b28eb3fbfe9f34b7d5010bfd4f2f19f5a090345153b9c3cea
|
|
| MD5 |
645914b1730d0c732cdb268bfa07c523
|
|
| BLAKE2b-256 |
779efc301bf237b96b44cecbc533887893b6465054d00183eb4b11cc283d2de6
|
File details
Details for the file pytractnmr-0.1.2b4-py3-none-any.whl.
File metadata
- Download URL: pytractnmr-0.1.2b4-py3-none-any.whl
- Upload date:
- Size: 27.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ca8ba5984902e0d60ed998a3597131f44a6dbd938449cb8bdb628e459ca342e
|
|
| MD5 |
0246e703060a3138bd7e0f687db0ef62
|
|
| BLAKE2b-256 |
4865a266f6ae82a93bcdbf8ad3f10b9dc4614612208fa19c8470359299af2e0a
|