Skip to main content

pydra-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_dcm2niix-1.3.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_dcm2niix-1.3-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file pydra_dcm2niix-1.3.tar.gz.

File metadata

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

File hashes

Hashes for pydra_dcm2niix-1.3.tar.gz
Algorithm Hash digest
SHA256 f0529f2ed8b1c1f08a1201a47b6ed1fe43485ac611a4ac57acfe5b95eff84041
MD5 a8beb7ba73f89075604d71ac0671cdaa
BLAKE2b-256 5f7eca3e7d998295eac481c29ab26b39fb37539b3d62ade5322b619df015cd59

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydra_dcm2niix-1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for pydra_dcm2niix-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 beb4899f4d1966fa73753f98c40f235683f2a81fba0dc55a52d4b58a920a0058
MD5 a1e7d5db5c6f8ddfb00083e4c2b61319
BLAKE2b-256 da9f44d39aa29aa8d600de192acebcf977fd71f53e6362742e9f0e7408ee8868

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