Skip to content

Inputs

The BIDS (Brain Imaging Data Structure) input directory is a standardized way to organize and describe neuroimaging and behavioral data. The sf-pediatric pipeline expects the input data to be organized in the BIDS format. Good resources to convert your raw DICOMs files in a BIDS structure include dcm2bids and/or heudiconv. It is recommended that users validate their BIDS layout using the official bids-validator tool docker image or the web-based version.

The most basic BIDS directory should have a similar structure (note that sessions folder are optional but recommended):

  • Directorybids_directory
    • dataset_description.json
    • participants.tsv
    • Directorysub-01
      • sub-01_sessions.tsv
      • Directoryses-01
        • Directoryanat
          • sub-01_ses-01_T1w.nii.gz
          • sub-01_ses-01_T1w.json
          • sub-01_ses-01_T2w.nii.gz
          • sub-01_ses-01_T2w.json
        • Directorydwi
          • sub-01_ses-01_dwi.nii.gz
          • sub-01_ses-01_dwi.json
          • sub-01_ses-01_dwi.bval
          • sub-01_ses-01_dwi.bvec
        • Directoryfmap
          • sub-01_ses-01_epi.nii.gz
          • sub-01_ses-01_epi.json
  • dataset_description.json: A JSON file describing the dataset.
  • participants.tsv or *_sessions.tsv : TSV files listing the participants and their metadata. sf-pediatric requires the participants’ age to be supplied either within the top-level participants.tsv file or the subject-specific *_sessions.tsv files. In both case, files need to use age as the column name. If not available, the pipeline will return an error at runtime.
participant_idsession_idage
sub-test1ses-baseline0.08
sub-test1ses-time14
sub-test28
………

Since those files are subject-specific, they typically do not need to contain the participant_id column. They should be located alongside the session folders (see Directory Structure section above). Below is an example for sub-test1 with two different sessions.

session_idage
ses-baseline0.08
ses-time14
  • sub-<participant_id>/: A directory for each participant containing their data.
    • anat/: A directory containing anatomical MRI data (e.g., T1w, T2w). If both are available, the optimal one will be selected and both will be coregistered.
    • dwi/: A directory containing diffusion-weighted imaging data (e.g., DWI, bval, bvec). Acquisition with both direction DWI data are also supported (e.g. AP/PA). Specify them according to the BIDS guidelines
    • fmap/: A directory containing field map data (optional but recommended for distortion correction).