Processing pipeline to compute CSA on upper spinal cord on MPRAGE from large MS cohort from Karolinska Institute. The MPRAGE are brain scans from which a small chunk of the spinal cord is visible (typically C2-C3), and is used to compute CSA.
- SCT version 6.3 (Install Spinal Cord Toolbox)
- Install manual-correction : the SCT command for the vertebral labeling doesn't work for some subjects in the dataset (the identification of the levels is wrong), therefore it will be necessary to fix it manually for subjects who fail the vertebral labeling.
A config YAML file, as shown below, is needed to precise the path to the dataset and the path to save the output files.
# Path to the folder containing the dataset
path_data:
# Path to save the output
path_output:
It is also necessary to create a main folder containing the dataset folder, the script and the config YAML file. Organisation within the main folder should look like this:
├── DATA
└── config.yml
Run processing across all subjects :
cd PATH/TO/THE/MAIN/FOLDER
#To allow permissions
chmod +x config.yml
#SCT command to run the script across all subjects
sct_run_batch -script process_data.sh -config config.yml -jobs 9
Launch the QC report and flag with a ❌ the subjects that need to be manually corrected for the vertebral labeling and download the config YAML file that list all the subjects which failed.
Then perform manual vertebral labeling as shown in the following video tutorial :
Rerun the script as in the second step. For each subject, if the manual correction exists, it will use it. If not, it will regenerate the vertebral labeling.