Skip to content

Commit

Permalink
Add data and commands for lesion-analysis tutorial (#21)
Browse files Browse the repository at this point in the history
* Add new files:
 - t2_lesion/t2.nii.gz - T2w image with fake lesion
 - t2_sc_seg.nii.gz - SC segmentation generated using SCIsegV2
 - t2_lesion_seg.nii.gz - lesion segmentation generated using SCIsegV2

* batch_single_subject.sh: Update with lesion-analysis

* tutorial-datasets.csv: Update with lesion data
  • Loading branch information
valosekj authored Sep 9, 2024
1 parent 0f52a46 commit 4bf0018
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions single_subject/batch_single_subject.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,19 @@ sct_compute_compression -i t2_compressed_seg.nii.gz -vertfile t2_compressed_seg_



# Lesion analysis
# ======================================================================================================================
cd ../t2_lesion
# Segment the spinal cord and intramedullary lesion using the SCIsegV2 model
# Note: t2.nii.gz contains a fake lesion for the purpose of this tutorial
sct_deepseg -i t2.nii.gz -task seg_sc_lesion_t2w_sci
# Note: Two files are output:
# - t2_sc_seg.nii.gz: the spinal cord segmentation
# - t2_lesion_seg.nii.gz: the lesion segmentation

# 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

# Registering T2 data to the PAM50 template
# ======================================================================================================================
cd ../t2
Expand Down
Binary file added single_subject/data/t2_lesion/t2.nii.gz
Binary file not shown.
Binary file not shown.
Binary file added single_subject/data/t2_lesion/t2_sc_seg.nii.gz
Binary file not shown.
3 changes: 3 additions & 0 deletions tutorial-datasets.csv
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ data_compression,single_subject/data/t2_compression/t2_compressed.nii.gz
data_normalizing-morphometrics-compression,single_subject/data/t2_compression/t2_compressed_seg.nii.gz
data_normalizing-morphometrics-compression,single_subject/data/t2_compression/t2_compressed_seg_labeled.nii.gz
data_normalizing-morphometrics-compression,single_subject/data/t2_compression/t2_compressed_labels-compression.nii.gz
data_lesion-analysis,single_subject/data/t2_lesion/t2.nii.gz
data_lesion-analysis,single_subject/data/t2_lesion/t2_sc_seg.nii.gz
data_lesion-analysis,single_subject/data/t2_lesion/t2_lesion_seg.nii.gz
data_template-registration,single_subject/data/t2/t2.nii.gz
data_template-registration,single_subject/data/t2/t2_seg.nii.gz
data_template-registration,single_subject/data/t2/t2_labels_vert.nii.gz
Expand Down

0 comments on commit 4bf0018

Please sign in to comment.