sct-pipeline / STOP-MS-data

Compute CSA on upper spinal cord on MPRAGE from large MS cohort from Karolinska Institute.
MIT License
0 stars 0 forks source link

STOP-MS-data

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.

Requirements

Following dependencies are required

Config YAML file

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

How to use the script

First step

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

Second step

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 :

IMAGE ALT TEXT HERE

Third step

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.