Skip to content

Reorganising NIfTI files from dcm2niix into the Brain Imaging Data Structure

License

Notifications You must be signed in to change notification settings

pn2200/Dcm2Bids

 
 

Repository files navigation

PyPI version Documentation DOI

dcm2bids

dcm2bids reorganises NIfTI files from dcm2niix into the Brain Imaging Data Structure (BIDS).

Before using this software, learn more about BIDS:

Install

pip install dcm2bids

or

pip install --user dcm2bids

Dependencies

Upgrading

pip install --upgrade dcm2bids

TL;DR

Follow the tutorial

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 :

About

Reorganising NIfTI files from dcm2niix into the Brain Imaging Data Structure

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%