neuropoly / template

A framework for creating unbiased MRI templates of the spinal cord
MIT License
5 stars 3 forks source link

Removal of hard-coded `configuration` file in `preprocess_segment.sh` script and extraction of `include_list` from the `configuration` file directly #75

Closed rohanbanerjee closed 11 months ago

rohanbanerjee commented 11 months ago

This PR solves the issues #72 and #73

What this PR solves:

Steps to reproduce this PR:

Data: duke/temp/rohan/bids_data Config file values:

{
    "path_data": "PATH_TO_BIDS_DATA",
    "include-list": "sub-HarshmanDobby",
    "data_type": "anat",
    "contrast": "t2",
    "suffix_image": "_T2",
    "first_disc": "1",
    "last_disc": "26"
}

Run the preprocess_segment.sh using the sct_run_batch from the README of this PR.

Expected output

Running this script should create a temporary output folder with the segmentation and disc_level derivatives with the names: {SUBJECT_NAME_CONTRAST}_label-SC_mask.nii.gz {SUBJECT_NAME_CONTRAST}_labeled-discs.nii.gz