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

Uploaded Source

Built Distribution

pydra_dcm2niix-1.2.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pydra-dcm2niix-1.2.1.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for pydra-dcm2niix-1.2.1.tar.gz
Algorithm Hash digest
SHA256 59b5155a1e164f10c0da4c39256e58c5fc9719607e43f1f37dcf4797a6de3936
MD5 2d694f12960b0406558650a88a70e1c2
BLAKE2b-256 44192a5724ed64f5e45e0d861d379dd5de56a41f434493e6b125356971a8d2fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydra_dcm2niix-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 efc0e27113a1a2f4c6500136f4fb451927792032eb26f109865da2aacff6de7e
MD5 7ab221c4982fbb2fbce38d6227648ffa
BLAKE2b-256 0e77bab643cd16a3acc9ac14610cc9cde2f8ec903111baafe09c01dbebb29ca0

See more details on using hashes here.

Supported by

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