Skip to main content

brkraw-mrs

A BrkRaw converter hook that adds single-voxel MRS support to the BrkRaw ecosystem. This package ports the Bruker MRS workflow from spec2nii and exposes it as a first-party BrkRaw hook.

What it does

  • Detects single-voxel MRS scans (PRESS, STEAM, SLASER) from ParaVision metadata
  • Reads spectroscopy data from fid or rawdata.job0
  • Converts data to NIfTI-MRS (NIfTI-2 preferred) with JSON header extensions

The goal is to make single-voxel MRS data usable within standard MRI analysis workflows supported by BrkRaw.

Install (BrkRaw Hook Standard)

Install the package and register the hook with BrkRaw:

pip install brkraw-mrs
brkraw hook install brkraw-mrs

To install by entrypoint name:

brkraw hook install mrs

To view the hook documentation:

brkraw hook docs brkraw-mrs --render

BrkRaw Usage

brkraw convert \
  /path/to/bruker/PV_dataset \
  --output /path/to/output \
  --sidecar

Support

Tested with Bruker ParaVision standard datasets:

  • PV360 3.5-3.7 (PRESS)
  • Other MRS sequences and older ParaVision versions are untested

Notes: Data ordering for PRESS SVS is assumed as:

(1, 1, 1, n_points, n_averages?, n_dynamics?, n_coils?)

If a dimension is missing or equals 1, it is omitted.

Contributing

This repository provides a foundational implementation of single-voxel MRS support within the BrkRaw framework. Contributions from MRS researchers are encouraged to help validate, refine, and extend the workflow across sequences, acquisition schemes, and ParaVision versions.

Attribution and License

This hook is a port of the spec2nii Bruker MRS workflow. See NOTICE for attribution details and LICENSE for terms.

Metadata

Release files for brkraw-mrs 0.2.4

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

Source distribution (sdist)

Source distribution for brkraw-mrs 0.2.4
File Size Uploaded
brkraw_mrs-0.2.4.tar.gz 20.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for brkraw-mrs 0.2.4
File Interpreter ABI Platform
brkraw_mrs-0.2.4-py3-none-any.whl Python 3 none any Details

Total release size: 41.0 kB

Release files / brkraw_mrs-0.2.4.tar.gz

Download URL brkraw_mrs-0.2.4.tar.gz
Size 20.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e57e7153934bda5646e4c372de4ba9559642e96b8cdee78c985fe57eaa275c7b
BLAKE2b-256 checksum
How to use checksums
504794af73090399f5afd6c4868f61ca341280e93780859fd168a2f8772cb420
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Feb 2, 2026.

Transparency log

Release files / brkraw_mrs-0.2.4-py3-none-any.whl

Download URL brkraw_mrs-0.2.4-py3-none-any.whl
Size 21.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d65087eb92634b27cf329ebdd2a8aaa277f175ccd9198ce85772458936a6bb0f
BLAKE2b-256 checksum
How to use checksums
f2d9cc72378235379ae5f6bd4d52b15d241c5a7031a787a6c4f90cbfd7bb3901
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Feb 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.4 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

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