Skip to content

segmentation_fsreconall

fsreconall

Performs Freesurfer’s recon-all script to segment your anatomy (probably a T1) into labels, surfaces, and much more. See the full documentation here: https://surfer.nmr.mgh.harvard.edu/fswiki/recon-all.

Keywords : neural network, Artificial intelligence, machine learning, Segmentation, Tissues


Format : tuple val(meta), path(anat), path(fs_license)

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]
True
anatfileAn anatomy (ex, .nii.gz).True*.{nii,nii.gz,mgz}
fs_licensefileThe path to your FreeSurfer license. To get one, go to https://surfer.nmr.mgh.harvard.edu/registration.html. Optional. If you have already set your license as prescribed by Freesurfer (copied to a .license file in your $FREESURFER_HOME), this is not required.True*.txt

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

TypeDescriptionMandatoryPattern
metamapGroovy Map containing sample information e.g. [ id:'test', single_end:false ]
True
*__recon_alldirectoryDirectory containing all recon-all outputs.True*__recon_all

Format : path(versions.yml)

TypeDescriptionMandatoryPattern
versions.ymlfileFile containing software versionsTrueversions.yml

TypeDescriptionDefaultChoices
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-22