Skip to main content

pydra-tasks-dcm2niix contains Pydra task specifications for the Dcm2niix 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydra_tasks_dcm2niix-1.3.1.tar.gz (24.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pydra_tasks_dcm2niix-1.3.1-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file pydra_tasks_dcm2niix-1.3.1.tar.gz.

File metadata

  • Download URL: pydra_tasks_dcm2niix-1.3.1.tar.gz
  • Upload date:
  • Size: 24.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for pydra_tasks_dcm2niix-1.3.1.tar.gz
Algorithm Hash digest
SHA256 93b5b8ffe4fdbee8a8d0f4ded4ec9f9049b9260fa6de6154bb93347cedd0f418
MD5 1dcb6762175e35bd6c1735493061cfa4
BLAKE2b-256 55d2e4fd26e75a776796106143a5303cecd7267b171c509edc3697005b90456e

See more details on using hashes here.

File details

Details for the file pydra_tasks_dcm2niix-1.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pydra_tasks_dcm2niix-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 97109007c2e29e5f848cce73ccdb4263f7704f6ee70548b767d786c16dbb1906
MD5 1bd5d1f7accae9b891d3a049edb84983
BLAKE2b-256 db9eedd150c756f567c8e804a41e78e2650754fc248622cba6a19d5b65698b7a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page