io_bids
io_bids
Section titled “io_bids”Subworkflow loading files from a BIDS directory. It is used in conjunction with the IO_READBIDS module which uses the scilpy CLI script to parse the BIDS directory and fetch the metadata. ------------- Current supported files/metadata ------------- Files:
- T1w
- White matter parcellation from FreeSurfer.
- Grey matter parcellation from FreeSurfer.
- Diffusion weighted images (dwi)
- B-values (bval)
- B-vectors (bvec)
- Reverse encoded diffusion weighted images (rev_dwi)
- B-values for the rev_dwi (rev_bval)
- B-vectors for the rev_dwi (rev_bvec)
- Reverse b0 image (rev_b0) Metadata (within the meta):
- Subject ID (id)
- Session ID (ses)
- Run ID (run)
- DWI Total Readout Time (dwi_tr)
- DWI Phase Encoding Direction (dwi_phase)
- Reverse DWI Phase Encoding Direction (dwi_revphase)
Note: This subworkflow is meant to be an example of how to use the IO_READBIDS module. It only supports a single BIDS folder as an input. It can be modified to fit the user’s needs.
Keywords : IO, BIDS, Files
Components : io/readbids
Inputs
Section titled “Inputs”| Type | Description | Mandatory | Pattern | |
|---|---|---|---|---|
| bids_folder | directory | Path to the BIDS directory. (You must supply only a single BIDS directory) Structure: [ path(bids_folder) ] | True | |
| fs_folder | directory | Path to the FreeSurfer directory. Structure: [ path(fs_folder) ] | True | |
| bidsignore | file | Path to the .bidsignore file. Structure: [ path(bidsignore) ] | True |
Outputs
Section titled “Outputs”| Type | Description | Optional | Pattern | |
|---|---|---|---|---|
| ch_t1 | file | Channel containing all T1w files Structure: [ val(meta), path(t1) ] | False | *.nii.gz |
| ch_wmparc | file | Channel containing all FreeSurfer white matter parcellation files. Structure: [ val(meta), path(wmparc) ] | False | *.mgz |
| ch_aparc_aseg | file | Channel containing all FreeSurfer grey matter parcellation files. Structure: [ val(meta), path(aparc_aseg) ] | False | *.mgz |
| ch_dwi_bval_bvec | file | Channel containing all diffusion weighted images, b-values and b-vectors. Structure: [ val(meta), path(dwi), path(bval), path(bvec) ] | False | *.{nii.gz,bval,bvec} |
| ch_rev_dwi_bval_bvec | file | Channel containing all reverse encoded diffusion weighted images, b-values and b-vectors. Structure: [ val(meta), path(rev_dwi), path(rev_bval), path(rev_bvec) ] | False | *.{nii.gz,bval,bvec} |
| ch_rev_b0 | file | Channel containing all reverse b0 images. Structure: [ val(meta), path(rev_b0) ] | False | *.nii.gz |
| versions | file | File containing software versions Structure: [ path(versions.yml) ] | False | versions.yml |
Authors
Section titled “Authors”Maintainers
Section titled “Maintainers”Last updated : 2025-10-30