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-tasks-dcm2niix 1.4

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-tasks-dcm2niix 1.4
File Size Uploaded
pydra_tasks_dcm2niix-1.4.tar.gz 24.9 kB Details

Built distribution (wheel)

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

Total release size: 32.5 kB

Release files / pydra_tasks_dcm2niix-1.4.tar.gz

Download URL pydra_tasks_dcm2niix-1.4.tar.gz
Size 24.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f09af70776f11f928bb04dbf651bd3746d3225eba07f5ee6df0b0d8d9701abf5
BLAKE2b-256 checksum
How to use checksums
1f2298c6777e95b34e85a2d03a7d16aa0039082b911e22823f79bb17a4942bf3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Release files / pydra_tasks_dcm2niix-1.4-py3-none-any.whl

Download URL pydra_tasks_dcm2niix-1.4-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d1f79a9b91cf97c1d878c0a013a060a1849f8d059a9ce623d33944cf4f86de8
BLAKE2b-256 checksum
How to use checksums
4aa08a1955e2ca4f3c53ca092a544a9775265ec0a35591f04cbb20bbf1443e31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Release history Release notifications | RSS feed

This release

1.4 This release

2 release files

1.3.1

2 release files

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