pydra-dcm2bids


Namepydra-dcm2bids JSON
Version 0.0.4 PyPI version JSON
download
home_page
SummaryPydra tasks for dcm2bids
upload_time2023-03-19 18:58:36
maintainer
docs_urlNone
author
requires_python>=3.7
license
keywords bids dicom pydra
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pydra-dcm2bids

[![PyPI - Version][pypi-version]][pypi-project]
[![PyPI - Python Version][pypi-pyversions]][pypi-project]

----

Pydra tasks for dcm2bids.

[Pydra][pydra] is a dataflow engine which provides
a set of lightweight abstractions for DAG
construction, manipulation, and distributed execution.

[`dcm2bids`][dcm2bids] is a tool which facilitates
conversion from DICOM datasets to NIfTI files
organized as [BIDS][bids].

## Installation

```console
pip install pydra-dcm2bids
```

A separate installation of `dcm2bids` and `dcm2niix` is required to use this package.
Please review the following [instructions][dcm2bids-install].

`dcm2bids` can be installed alongside `pydra-dcm2bids` with:

```console
pip install 'pydra-dcm2bids[all]'
```

## Usage

```python
from pydra.tasks import dcm2bids

task = dcm2bids.Dcm2Bids(
    dicom_dir="/path/to/dicom/dir",
    output_dir="/path/to/bids/dir",
    config_file="/path/to/config/file.json",
    participant_id="sub-01",
)

result = task()
```

You may check the following example of a [configuration file][dcm2bids-config-file].

## Development

This project is managed with [Hatch][hatch]:

```console
pipx install hatch
```

To run the test suite:

```console
hatch run test:no-cov
```

To fix linting issues:

```console
hatch run lint:fix
```

To check the documentation:

```console
hatch run docs:serve --open-browser
```

## License

`pydra-dcm2bids` is distributed under the terms of the [Apache License, Version 2.0][license].

[pypi-project]: https://pypi.org/project/pydra-dcm2bids

[pypi-version]: https://img.shields.io/pypi/v/pydra-dcm2bids.svg

[pypi-pyversions]: https://img.shields.io/pypi/pyversions/pydra-dcm2bids.svg

[pydra]: https://pydra.readthedocs.io/

[dcm2bids]: https://unfmontreal.github.io/Dcm2Bids/

[bids]: https://bids-specification.readthedocs.io/

[dcm2bids-install]: https://unfmontreal.github.io/Dcm2Bids/docs/get-started/install/

[dcm2bids-config-file]: https://unfmontreal.github.io/Dcm2Bids/docs/how-to/create-config-file/

[hatch]: https://hatch.pypa.io/

[license]: https://spdx.org/licenses/Apache-2.0.html

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "pydra-dcm2bids",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "bids,dicom,pydra",
    "author": "",
    "author_email": "Ghislain Vaillant <ghislain.vaillant@icm-institute.org>",
    "download_url": "https://files.pythonhosted.org/packages/8f/fc/59c99bb988e6047c5ded0064eef03c670e7bd677e1dd73dc1ba3037c2b16/pydra_dcm2bids-0.0.4.tar.gz",
    "platform": null,
    "description": "# pydra-dcm2bids\n\n[![PyPI - Version][pypi-version]][pypi-project]\n[![PyPI - Python Version][pypi-pyversions]][pypi-project]\n\n----\n\nPydra tasks for dcm2bids.\n\n[Pydra][pydra] is a dataflow engine which provides\na set of lightweight abstractions for DAG\nconstruction, manipulation, and distributed execution.\n\n[`dcm2bids`][dcm2bids] is a tool which facilitates\nconversion from DICOM datasets to NIfTI files\norganized as [BIDS][bids].\n\n## Installation\n\n```console\npip install pydra-dcm2bids\n```\n\nA separate installation of `dcm2bids` and `dcm2niix` is required to use this package.\nPlease review the following [instructions][dcm2bids-install].\n\n`dcm2bids` can be installed alongside `pydra-dcm2bids` with:\n\n```console\npip install 'pydra-dcm2bids[all]'\n```\n\n## Usage\n\n```python\nfrom pydra.tasks import dcm2bids\n\ntask = dcm2bids.Dcm2Bids(\n    dicom_dir=\"/path/to/dicom/dir\",\n    output_dir=\"/path/to/bids/dir\",\n    config_file=\"/path/to/config/file.json\",\n    participant_id=\"sub-01\",\n)\n\nresult = task()\n```\n\nYou may check the following example of a [configuration file][dcm2bids-config-file].\n\n## Development\n\nThis project is managed with [Hatch][hatch]:\n\n```console\npipx install hatch\n```\n\nTo run the test suite:\n\n```console\nhatch run test:no-cov\n```\n\nTo fix linting issues:\n\n```console\nhatch run lint:fix\n```\n\nTo check the documentation:\n\n```console\nhatch run docs:serve --open-browser\n```\n\n## License\n\n`pydra-dcm2bids` is distributed under the terms of the [Apache License, Version 2.0][license].\n\n[pypi-project]: https://pypi.org/project/pydra-dcm2bids\n\n[pypi-version]: https://img.shields.io/pypi/v/pydra-dcm2bids.svg\n\n[pypi-pyversions]: https://img.shields.io/pypi/pyversions/pydra-dcm2bids.svg\n\n[pydra]: https://pydra.readthedocs.io/\n\n[dcm2bids]: https://unfmontreal.github.io/Dcm2Bids/\n\n[bids]: https://bids-specification.readthedocs.io/\n\n[dcm2bids-install]: https://unfmontreal.github.io/Dcm2Bids/docs/get-started/install/\n\n[dcm2bids-config-file]: https://unfmontreal.github.io/Dcm2Bids/docs/how-to/create-config-file/\n\n[hatch]: https://hatch.pypa.io/\n\n[license]: https://spdx.org/licenses/Apache-2.0.html\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Pydra tasks for dcm2bids",
    "version": "0.0.4",
    "split_keywords": [
        "bids",
        "dicom",
        "pydra"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4f58ab432d970736c24a00d3f516af85cb7ffe628d1784c298c7a2512264141c",
                "md5": "9829b8ddb328bfd59ee99e9d2ec8651c",
                "sha256": "3c4beb2f5c31bddd9db8d06629a0e9d6b1c20382459a569442d34aa595071888"
            },
            "downloads": -1,
            "filename": "pydra_dcm2bids-0.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9829b8ddb328bfd59ee99e9d2ec8651c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 7057,
            "upload_time": "2023-03-19T18:58:34",
            "upload_time_iso_8601": "2023-03-19T18:58:34.420159Z",
            "url": "https://files.pythonhosted.org/packages/4f/58/ab432d970736c24a00d3f516af85cb7ffe628d1784c298c7a2512264141c/pydra_dcm2bids-0.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8ffc59c99bb988e6047c5ded0064eef03c670e7bd677e1dd73dc1ba3037c2b16",
                "md5": "06df76a982c760ea31539adabda9a064",
                "sha256": "89b5747dc733b797c377e209c8ea41195989ff494b355d07a2e2bc204312060c"
            },
            "downloads": -1,
            "filename": "pydra_dcm2bids-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "06df76a982c760ea31539adabda9a064",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 9208,
            "upload_time": "2023-03-19T18:58:36",
            "upload_time_iso_8601": "2023-03-19T18:58:36.057886Z",
            "url": "https://files.pythonhosted.org/packages/8f/fc/59c99bb988e6047c5ded0064eef03c670e7bd677e1dd73dc1ba3037c2b16/pydra_dcm2bids-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-19 18:58:36",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "pydra-dcm2bids"
}
        
Elapsed time: 0.06377s