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.4.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.4-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pydra_tasks_dcm2niix-1.4.tar.gz
Algorithm Hash digest
SHA256 f09af70776f11f928bb04dbf651bd3746d3225eba07f5ee6df0b0d8d9701abf5
MD5 44e0d5bee48c8a4b7440a07eac1b6997
BLAKE2b-256 1f2298c6777e95b34e85a2d03a7d16aa0039082b911e22823f79bb17a4942bf3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydra_tasks_dcm2niix-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7d1f79a9b91cf97c1d878c0a013a060a1849f8d059a9ce623d33944cf4f86de8
MD5 f9df63f78934469597887e1e95db9164
BLAKE2b-256 4aa08a1955e2ca4f3c53ca092a544a9775265ec0a35591f04cbb20bbf1443e31

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