Skip to content

Commit cfce6bb

Browse files
committed
Add '-v 2' to sct_process_segmentation to get all available vertebral levels from PAM50 template.
1 parent b4fa271 commit cfce6bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/process_data_spine-generic.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ file_t2_seg=$FILESEG
122122
label_if_does_not_exist ${file_t2} ${file_t2_seg} 't2'
123123

124124
# Compute metrics from SC segmentation and normalize them to PAM50 ('-normalize-PAM50' flag)
125-
sct_process_segmentation -i ${file_t2_seg}.nii.gz -vertfile ${file_t2_seg}_labeled.nii.gz -perslice 1 -normalize-PAM50 1 -o ${PATH_RESULTS}/${file_t2/_RPI_r/}_PAM50.csv
125+
# Note: '-v 2' flag is used to get all available vertebral levels from PAM50 template. This assures that the output CSV
126+
# files will have the same number of rows, regardless of the subject's vertebral levels.
127+
sct_process_segmentation -i ${file_t2_seg}.nii.gz -vertfile ${file_t2_seg}_labeled.nii.gz -perslice 1 -normalize-PAM50 1 -v 2 -o ${PATH_RESULTS}/${file_t2/_RPI_r/}_PAM50.csv
126128

127129
# ------------------------------------------------------------------------------
128130
# End

0 commit comments

Comments
 (0)