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
fidorrawdata.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
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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5cb28f8e71c1b396a8912c3887c505b2eb38f6ae98ee0113988d603257a07df8
|
|
| MD5 |
70e76ea09bc06bb5532c9a36c39bf6c9
|
|
| BLAKE2b-256 |
606f67bbaf5e83aec9cb454bbd941407ba16cd320ebe4bb13747dc1a27f4ec4a
|
Provenance
The following attestation bundles were made for brkraw_mrs-0.1.2.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.1.2.tar.gz -
Subject digest:
5cb28f8e71c1b396a8912c3887c505b2eb38f6ae98ee0113988d603257a07df8 - Sigstore transparency entry: 799178073
- Sigstore integration time:
-
Permalink:
BrkRaw/brkraw-mrs@bfbc933ae8cca20f4d9f7f4d5eea774c7d20221a -
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@bfbc933ae8cca20f4d9f7f4d5eea774c7d20221a -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de6a39286423829573dc7ba46e579185e4fa92e6f569180f5010f3d0869d4b2c
|
|
| MD5 |
ba38569dfb8e8d03c0f0c172157a3588
|
|
| BLAKE2b-256 |
37115385bcd0b97ac61bbf599f7c5199f8f92a221abf45d12d107b8e5a817d3d
|
Provenance
The following attestation bundles were made for brkraw_mrs-0.1.2-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.1.2-py3-none-any.whl -
Subject digest:
de6a39286423829573dc7ba46e579185e4fa92e6f569180f5010f3d0869d4b2c - Sigstore transparency entry: 799178074
- Sigstore integration time:
-
Permalink:
BrkRaw/brkraw-mrs@bfbc933ae8cca20f4d9f7f4d5eea774c7d20221a -
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@bfbc933ae8cca20f4d9f7f4d5eea774c7d20221a -
Trigger Event:
workflow_dispatch
-
Statement type: