Skip to main content

рџ’Ў 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.

Metadata

Release files for dvoryan 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dvoryan 0.0.3
File Size Uploaded
dvoryan-0.0.3.tar.gz 13.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dvoryan 0.0.3
File Interpreter ABI Platform
dvoryan-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 34.5 kB

Release files / dvoryan-0.0.3.tar.gz

Download URL dvoryan-0.0.3.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
012f3e9fda3993d1dff6867b08f3c0974c43ed53a1644559e7fd9eb51d067fb6
BLAKE2b-256 checksum
How to use checksums
732f2f4cd77eb3589bdb63353da629552da411ff4c81c90bd5cfced35d7ea351
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.12

Release files / dvoryan-0.0.3-py3-none-any.whl

Download URL dvoryan-0.0.3-py3-none-any.whl
Size 21.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b3eafd68ab4a6f743f5926cddb7b260b13bbb3dd005604aa9460f46d5adbf85
BLAKE2b-256 checksum
How to use checksums
f601c849934c93c6e32257a5e4bde5346812456595d816ced13dbc9ccc624ff2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.12

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page