Reorganising NIfTI files from dcm2niix into the Brain Imaging Data Structure
Project description
dcm2bids
dcm2bids
reorganises NIfTI files from dcm2niix into the Brain Imaging Data Structure (BIDS).
Before using this software, learn more about BIDS:
- read the BIDS specifications and the paper
- some dataset examples
Follow the guide
Install
pip install dcm2bids
or
pip install --user dcm2bids
Dependencies
- dcm2niix to convert DICOM to NIfTI. You need to install it
Upgrading
pip install --upgrade dcm2bids
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
for each participants of your study
dcm2bids creates log files inside <YOUR_FUTURE_BIDS_FOLDER>/tmp_dcm2bids/log
bids-validator
Run the bids-validator to check your directory. Don't forget to create a .bidsignore
file at the root of your BIDS directory with tmp_dcm2bids/*
inside.
Similar projects
Other tools to create BIDS datasets :
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dcm2bids-2.1.4.tar.gz
.
File metadata
- Download URL: dcm2bids-2.1.4.tar.gz
- Upload date:
- Size: 25.9 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1c47d578cd273898f99d6003ea0e484e7643c903d2a5a96c1653fb8fb770381 |
|
MD5 | e437ae5945975d7fec3c9f2df52a6bb7 |
|
BLAKE2b-256 | 1ee3d132d9e867034520bb20a8eab2e5a5eb69ce750a6bb43601a770d9e28821 |
Provenance
File details
Details for the file dcm2bids-2.1.4-py2.py3-none-any.whl
.
File metadata
- Download URL: dcm2bids-2.1.4-py2.py3-none-any.whl
- Upload date:
- Size: 28.9 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a339c83e087a3780fb2491bd27b18ff9494bf1018c5a72385cfd5ae0db3bd7f |
|
MD5 | 33059bf6dee12fa6be14334de5950bb3 |
|
BLAKE2b-256 | abb661a10d2f876ac78236d72a9aaa51a3b3f36f46220afb08cc57b280ee3511 |