Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add data and commands for lesion-analysis tutorial #21

Merged
merged 3 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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