Skip to content

Commit 31eac55

Browse files
authored
Add MS lesion segmentation data (#32)
1 parent aff144b commit 31eac55

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

single_subject/batch_single_subject.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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
402402
cd ../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
410410
fsleyes 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.
418413
sct_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
443438
fsleyes 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
446450
cd ..
1.72 MB
Binary file not shown.

tutorial-datasets.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ data_normalizing-morphometrics-compression,single_subject/data/t2_compression/t2
88
data_normalizing-morphometrics-compression,single_subject/data/t2_compression/t2_compressed_seg_labeled.nii.gz
99
data_normalizing-morphometrics-compression,single_subject/data/t2_compression/t2_compressed_labels-compression.nii.gz
1010
data_lesion-analysis,single_subject/data/t2_lesion/t2.nii.gz
11+
data_ms-lesion-segmentation,single_subject,single_subject/data/t2_ms/t2.nii.gz
1112
data_template-registration,single_subject/data/t2/t2.nii.gz
1213
data_template-registration,single_subject/data/t2/t2_seg.nii.gz
1314
data_template-registration,single_subject/data/t2/t2_labels_vert.nii.gz

0 commit comments

Comments
 (0)