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.2b1.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.2b1-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytractnmr-0.1.2b1.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.2b1.tar.gz
Algorithm Hash digest
SHA256 7f26e4fe93447e5022afdfb4b84e9264ed3be601039107302d3b42a667f444df
MD5 613151e7a4b867e5cd551be27a0ab6b8
BLAKE2b-256 7c2d96c0aad9d101fdfbb02aeb79ae5facf44d3853336ae81e4ac3af45e55307

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytractnmr-0.1.2b1-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

Hashes for pytractnmr-0.1.2b1-py3-none-any.whl
Algorithm Hash digest
SHA256 94ef9923b788dfa48210611e7e28fde2d10ab86a026ac2ee86352a4015064761
MD5 60144ec127cfa111be30c52b095f7c8d
BLAKE2b-256 66263bf916f5f1ade43c8349e35b09b74d065dbea5443ff3cd516929b043b9ab

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