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
fidorrawdata.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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e57e7153934bda5646e4c372de4ba9559642e96b8cdee78c985fe57eaa275c7b
|
|
| MD5 |
899796cfac8debd93694f9b0597490c2
|
|
| BLAKE2b-256 |
504794af73090399f5afd6c4868f61ca341280e93780859fd168a2f8772cb420
|
Provenance
The following attestation bundles were made for brkraw_mrs-0.2.4.tar.gz:
Publisher:
publish.yml on BrkRaw/brkraw-mrs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
brkraw_mrs-0.2.4.tar.gz -
Subject digest:
e57e7153934bda5646e4c372de4ba9559642e96b8cdee78c985fe57eaa275c7b - Sigstore transparency entry: 906579712
- Sigstore integration time:
-
Permalink:
BrkRaw/brkraw-mrs@eae2235e5d2f6a70804bf3c440611f777a334dbc -
Branch / Tag:
refs/heads/main - Owner: https://github.com/BrkRaw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@eae2235e5d2f6a70804bf3c440611f777a334dbc -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d65087eb92634b27cf329ebdd2a8aaa277f175ccd9198ce85772458936a6bb0f
|
|
| MD5 |
9352964cbd7d1897521db740c556e089
|
|
| BLAKE2b-256 |
f2d9cc72378235379ae5f6bd4d52b15d241c5a7031a787a6c4f90cbfd7bb3901
|
Provenance
The following attestation bundles were made for brkraw_mrs-0.2.4-py3-none-any.whl:
Publisher:
publish.yml on BrkRaw/brkraw-mrs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
brkraw_mrs-0.2.4-py3-none-any.whl -
Subject digest:
d65087eb92634b27cf329ebdd2a8aaa277f175ccd9198ce85772458936a6bb0f - Sigstore transparency entry: 906579766
- Sigstore integration time:
-
Permalink:
BrkRaw/brkraw-mrs@eae2235e5d2f6a70804bf3c440611f777a334dbc -
Branch / Tag:
refs/heads/main - Owner: https://github.com/BrkRaw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@eae2235e5d2f6a70804bf3c440611f777a334dbc -
Trigger Event:
workflow_dispatch
-
Statement type: