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.2.tar.gz (10.6 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.2-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: brkraw_mrs-0.1.2.tar.gz
  • Upload date:
  • Size: 10.6 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.2.tar.gz
Algorithm Hash digest
SHA256 5cb28f8e71c1b396a8912c3887c505b2eb38f6ae98ee0113988d603257a07df8
MD5 70e76ea09bc06bb5532c9a36c39bf6c9
BLAKE2b-256 606f67bbaf5e83aec9cb454bbd941407ba16cd320ebe4bb13747dc1a27f4ec4a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: brkraw_mrs-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 de6a39286423829573dc7ba46e579185e4fa92e6f569180f5010f3d0869d4b2c
MD5 ba38569dfb8e8d03c0f0c172157a3588
BLAKE2b-256 37115385bcd0b97ac61bbf599f7c5199f8f92a221abf45d12d107b8e5a817d3d

See more details on using hashes here.

Provenance

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