Skip to main content

BrkRaw converter hook for Bruker PRESS SVS NIfTI-MRS outputs (ported from spec2nii)

Project description

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.

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

brkraw_mrs-0.2.4.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

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

brkraw_mrs-0.2.4-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file brkraw_mrs-0.2.4.tar.gz.

File metadata

  • Download URL: brkraw_mrs-0.2.4.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for brkraw_mrs-0.2.4.tar.gz
Algorithm Hash digest
SHA256 e57e7153934bda5646e4c372de4ba9559642e96b8cdee78c985fe57eaa275c7b
MD5 899796cfac8debd93694f9b0597490c2
BLAKE2b-256 504794af73090399f5afd6c4868f61ca341280e93780859fd168a2f8772cb420

See more details on using hashes here.

Provenance

The following attestation bundles were made for brkraw_mrs-0.2.4.tar.gz:

Publisher: publish.yml on BrkRaw/brkraw-mrs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file brkraw_mrs-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: brkraw_mrs-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for brkraw_mrs-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d65087eb92634b27cf329ebdd2a8aaa277f175ccd9198ce85772458936a6bb0f
MD5 9352964cbd7d1897521db740c556e089
BLAKE2b-256 f2d9cc72378235379ae5f6bd4d52b15d241c5a7031a787a6c4f90cbfd7bb3901

See more details on using hashes here.

Provenance

The following attestation bundles were made for brkraw_mrs-0.2.4-py3-none-any.whl:

Publisher: publish.yml on BrkRaw/brkraw-mrs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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