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), single-shell three-tissue constrained spherical deconvolution, and continuous-b multi-tissue CSD (ConSH) for non-shelled data.

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
consh = cs.consh_pipeline(dwi)                  # continuous-b multi-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.3.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.3.0
File Size Uploaded Provenance Actions
cs_dmri-0.3.0.tar.gz 788.7 kB With provenance Details for cs_dmri-0.3.0.tar.gz

Built distributions (wheels)

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

Total release size: 25.4 MB

Release files / cs_dmri-0.3.0.tar.gz

Download URL cs_dmri-0.3.0.tar.gz
Size 788.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e83f3f6a7bdc6facd45ae07594f518d02eb274f7859f89c852282c36b3dc68a7
BLAKE2b-256 checksum
How to use checksums
2d95cfb6d7b706fb24b1b444c6330921e4b16dea9496f96f71a25ea26d541c16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 13, 2026.

Transparency log

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

Download URL cs_dmri-0.3.0-cp39-abi3-win_amd64.whl
Size 4.8 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
92549f445c3a3709c76bd9ad730aba53f9c983a3c34da1f9ef0dc53d22242dbc
BLAKE2b-256 checksum
How to use checksums
0c9761ba8573f2c4eccdf93ff1d69d25ee14faad3bda7ba1e71c51a71d29ab93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 13, 2026.

Transparency log

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

Download URL cs_dmri-0.3.0-cp39-abi3-musllinux_1_2_x86_64.whl
Size 3.7 MB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
19152b155054bc86584d4426170626ca8caa539a9e6d4cf028e6dedb941204c0
BLAKE2b-256 checksum
How to use checksums
fe67920c10c1ae4c3a2dda235d66922cd7d688943e10509074aa93a028fe79ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 13, 2026.

Transparency log

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

Download URL cs_dmri-0.3.0-cp39-abi3-musllinux_1_2_aarch64.whl
Size 3.5 MB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
553b9ad636d51c0fad327f403b5bda09143a3ccddb5415f74ff320d5b3c6680b
BLAKE2b-256 checksum
How to use checksums
8b40fae826d5ff1ad0c438ec3d36d5735bbb3549128caab012762771e08edbf7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 13, 2026.

Transparency log

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

Download URL cs_dmri-0.3.0-cp39-abi3-manylinux_2_28_x86_64.whl
Size 3.5 MB
Tags CPython 3.9 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
28d1ef3da5cf28e24be65ead513a9293fde0996df76b5b30c4959e66bbac70eb
BLAKE2b-256 checksum
How to use checksums
04b96e8d7bd972085c613904ad400410eb65f9b4563badb10cdfb4898e627759
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 13, 2026.

Transparency log

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

Download URL cs_dmri-0.3.0-cp39-abi3-manylinux_2_28_aarch64.whl
Size 3.2 MB
Tags CPython 3.9 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
51a9838f136a5606f0c156de2dabb0b82e4f52792572fa7dfb498c2b9965795b
BLAKE2b-256 checksum
How to use checksums
a068ef7574235cf7c4cc00871f5dcbdafe9cee829008e46d8f59e0fa26a638e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 13, 2026.

Transparency log

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

Download URL cs_dmri-0.3.0-cp39-abi3-macosx_11_0_arm64.whl
Size 2.8 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2d2594d374414cecb36ea18a778ba0c995093f668b7a658a6a54814ed7334e55
BLAKE2b-256 checksum
How to use checksums
212a0346763055291e2da4948039d61c7f8bb568ad9b683243e324f2dacb24db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 13, 2026.

Transparency log

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

Download URL cs_dmri-0.3.0-cp39-abi3-macosx_10_12_x86_64.whl
Size 3.1 MB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
3b67ff1f37756ae51f56887c5fb0a02e90fc03cbc6a8e158194305745cdfe0a4
BLAKE2b-256 checksum
How to use checksums
e163ede97342d8a5a2c08f382e2fec7c89a54b5f0e77a108d79eba0a59652aef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 13, 2026.

Transparency log

Security for cs-dmri 0.3.0

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.

Full provenance

All 8 files in this release have been uploaded with provenance metadata.

Select from 8 files

Attestation for cs_dmri-0.3.0.tar.gz

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 Nov 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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