The main goal of the project is to compute CSA at C2-C3. In order to do so, we need:
the segmentation
vertebral labeling at C2-C3
Currently, we idenfity C2-C3 and register to the PAM50, which seems to be an overkill (takes longer), and also is not precise if only based on the C2-C3 disc (eg: some people might have smaller/bigger vertebral bodies, which would not match that of the template).
if [[ -e $FILELABELMANUAL ]]; then
echo "Found! Using manual labels."
rsync -avzh $FILELABELMANUAL ${FILELABEL}.nii.gz
sct_label_vertebrae -i ${file_t1}.nii.gz -s SEG -discfile LABELS-MANUALS
# TODO: make sure output file name is same as the case below
else
echo "Not found. Proceeding with automatic labeling."
# Generate labeled segmentation
sct_label_vertebrae -i ${file}.nii.gz -s ${file_seg}.nii.gz -c t1
The documentation and code for the manual correction also needs to be updated.
Context
The main goal of the project is to compute CSA at C2-C3. In order to do so, we need:
Currently, we idenfity C2-C3 and register to the PAM50, which seems to be an overkill (takes longer), and also is not precise if only based on the C2-C3 disc (eg: some people might have smaller/bigger vertebral bodies, which would not match that of the template).
Suggestion
To replace these lines: https://github.com/sct-pipeline/ukbiobank-spinalcord-csa/blob/8190a3fef268e452bcb15d3e6340135d4a965147/process_data.sh#L101-L117
by:
The shell function will also need to be updated: before: https://github.com/sct-pipeline/ukbiobank-spinalcord-csa/blob/8190a3fef268e452bcb15d3e6340135d4a965147/process_data.sh#L39-L47
after:
The documentation and code for the manual correction also needs to be updated.