Skip to main content

End-to-end quantitative MRI processing pipelines built on qmri

Project description

qmri-pipelines

End-to-end quantitative MRI processing pipelines built on qmri.

Where qmri provides pure signal models and qmri-io provides file handling, qmri-pipelines ties them together into ready-to-run, file-in / file-out workflows that load images, run the fit, and write maps and reports.

Installation

pip install qmri-pipelines

Available pipelines

Multi-echo thermometry

Estimate temperature from multi-echo magnitude images and a segmentation using the dual-resonance (ethylene glycol) model.

from qmri.pipelines.thermometry import run_multiecho_thermometry

temperature_map, report = run_multiecho_thermometry(
    multiecho_files=["echo_block_1.nii.gz", "echo_block_2.nii.gz"],
    segmentation_file="labels.nii.gz",
    echo_times_files=["te_block_1.txt", "te_block_2.txt"],
    method="regionwise",
    output_dir="results/",
)

for region in report.regions:
    print(f"region {region.region_id}: {region.temperature:.2f} °C")

The magnetic field strength is read from a JSON sidecar (ImagingFrequency or MagneticFieldStrength) unless magnetic_field_tesla is supplied explicitly.

The same pipeline is exposed on the command line via qmri-cli:

qmri thermometry multiecho echo_block_1.nii.gz echo_block_2.nii.gz \
    -e te_block_1.txt -e te_block_2.txt \
    -s labels.nii.gz --method regionwise -o results/

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

qmri_pipelines-0.1.0.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

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

qmri_pipelines-0.1.0-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file qmri_pipelines-0.1.0.tar.gz.

File metadata

  • Download URL: qmri_pipelines-0.1.0.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for qmri_pipelines-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b53ac46fc593b766d726727e267033fec16e79e235eaa1f8a8de232e2fc80fb8
MD5 c10588ec5cf8a775da0f8df727cc4470
BLAKE2b-256 d6720d077dbcd9804468c28e47cf897fa2765cd15a9db7f783ec108fe0322c83

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for qmri_pipelines-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45991e3b440b5b9f0b7a80724c9b6d02b07b989f2dca1ef4b33e4c0f53efde92
MD5 3d56f6ccfa8eaad95f9357d8bc3bdfd3
BLAKE2b-256 166a0ab53c32b058c88ffa0443806731e4c416cab96eb0cb55604f9363c982bc

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