Mathilde-16 / STOP_MS_data

0 stars 0 forks source link

[!Warning] This repository was archived. New development is happening here: https://github.com/sct-pipeline/STOP-MS-data

SCT pipeline for a large-scale clinical dataset

The STOP_MS_data repository contains process_data.sh batch script for the segmentation and the vertebral labeling of cervical spinal cord, using the spinal cord toolbox. The dataset corresponds to brain MRI acquisitions which typically pass C2-C3 and a small part of the images go up to C4.

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.