Skip to main content

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

  1. Clone the repository:

    git clone https://github.com/debadutta-patra/pyTRACTnmr.git
    cd pyTRACTnmr
    
  2. 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

  1. Load Data: Click "Load Bruker Directory" and select your experiment folder.
  2. 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).
  3. 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".
  4. Export:
    • Right-click the results table to Export Table to CSV.

Dependencies

  • PySide6
  • numpy
  • scipy
  • matplotlib
  • nmrglue

License

This project is licensed under the GNU General Public License v3.0 License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytractnmr-0.1.2b2.tar.gz (50.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytractnmr-0.1.2b2-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

Details for the file pytractnmr-0.1.2b2.tar.gz.

File metadata

  • Download URL: pytractnmr-0.1.2b2.tar.gz
  • Upload date:
  • Size: 50.5 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

Hashes for pytractnmr-0.1.2b2.tar.gz
Algorithm Hash digest
SHA256 ede8ca45b1fdffa11c563b9c6c25c434b3d807c0f740863ec2ef7981c8f4952f
MD5 3d28946fe52527fd844165cbc4e3aab5
BLAKE2b-256 0d564fbfe93a92ca3eb3f9f4ce73d34c642878d54e3337b4b8347a2ec47a11a1

See more details on using hashes here.

File details

Details for the file pytractnmr-0.1.2b2-py3-none-any.whl.

File metadata

  • Download URL: pytractnmr-0.1.2b2-py3-none-any.whl
  • Upload date:
  • Size: 27.7 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

Hashes for pytractnmr-0.1.2b2-py3-none-any.whl
Algorithm Hash digest
SHA256 60eff572f9f7c0fcf9b73897a22a5ad322221762e31604faebeed1ebe178a5ee
MD5 880205985076dfc6e0244b2f0a68ef1d
BLAKE2b-256 3dd7f9438f26f64d1a15536f7ac22515f46377205d35512c97bac6b6062110f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page