Skip to main content

dmipy: diffusion microstructure imaging in python

Project description

Build Status codecov Coverage Status Documentation Status

Dmipy: Diffusion Microstructure Imaging in Python

The Dmipy software package facilitates the reproducible estimation of diffusion MRI-based microstructure features. It does this by taking a completely modular approach to Microstructure Imaging. Using Dmipy you can design, fit, and recover the parameters of any multi-compartment microstructure model in usually less than 10 lines of code. Created models can be used to simulate and fit data for any PGSE-based dMRI acquisition, including single shell, multi-shell, multi-diffusion time and multi-TE acquisition schemes. Dmipy's main features include:

Complete Freedom in Model Design and Optimization

  • Any combination of tissue models (e.g. Gaussian, Cylinder, Sphere) and axon bundle representation (e.g. orientation-dispersed/diameter-distributed) can be combined into a multi-compartment model.
  • Any appropriate model can be orientation-dispersed and/or axon diameter-distributed.
  • Any predefined or custom parameter constraints or relations can be imposed.
  • Free choice of global optimizer to fit your model to the data (Brute-Force or Stochastic).
  • Fit the spherical mean of any multi-compartment model to the spherical mean of the data.
  • Generalized multi-compartment constrained spherical deconvolution.

Human Connectome Project Data Interface Dmipy enables you to directly download any HCP subject data using your own credentials.

Numba-Accelerated, Multi-Core processing Dmipy takes heavy advantage of Python's pathos multi-core processing and numba function compilation.

Documentation on Tissue and Microstructure Models We include documentation and illustrations of all tissue models and parameter distributions, as well as example implementations and results on HCP data for Ball and Stick, Ball and Racket, NODDI-Watson/Bingham, AxCaliber, Spherical Mean models and more.

Dipy Compatibility Dmipy is designed to be complementary for Dipy users. Dipy gradient tables can be directly used in Dmipy models, Dipy models can be used to give initial parameter guesses for Dmipy optimization, and Dmipy models that estimate Fiber Orientation Distributions (FODs) can be visualized and used for tractography in Dipy.

Dmipy allows the user to do Microstructure Imaging research at the highest level, while the package automatically takes care of all the coding architecture that is needed to fit a designed model to a data set. The Dmipy documentation can be found at http://dmipy.readthedocs.io/. If you use Dmipy for your research publications, we kindly request you cite this package at the reference at the bottom of this page.

Installation

You can install dmipy using pypi by typing in your terminal

  • python3 -m pip install dmipy

or you can manually

  • clone repository
  • python setup.py install

See solutions to common issues

Dependencies

Recommended to use Anaconda Python distribution.

  • numpy >= 1.13
  • scipy
  • dipy
  • cvxpy
  • boto (optional for HCP-AWS interface)
  • pathos (optional for multi-core processing)
  • numba (optional for faster functions)

Getting Started

To get a feeling for how to use Dmipy, we provide a few tutorial notebooks:

Explanations and Illustrations of Dmipy Contents

Biophysical Models and Distributions

Global Multi-Compartment Optimizers

Constrained Spherical Deconvolution Optimizers

Dmipy implementations of Microstructure Models in Literature

Dmipy uses HCP data to illustrate microstructure model examples. To reproduce these examples, dmipy provides a direct way to download HCP data (using your own AWS credentials) in the HCP tutorial.

Single Bundle Models

Crossing Bundle Models

Tumor Models

Spherical Mean-Based Models

Any Spherical Mean model can also estimate parametric FODs.

Spherical Deconvolution-Based Models

Constrained spherical deconvolution (CSD) models are primarily used for Fiber Orientation Distribution (FOD) estimation. Multi-Tissue CSD models improve FOD estimation by separating WM/GM/CSF signal contributions using multiple tissue response functions.

How to contribute to Dmipy

Dmipy's design is completely modular and can easily be extended with new models, distributions or optimizers. To contribute, view our contribution guidelines.

How to cite Dmipy

  • Primary Reference: Rutger Fick, Demian Wassermann and Rachid Deriche, "The Dmipy Toolbox: Diffusion MRI Multi-Compartment Modeling and Microstructure Recovery Made Easy", Frontiers in Neuroinformatics 13 (2019): 64.
  • Github Repository: Rutger Fick, Rachid Deriche, & Demian Wassermann. (2019, October 15). The Dmipy Toolbox: Diffusion MRI Multi-Compartment Modeling and Microstructure Recovery Made Easy (Version 1.0). Zenodo. http://doi.org/10.5281/zenodo.3490325

Package Acknowledgements

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dmipy-1.0.5.tar.gz (27.8 MB view details)

Uploaded Source

Built Distribution

dmipy-1.0.5-py3-none-any.whl (28.0 MB view details)

Uploaded Python 3

File details

Details for the file dmipy-1.0.5.tar.gz.

File metadata

  • Download URL: dmipy-1.0.5.tar.gz
  • Upload date:
  • Size: 27.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.6

File hashes

Hashes for dmipy-1.0.5.tar.gz
Algorithm Hash digest
SHA256 ab23e3643b47f2c162c0f5d11024d8fd3f67401f563acecb7e19839a8b54a47f
MD5 7106ad5e56b533047b3414810cd27985
BLAKE2b-256 53f3b85dd9bcebca2c7ef1aab5043ec753793e92193397c13adf687974f5a381

See more details on using hashes here.

File details

Details for the file dmipy-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: dmipy-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 28.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.6

File hashes

Hashes for dmipy-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 93d2169975ad4eae03be36d7dfa1d96b22466f8192e322a3aa3e377c8d122b63
MD5 4a596f421de92a84031a1aaea279c9e5
BLAKE2b-256 a629881fa5249898fe584be8f264beaa79dced0cb6a79b4b886c8f613717d673

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page