Skip to content

SpinDoctorDiffusion MRI simulations

The Bloch-Torrey equation on finite element meshes of cells and tissue, in Julia

SpinDoctor

What is SpinDoctor? ​

SpinDoctor simulates diffusion magnetic resonance imaging (dMRI) in biological tissue [1]. The water in the tissue diffuses in compartments (cells, their layers, and the extracellular space) separated by permeable membranes, and the magnetization of its spins follows the Bloch-Torrey partial differential equation. SpinDoctor solves this equation with P1 finite elements on meshes created by TetGen [2] and Triangle, and computes:

  • the dMRI signal for scalar (PGSE, double PGSE, OGSE) and arbitrary three-dimensional gradient sequences;

  • apparent diffusion coefficients (ADC): by fitting the signal, with the homogenized ADC model, with the matrix formalism (Laplace eigenfunctions), and with the short diffusion time approximation;

  • analytical solutions for layered plates, cylinders and spheres, for validation.

The compartments may have different initial spin densities, diffusion tensors, T2 relaxation and permeabilities [3].

This is the Julia version of the SpinDoctor MATLAB toolbox.

Citing ​

If you use SpinDoctor in your research, please cite [1], and [4] for the matrix formalism.