Skip to main content

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

Project description

brkraw-mrs

BrkRaw converter hook package for Bruker PRESS SVS (MRS) datasets. This project ports the Bruker MRS workflow from spec2nii and packages it as a BrkRaw hook so it can be installed and used through BrkRaw's hook tooling.

What It Does

  • Detects PRESS SVS scans (method contains PRESS) and reads raw spectroscopy data from fid or rawdata.job0.
  • Converts interleaved real/imag to complex, infers dimensions, and writes NIfTI-MRS with a header extension JSON (NIfTI-2 preferred).
  • Writes a JSON sidecar with NIfTI-MRS metadata for convenience.

Data ordering for SVS is:

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

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

Install (BrkRaw Hook Standard)

Install the Python package, then install the hook assets into BrkRaw:

pip install brkraw-mrs
brkraw hook install brkraw-mrs

To install by entrypoint name:

brkraw hook install mrs

To view the packaged hook docs:

brkraw hook docs brkraw-mrs --render

Legacy install script (kept for older workflows):

brkraw-mrs-install

BrkRaw Usage

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

Contributing

This project has not been tested extensively yet. Contributions for validation and improvements are very welcome.

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.1.1.tar.gz (12.8 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.1.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: brkraw_mrs-0.1.1.tar.gz
  • Upload date:
  • Size: 12.8 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.1.1.tar.gz
Algorithm Hash digest
SHA256 012296175514f9c599024492847e39fb7896577b144527f61784e22cb7747070
MD5 e9f2aff5025a6ee059db5ca913f2ae48
BLAKE2b-256 22cdac9a5b981e7fa0a30b7e790bfbcad5939a97a912e4abe7d85fc4229ea2ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for brkraw_mrs-0.1.1.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.1.1-py3-none-any.whl.

File metadata

  • Download URL: brkraw_mrs-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a06c37e3f7cc36e18993bfefbd4d8e76bef5fb2022368a79bf0bac0044a95a06
MD5 43b8a95193549a278002226993faec0b
BLAKE2b-256 97d9131960f3c26a56b0795124716360333cb223eb827a74656bb1d4e74cdcc1

See more details on using hashes here.

Provenance

The following attestation bundles were made for brkraw_mrs-0.1.1-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