Skip to main content

MRax logo

MRax

DOI Documentation

MRax is a JAX-based Python library for quantitative MRI research. It combines unit-aware experiments and studies, differentiable signal models, Optax and proximal optimizers, MRI reconstruction, analysis, and portable .mrax bundles.

MRax is intended for research use. Coding agents assisted development.

Install

pip install mrax

The base package includes CPU fitting, reconstruction, analysis, common MRI I/O and storage. Install mrax[full] for specialized raw importers, registration, DIPY interoperability and plotting, or mrax[gui] for the browser GUI and its scientific tools. Start the latter with mrax-gui. See the GUI user guide for usage.

Optional BM3D/BM4D denoisers use pip install "mrax[denoise-external]" under their upstream non-commercial licenses. See installation and development containers for platform and GPU setup.

Quick example

import jax.numpy as jnp

from mrax.core import run_fit
from mrax.data_struct import DataSet, Quantity
from mrax.library import build_default_experiment, make_t2_se_model

te = jnp.asarray([8.0, 24.0, 48.0, 96.0])
experiment = build_default_experiment(
    "mse", frame_count=te.size, spatial_shape=(2, 2),
    observables={"TE": Quantity(te, "ms")},
)
dataset = DataSet(data=jnp.ones((te.size, 2, 2)), name="demo")
fields, history = run_fit(
    experiment, make_t2_se_model(scale=1.0), dataset,
    num_steps=20, step_size=0.03,
)

Documentation

Visit the MRax documentation for details on usage and development.

How to cite

If you use MRax in your research, please cite the specific release you used. Select the release used from MRax on Zenodo and copy its version-specific citation.

For a general reference to the project, use:

Lippe, C. MRax: JAX-based tools for quantitative MRI research [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.21723327

Metadata

Release files for mrax 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mrax 0.4.0
File Size Uploaded Provenance Actions
mrax-0.4.0.tar.gz 2.2 MB With provenance Details for mrax-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mrax 0.4.0
File Interpreter ABI Platform Actions
mrax-0.4.0-py3-none-any.whl Python 3 none any Details for mrax-0.4.0-py3-none-any.whl

Total release size: 3.1 MB

Release files / mrax-0.4.0.tar.gz

Download URL mrax-0.4.0.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
fde3a6446d3c8e1e971453cee2f71e8c5ac2a91c5ac1657603e2b6661616c3e8
BLAKE2b-256 checksum
How to use checksums
eb0cca026ac3071133ee627a0a9f006d3aa1437001d5e1e2d479a8c7bfcfeebc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / mrax-0.4.0-py3-none-any.whl

Download URL mrax-0.4.0-py3-none-any.whl
Size 870.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc14b7616370f2f8fc29f240350ef20dbc51996c3ce0e5addd29fb95cfbde66f
BLAKE2b-256 checksum
How to use checksums
6d8373184a011fa1b682ee88d95d69c00d37f5cde953951c8e49bef31b32c7d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for mrax 0.4.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mrax-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page