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.1.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.1.0
File Size Uploaded
cs_dmri-0.1.0.tar.gz 691.0 kB Details

Built distributions (wheels)

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

Total release size: 23.9 MB

Release files / cs_dmri-0.1.0.tar.gz

Download URL cs_dmri-0.1.0.tar.gz
Size 691.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8dcb5a9ca28fd2fd66f14a6fe692a9de35b3df9a4bb64505604cc6bc9557007b
BLAKE2b-256 checksum
How to use checksums
c0ce9d3fe9c861542fca4576a252bf19896c10fe8066986397305d05ea174a25
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.1.0-cp39-abi3-win_amd64.whl

Download URL cs_dmri-0.1.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
ec2a05a2aac1b680db9aa4b15d090b2964272c54df1e58e24c7da527e8938927
BLAKE2b-256 checksum
How to use checksums
58a5de690350b45b8a4c46d4b7cb6b35bf348ef4e3dae122ae40754451e005a6
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.1.0-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL cs_dmri-0.1.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
fb847c676f8efa13c13bb78f62ebeee65dbff3c0af3c679f1b42a0f1896a90ff
BLAKE2b-256 checksum
How to use checksums
b965702cb642916912a55721eed402427bbb8a79adc316a984da3991c41079b9
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.1.0-cp39-abi3-musllinux_1_2_aarch64.whl

Download URL cs_dmri-0.1.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
43895462d805b96d855bc82ed1aa5d15093ad1e992a6e9b3e8c6d107ed059899
BLAKE2b-256 checksum
How to use checksums
383d2966063f88b741476c293ac2e23bddda162b5340afe795c7eba981808339
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.1.0-cp39-abi3-manylinux_2_28_x86_64.whl

Download URL cs_dmri-0.1.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
d82d0feb82b8622b82770344b2aef8b48104c17d4ef4d14b2b7b8c6df56d330d
BLAKE2b-256 checksum
How to use checksums
cb0322c7d5d67da1e23198bca0a90c97641c69fe8d693642b6670558bb1b09b0
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.1.0-cp39-abi3-manylinux_2_28_aarch64.whl

Download URL cs_dmri-0.1.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
12007a7a6d4f406eb6d9fc25c5cbd7fc1a7d16a9c9d37126e8ef2b7a620024af
BLAKE2b-256 checksum
How to use checksums
1374f8c619410978b9fa96ddba2faf06126ef15634fd39f92bab1ccbc4a4fc11
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.1.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL cs_dmri-0.1.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
48fedd844cc60d51aa06e626969c9f625002b605e7d15d3acd03c45be9d93b36
BLAKE2b-256 checksum
How to use checksums
f95043af021291406d1f32bfca0024e72ffc6afeb3a5dca903f2c2fb3004ef95
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.1.0-cp39-abi3-macosx_10_12_x86_64.whl

Download URL cs_dmri-0.1.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
0fbaa90bc422f399b28e9c2cc9f39a9a7af691d5c5194a98680005378dc69adc
BLAKE2b-256 checksum
How to use checksums
0d3415f198113f5cf94c1ad5caf35f8c4e15a565c6d0b686091a8723dc95e454
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

0.2.0

8 release files

This release

0.1.0 This release

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