Skip to content

Commit

Permalink
Split out explicit template selection separate from subject selection
Browse files Browse the repository at this point in the history
  • Loading branch information
gdevenyi committed Aug 1, 2017
1 parent 83690c3 commit e9acf8b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bin/mb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export LC_ALL=C

read -r -d '' __usage <<-'EOF' || true # exits non-zero when EOF encountered
-s --subject [arg] Specific subject files to process.
-t --template [arg] Specific template files to process.
-v --verbose Enable verbose mode for all scripts.
-d --debug Enables debug mode.
-h --help This help page.
Expand Down Expand Up @@ -118,11 +119,16 @@ atlases=$(find input/atlas -maxdepth 1 -name '*_t1.mnc' -o -name '*_t1.nii' -o -
if [[ ! -z "${arg_s:-}" ]]
then
subjects=${arg_s}
templates=${arg_s}
info "Specific subject(s) specified ${subjects}"
info "Specific template(s) specified ${templates}"
else
subjects=$(find input/subject -maxdepth 1 -name '*_t1.mnc' -o -name '*_t1.nii' -o -name '*_t1.nii.gz' -o -name '*_t1.hdr' -o -name '*_T1w.nii.gz')
fi

if [[ ! -z "${arg_t:-}" ]]
then
templates=${arg_t}
info "Specific template(s) specified ${templates}"
else
templates=$(find input/template -maxdepth 1 -name '*_t1.mnc' -o -name '*_t1.nii' -o -name '*_t1.nii.gz' -o -name '*_t1.hdr' -o -name '*_T1w.nii.gz')
fi

Expand Down

0 comments on commit e9acf8b

Please sign in to comment.