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
In the preprocess_segment.sh, the configuration.json file was hard-coded which meant whatever we pass as a value the -config flag, it will read only the configuration.json from the script. This PR takes the configuration.json from the sct_run_batch command rather than a hard-coded value.
We are also passing the values to --include-list while running the preprocessing.sh using sct_run_batch even when the values are already mentioned in the include-list in the configuration.json. This PR helps the sct_run_batch to take this value directly from the configuration.json file.
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
This PR solves the issues #72 and #73
What this PR solves:
preprocess_segment.sh
, theconfiguration.json
file was hard-coded which meant whatever we pass as a value the-config
flag, it will read only theconfiguration.json
from the script. This PR takes theconfiguration.json
from thesct_run_batch
command rather than a hard-coded value.--include-list
while running thepreprocessing.sh
usingsct_run_batch
even when the values are already mentioned in theinclude-list
in theconfiguration.json
. This PR helps thesct_run_batch
to take this value directly from theconfiguration.json
file.Steps to reproduce this PR:
Data:
duke/temp/rohan/bids_data
Config file values:Run the
preprocess_segment.sh
using thesct_run_batch
from theREADME
of this PR.Expected output
Running this script should create a temporary output folder with the
segmentation
anddisc_level
derivatives with the names: {SUBJECT_NAME_CONTRAST}_label-SC_mask.nii.gz {SUBJECT_NAME_CONTRAST}_labeled-discs.nii.gz