-
Notifications
You must be signed in to change notification settings - Fork 2
Update batch_single_subject.sh for the 2025 SCT Course
#33
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
Conversation
bf444c4 to
de70c96
Compare
batch_single_subject.sh for the 2025 SCT Course
a3cc1fa to
f6c9550
Compare
f6c9550 to
3a44440
Compare
3a44440 to
53665c3
Compare
2ed41f0 to
bfe9286
Compare
Keeping the old syntax will be better for ensuring backwards compatibility with the course data .zips, since we package up the _gmseg and _wmseg files to be used in other tutorials.
CSV generation will fail due to missing labeled seg file.
Superseded by totalspineseg.
9cc5975 to
1284fd9
Compare
1284fd9 to
8719e48
Compare
b21d177 to
4edd73c
Compare
4edd73c to
93cddf5
Compare
mguaypaq
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work, thanks!
|
I'll follow up by creating a new dataset release and updating the link in the SCT repo. |
| # Register t2->template with modified parameters (advanced usage of `-param`) | ||
| sct_register_to_template -i t2.nii.gz -s t2_seg.nii.gz -l t2_labels_vert.nii.gz -qc ~/qc_singleSubj -ofolder advanced_param -c t2 -param step=1,type=seg,algo=rigid:step=2,type=seg,metric=CC,algo=bsplinesyn,slicewise=1,iter=3:step=3,type=im,metric=CC,algo=syn,slicewise=1,iter=2 | ||
| sct_register_to_template -i t2.nii.gz -s t2_seg.nii.gz -ldisc t2_labels_vert.nii.gz -qc ~/qc_singleSubj -ofolder advanced_param -c t2 -param step=1,type=seg,algo=rigid:step=2,type=seg,metric=CC,algo=bsplinesyn,slicewise=1,iter=3:step=3,type=im,metric=CC,algo=syn,slicewise=1,iter=2 | ||
|
|
||
| # Register t2->template with large FOV (e.g. C2-L1) using `-ldisc` option | ||
| # sct_register_to_template -i t2.nii.gz -s t2_seg.nii.gz -ldisc t2_seg_labeled_discs.nii.gz -c t2 | ||
| # sct_register_to_template -i t2.nii.gz -s t2_seg.nii.gz -ldisc t2_totalspineseg_discs.nii.gz -c t2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to self re: spinalcordtoolbox/spinalcordtoolbox#5023 (comment): Not present in web tutorials? Add?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update: No. (This corresponds to the -ldisc page that we removed from the course material due to duplication with the regular -ldisc, and so this should be removed, I think. Large FOVs are already covered by the "how many labels should I use" page?)
| # Compute aSCOR (Adapted Spinal Cord Occupation Ratio) | ||
| # i.e. Spinal cord to canal ratio using the canal seg | ||
| sct_compute_ascor -i-SC t2_seg.nii.gz -i-canal t2_canal_seg.nii.gz -perlevel 1 -o ascor.csv |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to self re: spinalcordtoolbox/spinalcordtoolbox#5023 (comment): Not present in web tutorials? Add?
Context
In preparation for the upcoming SCT Course, we need to test all of the commands in the SCT Course slide deck.
My approach to testing the commands is to:
batch_single_subject.shcontains exactly the same commands as the SCT Course slide deck.PR description
To make "step 1" easier, this PR adds:
sct_commands (from both the slides and the scripts) and compares them.