Skip to main content

pydra-dcm2bids

PyPI - Version PyPI - Python Version


Pydra tasks for dcm2bids.

Pydra is a dataflow engine which provides a set of lightweight abstractions for DAG construction, manipulation, and distributed execution.

dcm2bids is a tool which facilitates conversion from DICOM datasets to NIfTI files organized as BIDS.

Installation

pip install pydra-dcm2bids

A separate installation of dcm2bids and dcm2niix is required to use this package. Please review the following instructions.

dcm2bids can be installed alongside pydra-dcm2bids with:

pip install 'pydra-dcm2bids[all]'

Usage

from pydra.tasks import dcm2bids

task = dcm2bids.Dcm2Bids(
    dicom_dir="/path/to/dicom/dir",
    output_dir="/path/to/bids/dir",
    config_file="/path/to/config/file.json",
    participant_id="sub-01",
)

result = task()

You may check the following example of a configuration file.

Development

This project is managed with Hatch:

pipx install hatch

To run the test suite:

hatch run test:no-cov

To fix linting issues:

hatch run lint:fix

To check the documentation:

hatch run docs:serve --open-browser

License

pydra-dcm2bids is distributed under the terms of the Apache License, Version 2.0.

Metadata

Release files for pydra-dcm2bids 0.0.4

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

Source distribution (sdist)

Source distribution for pydra-dcm2bids 0.0.4
File Size Uploaded
pydra_dcm2bids-0.0.4.tar.gz 9.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydra-dcm2bids 0.0.4
File Interpreter ABI Platform
pydra_dcm2bids-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 16.3 kB

Release files / pydra_dcm2bids-0.0.4.tar.gz

Download URL pydra_dcm2bids-0.0.4.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
89b5747dc733b797c377e209c8ea41195989ff494b355d07a2e2bc204312060c
BLAKE2b-256 checksum
How to use checksums
8ffc59c99bb988e6047c5ded0064eef03c670e7bd677e1dd73dc1ba3037c2b16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.2

Release files / pydra_dcm2bids-0.0.4-py3-none-any.whl

Download URL pydra_dcm2bids-0.0.4-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c4beb2f5c31bddd9db8d06629a0e9d6b1c20382459a569442d34aa595071888
BLAKE2b-256 checksum
How to use checksums
4f58ab432d970736c24a00d3f516af85cb7ffe628d1784c298c7a2512264141c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

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