Dcm2Bids convert DICOM files to Brain Imaging Data Structure (BIDS).
Learn more about BIDS and read the specifications.
dcm2bids -o <BIDS dir> -d <DICOM dir> -p <participant> -a <algorithm to parse your DICOM dir>
It's possible to add a session with the key -s
Every study is different and this step needs a little bit of work.
The logic is in studyparser.py
and parse different part of the metadata to filter the DICOM directories.
It creates a batch file in YAML format to feed dcm2niibatch
.
Conversion is done with dcm2niix
through dcm2niibatch
tool. See dcm2niix github.
dcmstack is used to extract metadata from DICOM files with default filtering.
IT IS YOUR RESPONSIBILITY TO KNOW IF THERE IS PRIVATE HEALTH INFORMATION IN THE METADATA EXTRACTED BY THIS PROGRAM.
- find a more pleasant way for the user to enter algotithm
- add bids validator
- doc strings
- write test