MRI-Toolkit
MRI-toolkit provides a set of features dedicated to MRI data post-processing and analysis.
The implementation is inspired by gMRI2FEM, and some of the code is taken from that project. However, MRI-toolkit is designed to be more modular and extensible, with a focus on providing a user-friendly command-line interface (CLI) for common MRI processing tasks.
Installation
pip install mritk
Documentation
The documentation is available at https://scientificcomputing.github.io/mri-toolkit/. It includes detailed usage instructions, API references, and examples.
Quick Start
To get started with mri-toolkit, you can use the command-line interface (CLI) to inspect and analyze your MRI data.
Features
-
File Inspection: detailed NIfTI header analysis (affine, voxel size, shape).
-
$T_1$ Mapping: Estimate $T_1$ relaxation times using Look-Locker or Mixed sequences, and seamlessly merge them into comprehensive Hybrid $T_1$ maps.
-
$R_1$ Relaxation Rates: Convert $T_1$ maps into $R_1$ relaxation rate maps for linear scaling with tracer concentrations.
-
Concentration Mapping: Calculate the spatial distribution of contrast agents (e.g., gadobutrol) utilizing pre- and post-contrast $T_1$ or $R_1$ maps.
-
Statistics: Compute comprehensive statistics (volume, mean, median, std, percentiles) for MRI regions based on segmentation maps.
-
Visualization:
-
Terminal: View orthogonal slices (Sagittal, Coronal, Axial) directly in your console.
-
Napari: Launch the Napari viewer for interactive 3D inspection.
-
-
Data Management: Utilities to download datasets.
Contributing
Contributions to MRI-toolkit are welcome! If you have an idea for a new feature, improvement, or bug fix, please open an issue or submit a pull request on GitHub. For more details on how to contribute, please see the Contributing Guide.
License
MRI-toolkit is licensed under the MIT License. See the LICENSE file for more information.
Metadata
Release files for mritk 0.4.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mritk-0.4.3.tar.gz | 74.4 kB | With provenance | Details for mritk-0.4.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mritk-0.4.3-py3-none-any.whl | Python 3 | none | any | Details for mritk-0.4.3-py3-none-any.whl |
Total release size: 137.0 kB
Release files / mritk-0.4.3.tar.gz
| Download URL | mritk-0.4.3.tar.gz |
|---|---|
| Size | 74.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1cccc6ebd633faed4c8151f5688497ff1f763b395423ff7990137fff64f532e
|
|
BLAKE2b-256 checksum How to use checksums |
2624965bb8f78ed0daf164c94c7d2f10b221749206e01020ac397d03165343a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 30, 2026.
Transparency logRelease files / mritk-0.4.3-py3-none-any.whl
| Download URL | mritk-0.4.3-py3-none-any.whl |
|---|---|
| Size | 62.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c96fadde8e81b99e7d0230028f24bed674496762d2d1d7ecc09a66c2e1d4b9e5
|
|
BLAKE2b-256 checksum How to use checksums |
d8e337fb1c91958477c83901e962fb4f6fac916ddfea659c7b5983d1a321ad3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 30, 2026.
Transparency logSecurity for mritk 0.4.3
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.
Attestation for mritk-0.4.3.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 May 30, 2026.
Transparency logA 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.