Skip to content

Commit 77bb397

Browse files
batch_single_subject.sh: Add PMJ-based CSA commands
1 parent 36a48c2 commit 77bb397

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

single_subject/batch_single_subject.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ sct_process_segmentation -i t2_seg.nii.gz -vert 3:4 -vertfile ./label/template/P
111111
# Aggregate CSA value per slices
112112
sct_process_segmentation -i t2_seg.nii.gz -z 30:35 -perslice 1 -o csa_perslice.csv
113113

114+
# A drawback of vertebral level-based CSA is that it doesn’t consider neck flexion and extension.
115+
# To overcome this limitation, the CSA can instead be computed using the distance to a reference point.
116+
# Here, we use the Pontomedullary Junction (PMJ), since the distance from the PMJ along the centerline
117+
# of the spinal cord will vary depending on the position of the neck.
118+
sct_detect_pmj -i t2.nii.gz -c t2 -qc ~/qc_singleSubj
119+
# Check the QC to make sure PMJ was properly detected, then compute CSA using the distance from the PMJ:
120+
sct_process_segmentation -i t2_seg.nii.gz -pmj t2_pmj.nii.gz -pmj-distance 64 -pmj-extent 30 -o csa_pmj.csv -qc ~/qc_singleSubj -qc-image t2.nii.gz
114121

115122

116123
# Registering additional MT data to the PAM50 template

0 commit comments

Comments
 (0)