Skip to content

betcrop_synthstrip

synthstrip

Perform brain extraction using synthstrip on image

Keywords : anatomical image, BET, synthetic, neural network, Artificial intelligence, machine learning


Format : tuple val(meta), path(image), path(weights)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]
True
imagefileNifti image volume to perform BET.True*.{nii,nii.gz}
weightsfileAlternative model weightsFalse*.pt

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

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]
True
*__bet_image.nii.gzfileNifti brain-extracted volume.True*__bet_image.{nii,nii.gz}

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

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]
True
*__brain_mask.nii.gzfileBrain-extracted image mask .True*__brain_mask.{nii,nii.gz}

Format : path(versions.yml)

TypeDescriptionMandatoryPattern
versions.ymlfileFile containing software versionsTrueversions.yml

TypeDescriptionDefaultChoices
gpubooleanUse GPU for synthstripFalse
borderintMask border threshold in mm.1
nocsfbooleanExclude CSF from brain borderFalse
modelstringAlternative model weights (see https://surfer.nmr.mgh.harvard.edu/docs/synthstrip/ for a list of available models.
None
single_threadbooleanIf true, the command will be run in single-threaded mode. By default, the command will use multiple threads based on the number of CPUs allocated to the task.False

DescriptionDOI
FreesurferOpen source neuroimaging toolkit for processing, analyzing, and visualizing human brain MR images.
10.1016/j.neuroimage.2012.01.021


Last updated : 2026-04-23