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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytractnmr-0.1.2b3.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.2b3.tar.gz
Algorithm Hash digest
SHA256 b628526355fed1568552157a8ac925d1393406ca4399ee896624f9642d942def
MD5 bf22a393a025387acf15d031efd94846
BLAKE2b-256 e67700557a35d5b08908b9a0d715d10af00fde3d7efdcb5dd625421a69a4596a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytractnmr-0.1.2b3-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.2b3-py3-none-any.whl
Algorithm Hash digest
SHA256 1cf7cccf9ecaf16290422ba618920fc467c593cc27174d92ede6160147489754
MD5 08ff0d2bc71be10a55a2bed59a651354
BLAKE2b-256 88bb3aeeaf16ff8c85026e5ce22a2c2be49f81151a7242bcde81c2635ed05c45

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