Skip to main content

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


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.0.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

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

pydra_dcm2niix-1.0.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file pydra-dcm2niix-1.0.0.tar.gz.

File metadata

  • Download URL: pydra-dcm2niix-1.0.0.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pydra-dcm2niix-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8b87c7b1fb0da37d5f2933d8ebae19ca4871a4f3bcb4dcccc763a6323f373e40
MD5 e9568686e0b19cce5c4c91a31d0f6bde
BLAKE2b-256 fe58177bddaf38cc643d83568b8fff29ef798bce5e7ddb87a804c1c0fe9ee9f7

See more details on using hashes here.

File details

Details for the file pydra_dcm2niix-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pydra_dcm2niix-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pydra_dcm2niix-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d24ae8fbe60fb0b4f77bde775f0a2dfe22355ce8403bc4ad676fc796e3c314c
MD5 06a49e539b9e9314c55089af6011c5b6
BLAKE2b-256 4392fe66a6b7592c46da50040d41ef6ba2973c8e2eb59ad13e8b89d8e316a33f

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