The scripts in this repo are a combination of wrappers and quality checking scripts that take neuroimaging files from DICOMS to Niftis named and structured as per BIDS.
Instructions on this page are to run batches of subjects on a high performance cluster running SLURM using a Singularity container of the dcm2Bids package - or - to run the subjects serially on a local machine.
Table of Contents
- Conversion Folder Contents
- Creating the dcm2bids Configuration File
- Running dcm2bids
- Running bidsQC
- Final BIDS Steps
- Python 3 with the
futuremodule (pip install of cbedetti's
dcm2bidswill install the future module)
dcm2niixconversion tool. You need to install it.
dcm2Bids. You need to install it.
- Get via cbedetti's github
Wrapper around the rordenlab's
dcm2niix and cbedetti's
dcm2Bids. These scripts convert the DICOM files in subjects' directories, convert them to Niftis, and put them in BIDS.
Once Niftis are in BIDS, these scripts can be used to check whether each sequence has the correct number of runs. Files in the target directories are checked against values in the configuration file where the user specifies how many runs of each sequence are expected at each time point. Optional: append the
run-## key-value string to file names based on sequence order (option specifed in config file).
Manually Create Metadata Files
Place these files in the top level bids directory.
- A JSON for each functional task with TaskName and RepetitionTime
- README (optional, but strongly recommended)
- CHANGES (optional, but strongly recommended)
Check the BIDS Conversion
BIDS validator: http://incf.github.io/bids-validator