Skip to main content

nmrglue-ng

Test status on master Self-contained test coverage on master PyPI version Conda version on spectrocat Stable documentation build status BSD 3-Clause License

Read, write, convert, process, and analyse NMR data in Python. nmrglue-ng is an independent continuation of nmrglue, originally developed by Jonathan J. Helmus and contributors.

What nmrglue-ng adds

nmrglue-ng retains the historical import and reader interfaces while correcting I/O, processing and analysis defects that can change numerical results. Representative additions and corrections include:

  • Spectral-axis calibration and dimension order for JCAMP-DX, JEOL and RNMRTK, including permuted RNMRTK layouts, sample packing and converter exports.

  • Bruker low-memory trace addressing and preservation of real float64 data.

  • Complete complex FFT, phase and low-level frequency-shift results for real inputs, corrected wrapper shift directions, and quadrature packing.

  • Automatic quadrature balancing, working arithmetic-mean and real-channel filters, and restored Cholesky signal modeling.

  • Consistent bounded analytic-Jacobian fits and corrected fitting covariance; uncertainties are unavailable when fitted parameters reach a bound.

  • Corrected integration uncertainties, baseline edge windows and peak segmentation.

  • Additional JCAMP-DX decoding and explicit interop profiles that expose samples, physical axes, component conventions and normalization provenance.

Regression tests cover these changes, with selected workflows additionally compared against external datasets and NMR software. Coverage varies by format and operation. The migration guide explains which results to recheck; the development changelog distinguishes released fixes from development changes. Existing scripts may produce different, corrected values even when their calls stay the same.

The coverage badge measures the self-contained tests on Ubuntu with Python 3.13, including branch coverage. Tests requiring the external corpus, NMRPipe or unavailable optional dependencies are outside this indicator’s scope.

Quick start

Install the nmrglue-ng distribution in a Python 3.10+ environment:

python -m pip install nmrglue-ng

The Python import remains nmrglue. For example, read an NMRPipe FID:

Download the sample FID and save it beside your script.

import nmrglue as ng

dic, data = ng.pipe.read("synthetic_1d_time.fid")

The reader returns a dictionary of NMRPipe header values and a NumPy array. Use separate environments for the historical nmrglue distribution and nmrglue-ng, since both install the same Python package. The installation guide covers uv, pip, and Conda.

For new integrations, nmrglue.interop provides structured results with samples, axes, metadata, and diagnostics. Check the supported profiles for format coverage and limitations.

Documentation

  • Getting started walks through reading, processing, and plotting a first spectrum in a downloadable notebook.

  • Tutorials cover reading, processing, conversion, and analysis with worked examples.

  • Coming from nmrglue? explains how to set up a separate environment and which changes can affect existing workflows.

  • API reference covers the format readers, processing, analysis, and interop interfaces.

  • Release notes describe changes by release. See the development documentation for unreleased features.

Contributing

Use the Contribute section for issue reports, development setup, tests, documentation builds, and pull requests.

Citation and license

Please cite the original nmrglue paper where appropriate:

Jonathan J. Helmus and Christopher P. Jaroniec, Nmrglue: an open source Python package for the analysis of multidimensional NMR data, Journal of Biomolecular NMR 55, 355–367 (2013). doi:10.1007/s10858-013-9718-x.

nmrglue-ng retains the original Git history and is distributed under the BSD 3-Clause License.

Metadata

Release files for nmrglue-ng 1.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nmrglue-ng 1.6.1
File Size Uploaded Provenance Actions
nmrglue_ng-1.6.1.tar.gz 74.7 MB With provenance Details for nmrglue_ng-1.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nmrglue-ng 1.6.1
File Interpreter ABI Platform Actions
nmrglue_ng-1.6.1-py3-none-any.whl Python 3 none any Details for nmrglue_ng-1.6.1-py3-none-any.whl

Total release size: 75.0 MB

Release files / nmrglue_ng-1.6.1.tar.gz

Download URL nmrglue_ng-1.6.1.tar.gz
Size 74.7 MB
Tags Source
SHA-256 checksum
How to use checksums
d11b200490ae475e9fceee8902885238d98e93d5a30d2ea21ad54b7a67991aa0
BLAKE2b-256 checksum
How to use checksums
3cabd9658d5d7ca04d95557f4a8b87c5b18efeda90e5da8e9a0afe7fff96307e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / nmrglue_ng-1.6.1-py3-none-any.whl

Download URL nmrglue_ng-1.6.1-py3-none-any.whl
Size 304.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0bbc5847ecea03ad8295aec10689eff4e284f928ece3dbbafe2a5986420a91a8
BLAKE2b-256 checksum
How to use checksums
d073ab67c29073891452b6cae4d7e0a56f0a0ab402e3d29022e59225973dff01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for nmrglue-ng 1.6.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nmrglue_ng-1.6.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page