MRax#
A Python library for quantitative MRI research.
MRax provides data structures and optimization utilities for quantitative MRI
research. It includes unit-aware observables, common signal models,
reconstruction helpers, and portable .mrax study bundles.
MRax is intended for research use only.
Main components#
Signal models |
Built-in model factories for common quantitative MRI equations, plus a template for custom models. |
Named experiments |
|
JAX optimization |
Differentiable fitting with masks, constraints and regularization, using Optax and proximal solvers. |
MRI reconstruction |
Cartesian and non-Cartesian helpers, k-space processing blocks, variational solvers, and model-based parameter reconstruction. |
Storage |
Portable |
Core workflow#
Build or import a
Studyfrom synthetic data, Pulseq, Bruker ParaVision, or a custom loader.Pick a model for each experiment and insert any required observables from study globals or prior fits.
Plan and execute fits with
mrax.core.study_runner.plan_study_fits()andmrax.core.study_runner.execute_study_plan(), or callmrax.core.loss_builder.run_fit()directly for a single experiment.Inspect fitted fields, derived maps, and convergence history.
Save the study and results in a
.mraxbundle. See MRax Study Storage. Use Post-fit Analysis for ROI or group summaries.
Start Here#
Quick API Jump#
Data containers and studies: Data and study containers
Run single- or multi-experiment fits: Fitting
Batch processing on disk folders: Batch execution and runtime
Preprocessing toolbox: Preprocessing
Post-fit analysis toolbox: Post-fit analysis
Optimizers and regularizers: Optimizers and regularizers
Reconstruction operators and solvers: Reconstruction functions
Import helpers: Import functions
Useful Links#
Install docs/test/notebook tooling:
pip install -r requirements-dev.txtBuild docs locally:
sphinx-build -E -b html docs docs/_build/htmlLaunch notebooks locally:
jupyter lab notebooks