Skip to main content

cs_dmri

Python interface to cs_dmri, a Rust library for the analysis of diffusion MRI data: image quality control, 3D-SHORE reconstruction, robust diffusion tensor estimation (RESTORE) and single-shell three-tissue constrained spherical deconvolution.

pip install cs_dmri
import cs_dmri as cs

dwi = cs.DWI.from_files("dwi.nii.gz", "dwi.bval", "dwi.bvec", mask="mask.nii.gz")

qc = dwi.qc()                                   # image-quality metrics
qc.to_dict()                                    # one row of a QC table
cs.QCReport.column_descriptions()               # its data dictionary

tensor = cs.RestoreModel(dwi.gtab).fit(dwi)     # FA, MD, S0, principal direction
shore = cs.ShoreModel(dwi.gtab).fit(dwi)        # 3D-SHORE coefficients and diagnostics
ss3t = cs.ss3t_pipeline(dwi)                    # single-shell three-tissue CSD

ss3t.export("ss3t.odx")                         # ODX; also .fz, .fib.gz, .pam5, .mif

Documentation: https://cs-dmri.readthedocs.io

License: (MIT OR Apache-2.0) AND MPL-2.0 AND BSD-3-Clause; see the documentation for details.

Metadata

Release files for cs-dmri 0.2.0

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

Source distribution (sdist)

Source distribution for cs-dmri 0.2.0
File Size Uploaded
cs_dmri-0.2.0.tar.gz 698.4 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for cs-dmri 0.2.0
File
cs_dmri-0.2.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
cs_dmri-0.2.0-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details
cs_dmri-0.2.0-cp39-abi3-musllinux_1_2_aarch64.whl CPython 3.9 abi3 Linux musl 1.2+ ARM64 Details
cs_dmri-0.2.0-cp39-abi3-manylinux_2_28_x86_64.whl CPython 3.9 abi3 Linux glibc 2.28+ x86-64 Details
cs_dmri-0.2.0-cp39-abi3-manylinux_2_28_aarch64.whl CPython 3.9 abi3 Linux glibc 2.28+ ARM64 Details
cs_dmri-0.2.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details
cs_dmri-0.2.0-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details

Total release size: 24.0 MB

Release files / cs_dmri-0.2.0.tar.gz

Download URL cs_dmri-0.2.0.tar.gz
Size 698.4 kB
Tags Source
SHA-256 checksum
How to use checksums
84a7d5ef25afd44498de455c8199865c17b878b422e89d118ab5db827e90d4ba
BLAKE2b-256 checksum
How to use checksums
42c545a5604d70d6269dcfdc3d1c3890d7c2cd08f41b4af23ca4789bc1ec4696
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / cs_dmri-0.2.0-cp39-abi3-win_amd64.whl

Download URL cs_dmri-0.2.0-cp39-abi3-win_amd64.whl
Size 4.6 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
96b483dd32c27bd14a6e60c74429401d675c29343a44ed59f40ddcb59ce5e30c
BLAKE2b-256 checksum
How to use checksums
2554bdbf3bda52ddd9217f26cf2f336166d2f91568a854458d43cac1f5e534c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / cs_dmri-0.2.0-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL cs_dmri-0.2.0-cp39-abi3-musllinux_1_2_x86_64.whl
Size 3.5 MB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
b345f9177badf49ceda7bfc0fd278864d1e6e35ee7a3ddf31c959f7439eaa51b
BLAKE2b-256 checksum
How to use checksums
63dfc5c411f952846a5985a88ff0289f3814cd3beb2e2c79cd192c9f87c769d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / cs_dmri-0.2.0-cp39-abi3-musllinux_1_2_aarch64.whl

Download URL cs_dmri-0.2.0-cp39-abi3-musllinux_1_2_aarch64.whl
Size 3.3 MB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
42c6a64bfbccc56870c45ebf56a563dc43b7adcec6cd958a0baaf268445029ec
BLAKE2b-256 checksum
How to use checksums
173aa333198dc7fa8befd2a1493f2beac868eb21a7a80c079fcf6555cb4ba204
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / cs_dmri-0.2.0-cp39-abi3-manylinux_2_28_x86_64.whl

Download URL cs_dmri-0.2.0-cp39-abi3-manylinux_2_28_x86_64.whl
Size 3.3 MB
Tags CPython 3.9 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
9562665e1993092dcb7ed92ee019723b9493110de9b98c928866380fac5a8ec4
BLAKE2b-256 checksum
How to use checksums
edef21a2fd382244a0e8c33ab96f90ddd7ae979b755b7a2e50879e91325a346d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / cs_dmri-0.2.0-cp39-abi3-manylinux_2_28_aarch64.whl

Download URL cs_dmri-0.2.0-cp39-abi3-manylinux_2_28_aarch64.whl
Size 3.0 MB
Tags CPython 3.9 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
ebdeec79141fab6c11bc47751d2c589b0fcc5384ac57dcef5225004905d11929
BLAKE2b-256 checksum
How to use checksums
6c80defa1c965c4cd0a72aa375a127447ec08752ae3864f75834309f85186fc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / cs_dmri-0.2.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL cs_dmri-0.2.0-cp39-abi3-macosx_11_0_arm64.whl
Size 2.6 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
10f3f0d9b45cead1e83eeda050c8563eb0d49cf5aeaeb2da98e347c565cb36ac
BLAKE2b-256 checksum
How to use checksums
8dd2e0ebc08e6d4811da81091e15ca076268088f9e3336129bf0af94f1af0639
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / cs_dmri-0.2.0-cp39-abi3-macosx_10_12_x86_64.whl

Download URL cs_dmri-0.2.0-cp39-abi3-macosx_10_12_x86_64.whl
Size 2.9 MB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
21d8b089f4395010971ca2ab210b43d8af8031700b9d0d3a1258b23f4113278b
BLAKE2b-256 checksum
How to use checksums
f95bbbc9eddc70293b6b71f0f9dc323ea19402427412b7ed19043d2f8f8b940f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

8 release files

0.1.0

8 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