Skip to content

utils_dwishell

Extracts the DWI volumes that are on specific b-value shells in the same order as in the original file.

Keywords : dwi, extract, shell


Format : tuple val(meta), path(dwi), path(bval), path(bvec)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
dwifileNifti DWI volume.True*.{nii,nii.gz}
bvalfileB-values in FSL format.True*.bval
bvecfileB-vectors in FSL format.True*.bvec

Format : tuple val(meta), path(*__dwi_sh_shells.nii.gz)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*__dwi_sh_shells.nii.gzfileDWI volume with shells fitted.True*__dwi_sh_shells.nii.gz

Format : tuple val(meta), path(*__bval_sh_shells)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*__bval_sh_shellsfileB-values of the fitted shells in FSL format.True*__bval_sh_shells

Format : tuple val(meta), path(*__bvec_sh_shells)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*__bvec_sh_shellsfileB-vectors of the fitted shells in FSL format.True*__bvec_sh_shells

Format : tuple val(meta), path(*__out_indices)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]True
*__out_indicesfileText file containing indices of the fitted shells.True*__out_indices

Format : path(versions.yml)

TypeDescriptionMandatoryPattern
versions.ymlfileFile containing software versionsTrueversions.yml

TypeDescriptionDefaultChoices
b0_thr_extract_b0integerVolumes with b-values up to this threshold are considered b0 (unweighted).10
max_shell_bvalueintegerMaximum b-value to consider when extracting shells.1500
shell_to_fitintegerOnly use volumes with this b-value. Required if input is multi-shell.None
out_indicesbooleanWhether to output the valid indices of the input dwi volume.False
block_sizeintegerUseful when the data is too large to be loaded in memory. A block size of X means that X DWI volumes are loaded at a time for processing.None
toleranceintegerThe tolerated gap between the b-values to extract and the actual b-values.20

DescriptionDOI
scilpyThe Sherbrooke Connectivity Imaging Lab (SCIL) Python dMRI processing toolbox.


Last updated : 2025-10-30