hMRI-toolbox

View the Project on GitHub hMRI-group/hMRI-toolbox

A toolbox for quantitative MRI and in vivo histology using MRI (hMRI)

Background

Neuroscience and clinical researchers are increasingly interested in quantitative magnetic resonance imaging (qMRI) due to its sensitivity to micro-structural properties of brain tissue such as axon, myelin, iron and water concentration (Weiskopf et al. 2015,Weiskopf et al. 2021).

The hMRI-toolbox is an easy-to-use open-source and flexible tool for qMRI data handling and processing. It allows the estimation of high-quality multi-parameter qMRI maps (longitudinal and effective transverse relaxation rates (R1 and R2*), proton density (PD) and magnetisation transfer (MT) saturation (MTsat); Weiskopf et al. 2013), followed by spatial registration in common space for statistical analysis (Draganski et al. 2011). It is embedded in the Statistical Parametric Mapping (SPM) framework, meaning that it can be readily combined with existing SPM toolboxes for estimating diffusion MRI parameter maps, and it benefits from the extensive range of established SPM tools for high-accuracy spatial registration and statistical inferences.

The qMRI maps generated by the toolbox can be used for quantitative parameter analysis and accurate delineation of cortical and subcortical brain structures. They are key input parameters for biophysical models designed to estimate tissue microstructure properties such as the MR g-ratio and to derive standard and novel MRI biomarkers (Mohammadi et al. 2015). The hMRI-toolbox therefore represents a first step towards in vivo histology using MRI (hMRI) and is being extended further in this direction.

Licence

The hMRI-toolbox is free but copyright software, distributed under the terms of the GNU General Public License as published by the Free Software Foundation (either version 2, as given in file LICENSE, or at your option, any later version). Further details on “copyleft” can be found at www.gnu.org/copyleft/. In particular, the hMRI-toolbox is supplied as is. No formal support or maintenance is provided or implied.

Download

The latest release (as well as previous- and pre-releases) of the hMRI-toolbox Matlab code can be downloaded as a zip archive (.zip) or a Tarball (.tar.gz) from the releases page.

A compiled version of the toolbox which does not require a Matlab license is also provided and can be run using the Neurodesk framework; see here for more details.

Supporting Material

Wiki-Pages

Online documentation is available as a Wiki. It provides guidelines and instructions for installation and usage of the hMRI-toolbox. These pages are work-in-progress and updated on a regular basis.

hMRI-Toolbox Paper

For a reference on the scientific background, methods and concepts please use the hMRI-toolbox paper and cite it when publishing results compiled with the hMRI-toolbox.

Sample Dataset and MRI Acquisition Protocols

A full example dataset can be obtained from one of the following links: (GitHub | OwnCloud | Mega). The description of the example dataset is also available in this paper, which should be cited when publishing results using the example dataset.

A qMRI brain imaging data structure (BIDS) compatible version of the example dataset can be downloaded from the ds-mpm folder at https://osf.io/k4bs5/.

Several example MRI protocols (standard MPM protocol using customised Siemens sequences, MPM protocols implemented using Siemens and Philips product sequences) as well as a setup (for Siemens 3T MRI) and usage tutorial are available on GitHub. Please be aware that we provide these protocols and information without any warranty. They must be considered work-in-progress, possibly non-optimal protocols and information.

E-Mail List

We have created an e-mail list for users of the hMRI-toolbox: HMRI-TOOLBOX@JISCMAIL.AC.UK. Registered users can login to view the message archive on the list homepage.

Workshops

Materials from the recent hMRI toolbox workshop in Bordeaux (part of the OHBM OSSIG 2026 BrainHack) can be found here.

Developers of the hMRI-Toolbox

The development of the hMRI-toolbox is an international collaborative effort including the following developers and sites:

References

Acknowledgments and Funding