Command-Line Tools

The command-line tools are named sct_*; to see all the commands available from SCT, start a new Terminal and type sct then press “tab”.

Each command-line tool has a dedicated documentation page where you will find its “help text”, with each page linked below. To quickly search the help text of all of the tools at once, please navigate to the Help text (-h) for all tools page and type Ctrl+F to search.

Segmentation

  • sct_create_mask - Create mask along z direction.

  • sct_deepseg - Segment anatomical structures or pathologies using deep learning models created with different frameworks (ivadomed, nnUNet, monai).

  • sct_deepseg_gm - Segment spinal cord gray matter using deep learning.

  • sct_get_centerline - Extracts the spinal cord centerline.

  • sct_propseg - Segment spinal cord using propagation of deformation model (PropSeg).

  • sct_deepseg_sc - Segment spinal cord using deep learning. [DEPRECATED] Please use sct_deepseg spinalcord instead.

  • sct_deepseg_lesion - Segment multiple sclerosis lesions. [DEPRECATED] Please use sct_deepseg ms_lesion instead.

Segmentation Analysis

Labeling

Registration

Diffusion MRI

Magnetization transfer

Functional MRI

Metric processing

  • sct_analyze_texture - Extraction of grey level co-occurence matrix (GLCM) texture features from an image within a given mask.

  • sct_extract_metric - Estimate metric value within tracts, taking into account partial volume effect.

Image manipulation

Miscellaneous

System tools