Skip to main content

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

Metadata

Release files for pydra-dcm2niix 1.3

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-dcm2niix 1.3
File Size Uploaded
pydra_dcm2niix-1.3.tar.gz 24.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydra-dcm2niix 1.3
File Interpreter ABI Platform
pydra_dcm2niix-1.3-py3-none-any.whl Python 3 none any Details

Total release size: 32.4 kB

Release files / pydra_dcm2niix-1.3.tar.gz

Download URL pydra_dcm2niix-1.3.tar.gz
Size 24.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f0529f2ed8b1c1f08a1201a47b6ed1fe43485ac611a4ac57acfe5b95eff84041
BLAKE2b-256 checksum
How to use checksums
5f7eca3e7d998295eac481c29ab26b39fb37539b3d62ade5322b619df015cd59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Release files / pydra_dcm2niix-1.3-py3-none-any.whl

Download URL pydra_dcm2niix-1.3-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
beb4899f4d1966fa73753f98c40f235683f2a81fba0dc55a52d4b58a920a0058
BLAKE2b-256 checksum
How to use checksums
da9f44d39aa29aa8d600de192acebcf977fd71f53e6362742e9f0e7408ee8868
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21
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