Skip to main content

dcmri

https://github.com/dcmri/dcmri/actions/workflows/pytest-actions.yaml/badge.svg?branch=dev https://codecov.io/gh/plaresmedima/dcmri/graph/badge.svg?token=DLVVTWQ0HA https://img.shields.io/pypi/v/dcmri?label=pypi%20package https://img.shields.io/pypi/dm/dcmri https://img.shields.io/badge/License-Apache_2.0-blue.svg

A python toolbox for dynamic contrast MRI

Installation

pip install dcmri

Typical usage: ROI-based analysis

import dcmri as dc

# Generate some test data
time, aif, roi, _ = dc.fake_tissue(CNR=50)

# Construct a tissue
tissue = dc.Tissue(aif=aif, t=time)

# Train the tissue on the data
tissue.train(time, roi)

# Check the fit to the data
tissue.plot(time, roi)
https://dcmri.org/_images/tissue.png
# Print the fitted parameters
tissue.print_params(round_to=3)
--------------------------------
Free parameters with their stdev
--------------------------------

Blood volume (vb): 0.018 (0.002) mL/cm3
Interstitial volume (vi): 0.174 (0.004) mL/cm3
Permeability-surface area product (PS): 0.002 (0.0) mL/sec/cm3

----------------------------
Fixed and derived parameters
----------------------------

Plasma volume (vp): 0.01 mL/cm3
Interstitial mean transit time (Ti): 74.614 sec

Typical usage: pixel-based analysis

# Generate some test data
n = 128
time, signal, aif, _ = dc.fake_brain(n)

# Construct a tissue array
image = dc.TissueArray(
    (n,n),
    aif=aif,
    t=time,
    kinetics='2CU',
    verbose=1,
)

# Train the tissue array on the data
image.train(time, signal)

# Plot the parameter maps
image.plot(time, signal)
https://dcmri.org/_images/pixel_2cu.png

License

Released under the Apache 2.0 license:

Copyright (C) 2023-2024 dcmri developers

Metadata

Release files for dcmri 0.6.20

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

Source distribution (sdist)

Source distribution for dcmri 0.6.20
File Size Uploaded Provenance Actions
dcmri-0.6.20.tar.gz 157.0 kB Without provenance Details for dcmri-0.6.20.tar.gz

Built distribution (wheel)

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

Total release size: 312.4 kB

Release files / dcmri-0.6.20.tar.gz

Download URL dcmri-0.6.20.tar.gz
Size 157.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bd5ba47655d26148606d90c5c66a9283b9fc99b2f83b41a2adcd4176932f155e
BLAKE2b-256 checksum
How to use checksums
7f0637d94414153a8f59dc2a86829be69fc563ae4f62a9c9eed40d7c53061b28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release files / dcmri-0.6.20-py3-none-any.whl

Download URL dcmri-0.6.20-py3-none-any.whl
Size 155.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0171ace9a4e8c0fe43d05bf5cb200b44f4f681c19d948d580958445ac5063723
BLAKE2b-256 checksum
How to use checksums
756fd245f47e5fb48c2b023866c1534c9397d96fffab3968396c302b023774dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Security for dcmri 0.6.20

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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