Skip to content

Commit

Permalink
batch_single_subject.sh: Move lesion analysis after MS seg
Browse files Browse the repository at this point in the history
To match the slides.
  • Loading branch information
joshuacwnewton committed Dec 6, 2024
1 parent 07bd03d commit 953db59
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions single_subject/batch_single_subject.sh
Original file line number Diff line number Diff line change
Expand Up @@ -401,18 +401,19 @@ sct_deepseg -i t2.nii.gz -task seg_sc_lesion_t2w_sci -qc ~/qc_singleSubj
# - t2_lesion_seg.nii.gz: the lesion segmentation
# Check results using FSLeyes
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 &

# Note: We also have a contrast-agnostic segmentation command for MS lesions, too:
sct_deepseg -i t2.nii.gz -task seg_ms_lesion -qc ~/qc_singleSubj
# As well as a segmentation command tailored to MP2RAGE MS lesions
# sct_deepseg -i t2.nii.gz -task seg_ms_lesion_mp2rage -qc ~/qc_singleSubj

# Compute various morphometric measures, such as number of lesions, lesion length, lesion volume, etc.
sct_analyze_lesion -m t2_lesion_seg.nii.gz -s t2_sc_seg.nii.gz -qc ~/qc_singleSubj

# Lesion analysis using PAM50 (the -f flag is used to specify the folder containing the atlas/template)
# Note: You must go through the "Register to Template" steps (labeling, registration) first
# This is because `sct_warp_template` is required to generate the `label` folder used for `-f`
# sct_analyze_lesion -m t2_lesion_seg.nii.gz -s t2_sc_seg.nii.gz -f label -qc ~/qc_singleSubj

# Note: We also have a contrast-agnostic segmentation command for MS lesions, too:
sct_deepseg -i t2.nii.gz -task seg_ms_lesion -qc ~/qc_singleSubj
# As well as a segmentation command tailored to MP2RAGE MS lesions
sct_deepseg -i t2.nii.gz -task seg_ms_lesion_mp2rage -qc ~/qc_singleSubj

# Rootlets segmentation
cd ../t2
# Segment the spinal nerve rootlets
Expand Down

0 comments on commit 953db59

Please sign in to comment.