Skip to main content

Pydra tasks for dcm2bids

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydra_dcm2bids-0.0.4.tar.gz (9.2 kB view hashes)

Uploaded Source

Built Distribution

pydra_dcm2bids-0.0.4-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page