Skip to main content

NIFTI, DICOM, and BIDS I/O for qmri

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qmri_io-0.1.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file qmri_io-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: qmri_io-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for qmri_io-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f95e377f5e56eb850dae86a96d2060d8a2fedd115ab26b87c00cd3bdd2d31193
MD5 ee03c109e12580ef68686383e595ead6
BLAKE2b-256 955b1b643b2f1309af0b464c61e70dca7311dc26c1d25f86c83e620d480b3f80

See more details on using hashes here.

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