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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file pydra_dcm2bids-0.0.4.tar.gz.

File metadata

  • Download URL: pydra_dcm2bids-0.0.4.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for pydra_dcm2bids-0.0.4.tar.gz
Algorithm Hash digest
SHA256 89b5747dc733b797c377e209c8ea41195989ff494b355d07a2e2bc204312060c
MD5 06df76a982c760ea31539adabda9a064
BLAKE2b-256 8ffc59c99bb988e6047c5ded0064eef03c670e7bd677e1dd73dc1ba3037c2b16

See more details on using hashes here.

File details

Details for the file pydra_dcm2bids-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for pydra_dcm2bids-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3c4beb2f5c31bddd9db8d06629a0e9d6b1c20382459a569442d34aa595071888
MD5 9829b8ddb328bfd59ee99e9d2ec8651c
BLAKE2b-256 4f58ab432d970736c24a00d3f516af85cb7ffe628d1784c298c7a2512264141c

See more details on using hashes here.

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