Skip to main content

Reproducible and efficient diffusion kurtosis imaging in Python.

Project description

рџ’Ў Instead of the code in this repository, it is recommended to use the non-negativity-constrained diffusion kurtosis imaging available in, for example, DIPY.

dkmri.py

dkmri.py stands for diffusion kurtosis magnetic resonance imaging in Python. It is a Python package for estimating diffusion and kurtosis tensors from diffusion-weighted magnetic resonance data. The estimation is performed using regularized non-linear optimization informed by a fully-connected feed-forward neural network that is trained to learn the mapping from data to kurtosis metrics. Details can be found in the arXiv preprint and source code.

This software can be used from the command line or in a Python interpreter.

  • The command-line interface does not require any knowledge about Python.
  • Python interface is for people comfortable with basic Python programming.

Installation

First, make sure you have installed Python.

If you just want to use the command-line interface, the recommended way of installing dkmri.py is to use pipx:

pipx install dkmri

pipx automatically creates an isolated environment in which the dependencies are installed.

If you want to use the Python interface, you can use pip (you should install dkmri.py in an isolated environment using venv or conda to avoid dependency issues):

pip install dkmri

Usage example

Command-line interface

The command for using dkmri.py is

dkmri.py data bvals bvecs optional-arguments

where data, bvals, and bvecs are the paths of the files containing the diffusion-weighted data, b-values, and b-vectors, and optional-arguments is where to define things such as which parameter maps to save.

For example, a command for computing a mean kurtosis map from data.nii.gz and saving it in mk.nii.gz could be

dkmri.py data.nii.gz bvals.txt bvecs.txt -mask mask.nii.gz -mk mk.nii.gz

To see a full description of the arguments, execute the following:

dkmri.py -h

Python interface

See the example notebook.

Support

If you have questions, found bugs, or need help, please open an issue on Github.

Citation

If you find this repository useful in work that leads to a scientific publication, please cite the arXiv preprint.

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

dvoryan-0.0.1.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

dvoryan-0.0.1-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file dvoryan-0.0.1.tar.gz.

File metadata

  • Download URL: dvoryan-0.0.1.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for dvoryan-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1d3c6d495d5c9c5d39d1dadeb920a0477a9bb2be8631719c3b4235c75c170427
MD5 73856503b038851ab7d78c93036b2db5
BLAKE2b-256 a993b4545b95a041818b654efe747419a6f0f92dfdfb0a02779d873b2e885762

See more details on using hashes here.

File details

Details for the file dvoryan-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: dvoryan-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for dvoryan-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 09604bbfbadbf1986fb92359eb44cfc2197c0494bdec3535b2d98c7a2eaaa3eb
MD5 702707be81ff14c85bd771c58e324f66
BLAKE2b-256 8b396e03cee0e17defe02bb2e39262bd364dad744a31ff5eadb8fb4b67a4b3d4

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