skullstrip - Man Page
Synopsis
skullstrip [-h] [-p LABEL [LABEL ...]] [-m PATTERN] [-o DESTINATION [DESTINATION ...]] [-f] [-a ARGS] [-c [SPECS]] bidsfolder pattern
Description
A wrapper around FreeSurfer's 'synthstrip' skull stripping tool (https://surfer.nmr.mgh.harvard.edu/docs/synthstrip). Except for BIDS inheritances, this wrapper is BIDS-aware (a 'bidsapp') and writes BIDS compliant output
The corresponding brain mask is saved in the bids/derivatives/synthstrip folder
Assumes the installation of FreeSurfer v7.3.2 or higher
- bidsfolder
The bids-directory with the subject data
- pattern
Globlike search pattern (relative to the subject/session folder) to select the (3D) images that need to be skullstripped, e.g. 'anat/*_T1w*'
Options
- -p LABEL [LABEL ...], --participant LABEL [LABEL ...]
Space separated list of sub-# identifiers to be processed (the sub-prefix can be left out). If not specified then all participants will be processed
- -m PATTERN, --masked PATTERN
Globlike search pattern (relative to the subject/session folder) to select additional (3D/4D) images from the same space that need to be masked with the same mask, e.g. 'fmap/*_phasediff'. NB: This option can only be used if pattern yields a single file per session
- -o DESTINATION [DESTINATION ...], --output DESTINATION [DESTINATION ...]
One or two output strings that determine where the skullstripped + additional masked images are saved. Each output string can be the name of a BIDS datatype folder, such as 'anat', or of the derivatives folder, i.e. 'derivatives' (default). If the output string is the same as the datatype then the original images are replaced by the skullstripped images
- -f, --force
Process images, regardless whether images have already been skullstripped (i.e. if {'SkullStripped': True} in the json sidecar file)
- -a ARGS, --args ARGS
Additional arguments that are passed to synthstrip (NB: Use quotes and include at least one space character to prevent premature parsing)
- -c [SPECS], --cluster [SPECS]
Use the DRMAA library to submit the skullstrip jobs to a high-performance compute (HPC) cluster. You can add an opaque DRMAA argument with native specifications for your HPC resource manager (NB: Use quotes and include at least one space character to prevent premature parsing -- see examples)
Comments
examples:
skullstrip myproject/bids anat/*_T1w*
skullstrip myproject/bids anat/*_T1w* -p 001 003 -a " --no-csf"
skullstrip myproject/bids fmap/*_magnitude1* -m fmap/*_phasediff* -o extra_data fmap
skullstrip myproject/bids fmap/*_acq-mylabel*_magnitude1* -m fmap/*_acq-mylabel_* -o fmap
Author
Marcel Zwiers <m.zwiers@donders.ru.nl>