Skip to main content
|Documentation| |DOI|

.. raw:: html

<!--
[![https://www.singularity-hub.org/static/img/hosted-singularity--hub-%23e32929.svg](https://www.singularity-hub.org/static/img/hosted-singularity--hub-%23e32929.svg)](https://singularity-hub.org/collections/544)
-->

dcm2bids
========

``dcm2bids`` reorganises NIfTI files from
`dcm2niix <https://github.com/rordenlab/dcm2niix>`__ into the `Brain
Imaging Data Structure <http://bids.neuroimaging.io/>`__ (BIDS).

Before using this software, learn more about BIDS:

- read the BIDS
`specifications <https://bids-specification.readthedocs.io/en/stable/>`__
and the `paper <https://www.nature.com/articles/sdata201644>`__
- some dataset
`examples <https://github.com/bids-standard/bids-examples>`__

Follow the `guide <https://cbedetti.github.io/Dcm2Bids/guide>`__

Install
-------

``pip install dcm2bids``

or

``pip install --user dcm2bids``

Dependencies
------------

- `dcm2niix <https://github.com/rordenlab/dcm2niix>`__ to convert DICOM
to NIfTI. **You need to install it**

- `install
instructions <https://github.com/rordenlab/dcm2niix#install>`__
- `Recent
release <https://github.com/rordenlab/dcm2niix/releases>`__

TL;DR
=====

Steps to get your data in BIDS :

- ``cd <YOUR_FUTURE_BIDS_FOLDER>``
- ``dcm2bids_scaffold``
- ``dcm2bids_helper -d <FOLDER_WITH_DICOMS_OF_A_TYPICAL_SESSION>``
- Build your configuration file with the help of the content of
``tmp_dcm2bids/helper``
- ``dcm2bids -d DICOM_DIR -p PARTICIPANT_ID -c CONFIG_FILE``
- Run the
`bids-validator <https://github.com/bids-standard/bids-validator>`__

dcm2bids creates log files inside
``<YOUR_FUTURE_BIDS_FOLDER>/tmp_dcm2bids/log``

Similar projects
----------------

Other tools to create `BIDS <http://bids.neuroimaging.io/>`__ datasets :

- `heudiconv <https://github.com/nipy/heudiconv>`__
- `bidskit <https://github.com/jmtyszka/bidskit>`__
- `dac2bids <https://github.com/dangom/dac2bids>`__

.. |Documentation| image:: https://img.shields.io/badge/documentation-read_it-succes.svg?logo=python
:target: https://cbedetti.github.io/Dcm2Bids
.. |DOI| image:: https://zenodo.org/badge/59581295.svg
:target: https://zenodo.org/badge/latestdoi/59581295


Metadata

Release files for dcm2bids 2.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dcm2bids 2.1.2
File Size Uploaded Provenance Actions
dcm2bids-2.1.2.tar.gz 25.6 kB Without provenance Details for dcm2bids-2.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dcm2bids 2.1.2
File Interpreter ABI Platform Actions
dcm2bids-2.1.2-py2.py3-none-any.whl Python 2, Python 3 none any Details for dcm2bids-2.1.2-py2.py3-none-any.whl

Total release size: 54.0 kB

Release files / dcm2bids-2.1.2.tar.gz

Download URL dcm2bids-2.1.2.tar.gz
Size 25.6 kB
Tags Source
SHA-256 checksum
How to use checksums
fc5e6e8eeaefefd547b11b1db6bf30ce602ca93792170afe74d96f96b4c8d435
BLAKE2b-256 checksum
How to use checksums
235ec9c249ef5108967d4d168ead6baed2a5aa7658fdd755478e53d8eca3004e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Release files / dcm2bids-2.1.2-py2.py3-none-any.whl

Download URL dcm2bids-2.1.2-py2.py3-none-any.whl
Size 28.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
74ec4e9cf23e2ae5e68b7d13c28e98fc5b6d4fd26eaaa46882735ded510d1181
BLAKE2b-256 checksum
How to use checksums
e844346af1872aa199e226fdd19f60e310170e87b4d93096c647e7404ddaf333
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Security for dcm2bids 2.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page