qmri-io
NIFTI, DICOM, and BIDS I/O for qmri.
Installation
pip install qmri-io
Quick Start
from qmri.diffusion import adc
from qmri.io import nifti
# Load DWI data
dwi = nifti.load("dwi.nii.gz")
# Fit ADC
result = adc.fit(dwi.data, dwi.b_values, method="iwlls")
# Save result
nifti.save(result.adc, dwi.affine, "adc_map.nii.gz")
Features
- NIFTI support via nibabel
- BIDS dataset loading with automatic sidecar parsing
- DICOM support (optional, requires pydicom)
- Sidecar file handling (.bval, .bvec, .json)
Design
This package handles file I/O so the core qmri package doesn't need nibabel or pydicom as dependencies. Functions return simple dataclasses with numpy arrays, not complex container objects.
Documentation
Full documentation: https://gold-standard-phantoms.github.io/qmri
Licence
MIT
Metadata
Release files for qmri-io 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qmri_io-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for qmri_io-0.1.0-py3-none-any.whl |
Release files / qmri_io-0.1.0-py3-none-any.whl
| Download URL | qmri_io-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f95e377f5e56eb850dae86a96d2060d8a2fedd115ab26b87c00cd3bdd2d31193
|
|
BLAKE2b-256 checksum How to use checksums |
955b1b643b2f1309af0b464c61e70dca7311dc26c1d25f86c83e620d480b3f80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for qmri-io 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.