@@ -398,7 +398,7 @@ sct_flatten_sagittal -i t1.nii.gz -s t1_seg.nii.gz
398398# New features (SCT v6.5, December 2024)
399399# ======================================================================================================================
400400
401- # Lesion analysis for SCI and MS lesions
401+ # Lesion analysis for SCI
402402cd ../t2_lesion
403403# Segment the spinal cord and intramedullary lesion using the SCIsegV2 model
404404# Note: t2.nii.gz contains a fake lesion for the purpose of this tutorial
@@ -409,11 +409,6 @@ sct_deepseg lesion_sci_t2 -i t2.nii.gz -qc ~/qc_singleSubj
409409# Check results using FSLeyes
410410fsleyes t2.nii.gz -cm greyscale t2_sc_seg.nii.gz -cm red -a 70.0 t2_lesion_seg.nii.gz -cm blue-lightblue -a 70.0 &
411411
412- # Note: We also have a contrast-agnostic segmentation command for MS lesions, too:
413- sct_deepseg lesion_ms -i t2.nii.gz -qc ~ /qc_singleSubj
414- # As well as a segmentation command tailored to MP2RAGE MS lesions
415- # sct_deepseg lesion_ms_mp2rage -i t2.nii.gz -qc ~/qc_singleSubj
416-
417412# Compute various morphometric measures, such as number of lesions, lesion length, lesion volume, etc.
418413sct_analyze_lesion -m t2_lesion_seg.nii.gz -s t2_sc_seg.nii.gz -qc ~ /qc_singleSubj
419414# Lesion analysis using PAM50 (the -f flag is used to specify the folder containing the atlas/template)
@@ -442,5 +437,14 @@ sct_deepseg rootlets -i t2.nii.gz -qc ~/qc_singleSubj
442437# Check results using FSLeyes
443438fsleyes t2.nii.gz -cm greyscale t2_rootlets.nii.gz -cm subcortical -a 70.0 &
444439
440+ # Multiple sclerosis lesion segmentation on T2-weighted images
441+ cd ../t2_ms/
442+ # Segment the spinal cord (to be used as input for lesion_ms QC)
443+ sct_deepseg spinalcord -i t2.nii.gz -qc ~ /qc_singleSubj
444+ # Segment using lesion_ms (-single-fold is recommended to speed up inference time)
445+ sct_deepseg lesion_ms -i t2.nii.gz -qc ~ /qc_singleSubj -qc-seg t2_seg.nii.gz -single-fold
446+ # Check results using FSLeyes
447+ fsleyes t2.nii.gz -cm greyscale t2_lesion_seg.nii.gz -cm red -a 70.0 &
448+
445449# Return to parent directory
446450cd ..
0 commit comments