Scripts to batch convert dicoms to BIDS in parallel on an HPC environment, followed by a file check
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bidsQC
conversion
.gitignore
.zenodo.json
LICENSE
README.md
helper_readme.md
running_dcm2bids_cluster.md
running_dcm2bids_local.md

README.md

DOI

Important note:

the bidsQC functionality is being integrated into pybids as the validate_sequences function. The code in this repo is not up to date. Questions? – send a message to kdestasio@gmail.com

Overview

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

Dependencies

Repo Contents

Conversion Scripts

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.

  • config_dcm2bids_batch.py
  • config_dcm2bids_helper.py
  • dcm2bids_batch.py
  • dcm2bids_helper.py
  • fmap_intendedfor.py
  • study_config.json
  • subject_list.txt

bidsQC Scripts

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).

For step-by-step instructions and a description of the naming rules, see the bidsQC README.

Final BIDS Steps

Manually Create Metadata Files

As per: http://bids.neuroimaging.io/bids_spec1.0.0-rc2.pdf

Place these files in the top level bids directory.

  • dataset_description.json
  • phasediff.json
  • 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