Skip to main content

Robust LACS offsets, uncertainties, outliers, and plots from NMR-STAR files

Project description

PyLACS : Python version Linear Analysis of Chemical Shifts(LACS)

PyPI version Python Versions License: MIT

PyLACS is a Python package for detecting and correcting chemical shift referencing errors in protein NMR spectroscopy datasets, using robust linear regression methods.
It provides both a Python API and a command-line interface (CLI) for use in research pipelines, HPC batch jobs, and interactive exploration.


✨ Features

  • Detect and correct chemical shift referencing errors for Cα, Cβ, C, N, and H nuclei
  • Robust regression methods:
    • Tukey biweight
    • Theil–Sen estimator
    • RANSAC
    • Quantile regression
    • Bayesian regression (via PyMC + ArviZ)
  • Outlier detection and offset estimation
  • Optional plot generation (scatter, regression fits)
  • Works directly with BMRB NMR-STAR (.str) files
  • Provides both a CLI (pylacs) and a Python API

📦 Installation

Stable release from PyPI:

pip install pylacs

🚀 Quickstart

pylacs myfile.str --method tukey --out results/

This will compute offsets, generate validation reports, and (if plotting is enabled) save plots in results folder

For help

pylacs --help

📖 Citation

f you use PyLACS in your research, please cite:

Wang, L., Eghbalnia, H. R., & Markley, J. L. (2005). Probabilistic approach to determining protein backbone torsion angles from NMR chemical shifts. Journal of Biomolecular NMR, 32(1), 13–22.

Baskaran, K., et al. (2025). PyLACS: Python-based Linear Analysis of Chemical Shifts pipeline. (manuscript in preparation)

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

pylacs-1.0.0.tar.gz (37.6 kB view details)

Uploaded Source

Built Distribution

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

pylacs-1.0.0-py3-none-any.whl (35.7 kB view details)

Uploaded Python 3

File details

Details for the file pylacs-1.0.0.tar.gz.

File metadata

  • Download URL: pylacs-1.0.0.tar.gz
  • Upload date:
  • Size: 37.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for pylacs-1.0.0.tar.gz
Algorithm Hash digest
SHA256 72d8ab3ad3fb70014c77e05135bcff67fddcbf66d9819507ef2919d0770629be
MD5 7d7e03578204cb17f803809add6661b8
BLAKE2b-256 cbfc4416414266288fcb7250924bd8b4e92cd2526be411a9f0535e1180ca91f9

See more details on using hashes here.

File details

Details for the file pylacs-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pylacs-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 35.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for pylacs-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b690c28fcd0ea75a8e3b134a66153e8e26e43fc05360175c1bc5cd917ced2123
MD5 491d7ed80e168bfb92c464886fde7925
BLAKE2b-256 8fb752482e9582ca178ddbf71ab6ba1ed5028ef0e08b822a1a11027278f14fcd

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