Provides a task interface for the popular dcm2niix DICOM to NIfTI converter
Project description
Pydra Dcm2Niix Task
This repository contains Pydra task interface for the dcm2niix
DICOM to NIfTI converter tool (https://github.com/rordenlab/dcm2niix).
Part of this effort is to establish a (mostly) declarative language for describing tasks that potentially have intricate rules for determining the availability and names from the choice of inputs.
Installation
pip install /path/to/pydra-dcm2niix/
Installation for developers
pip install -e /path/to/pydra-dcm2niix/[dev]
Basic Use
To run the dcm2niix
task
from pydra.tasks.dcm2niix import Dcm2Niix
task = Dcm2Niix(in_dir='/path/to/dicom/dir', out_dir='/path/to/create/nifti/output')
result = task()
However, the converter task interface will typically be used as the first step within larger Pydra workflows
from pydra import Workflow
from pydra.tasks.dcm2niix import Dcm2Niix
my_workflow = Workflow(name='my_workflow', input_spec=['in_dicom'])
my_workflow.add(
Dcm2Niix(name='converter', in_dir=my_workflow.lzin.in_dicom, out_dir='.'))
my_workflow.add(...)
my_workflow()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pydra-dcm2niix-1.0.0rc2.tar.gz
(21.9 kB
view hashes)
Built Distribution
Close
Hashes for pydra_dcm2niix-1.0.0rc2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2f782073780a4e16897bc57e681c1dbafa199687963ab482dbc99f51d9ac816 |
|
MD5 | 55942e3b9dd9fdb03a65c7553939ce38 |
|
BLAKE2b-256 | 3ec0716693a5db5a386314b63385c94c8f07f04b58f61ac538a025dee30e3119 |