Pydra tasks for dcm2bids
Project description
pydra-dcm2bids
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89b5747dc733b797c377e209c8ea41195989ff494b355d07a2e2bc204312060c
|
|
| MD5 |
06df76a982c760ea31539adabda9a064
|
|
| BLAKE2b-256 |
8ffc59c99bb988e6047c5ded0064eef03c670e7bd677e1dd73dc1ba3037c2b16
|
File details
Details for the file pydra_dcm2bids-0.0.4-py3-none-any.whl.
File metadata
- Download URL: pydra_dcm2bids-0.0.4-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c4beb2f5c31bddd9db8d06629a0e9d6b1c20382459a569442d34aa595071888
|
|
| MD5 |
9829b8ddb328bfd59ee99e9d2ec8651c
|
|
| BLAKE2b-256 |
4f58ab432d970736c24a00d3f516af85cb7ffe628d1784c298c7a2512264141c
|