Inputs
BIDS input directory
Section titled “BIDS input directory”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.
Directory Structure
Section titled “Directory Structure”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
Required Files
Section titled “Required Files”dataset_description.json: A JSON file describing the dataset.participants.tsvor*_sessions.tsv: TSV files listing the participants and their metadata.sf-pediatricrequires the participants’ age to be supplied either within the top-levelparticipants.tsvfile or the subject-specific*_sessions.tsvfiles. In both case, files need to useageas the column name. If not available, the pipeline will return an error at runtime.
participants.tsv example
Section titled “participants.tsv example”| participant_id | session_id | age |
|---|---|---|
| sub-test1 | ses-baseline | 0.08 |
| sub-test1 | ses-time1 | 4 |
| sub-test2 | 8 | |
| … | … | … |
*_sessions.tsv example
Section titled “*_sessions.tsv example”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_id | age |
|---|---|
| ses-baseline | 0.08 |
| ses-time1 | 4 |
Mandatory files per subject:
Section titled “Mandatory files per subject:”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 guidelinesfmap/: A directory containing field map data (optional but recommended for distortion correction).