# 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()
```
Raw data
{
"_id": null,
"home_page": null,
"name": "pydra-tasks-dcm2niix",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": "\"Thomas G. Close\" <tom.g.close@gmail.com>",
"keywords": "pydra",
"author": null,
"author_email": "\"Thomas G. Close\" <tom.g.close@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/1f/22/98c6777e95b34e85a2d03a7d16aa0039082b911e22823f79bb17a4942bf3/pydra_tasks_dcm2niix-1.4.tar.gz",
"platform": null,
"description": "# Pydra Dcm2Niix Task\n\nThis repository contains Pydra task interface for the `dcm2niix`\nDICOM to NIfTI converter tool (https://github.com/rordenlab/dcm2niix).\n\nPart of this effort is to establish a (mostly) declarative language for describing tasks that\npotentially have intricate rules for determining the availability and names from the choice of\ninputs.\n\n## Installation\n```\npip install /path/to/pydra-dcm2niix/\n```\n\n### Installation for developers\n```\npip install -e /path/to/pydra-dcm2niix/[dev]\n```\n\n## Basic Use\n\nTo run the `dcm2niix` task\n\n```\nfrom pydra.tasks.dcm2niix import Dcm2Niix\n\ntask = Dcm2Niix(in_dir='/path/to/dicom/dir', out_dir='/path/to/create/nifti/output')\nresult = task()\n```\n\nHowever, the converter task interface will typically be used as the first step within larger Pydra workflows\n\n```\nfrom pydra import Workflow\nfrom pydra.tasks.dcm2niix import Dcm2Niix\n\nmy_workflow = Workflow(name='my_workflow', input_spec=['in_dicom'])\n\nmy_workflow.add(\n Dcm2Niix(name='converter', in_dir=my_workflow.lzin.in_dicom, out_dir='.'))\nmy_workflow.add(...)\n\nmy_workflow()\n```\n",
"bugtrack_url": null,
"license": "Copyright 2021 Nipype developers\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.",
"summary": "pydra-tasks-dcm2niix contains Pydra task specifications for the Dcm2niix converter",
"version": "1.4",
"project_urls": null,
"split_keywords": [
"pydra"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "4aa08a1955e2ca4f3c53ca092a544a9775265ec0a35591f04cbb20bbf1443e31",
"md5": "f9df63f78934469597887e1e95db9164",
"sha256": "7d1f79a9b91cf97c1d878c0a013a060a1849f8d059a9ce623d33944cf4f86de8"
},
"downloads": -1,
"filename": "pydra_tasks_dcm2niix-1.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f9df63f78934469597887e1e95db9164",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 7573,
"upload_time": "2025-07-15T14:28:16",
"upload_time_iso_8601": "2025-07-15T14:28:16.956003Z",
"url": "https://files.pythonhosted.org/packages/4a/a0/8a1955e2ca4f3c53ca092a544a9775265ec0a35591f04cbb20bbf1443e31/pydra_tasks_dcm2niix-1.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "1f2298c6777e95b34e85a2d03a7d16aa0039082b911e22823f79bb17a4942bf3",
"md5": "44e0d5bee48c8a4b7440a07eac1b6997",
"sha256": "f09af70776f11f928bb04dbf651bd3746d3225eba07f5ee6df0b0d8d9701abf5"
},
"downloads": -1,
"filename": "pydra_tasks_dcm2niix-1.4.tar.gz",
"has_sig": false,
"md5_digest": "44e0d5bee48c8a4b7440a07eac1b6997",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 24909,
"upload_time": "2025-07-15T14:28:18",
"upload_time_iso_8601": "2025-07-15T14:28:18.195261Z",
"url": "https://files.pythonhosted.org/packages/1f/22/98c6777e95b34e85a2d03a7d16aa0039082b911e22823f79bb17a4942bf3/pydra_tasks_dcm2niix-1.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-15 14:28:18",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pydra-tasks-dcm2niix"
}