File tree Expand file tree Collapse file tree 5 files changed +18
-8
lines changed
Expand file tree Collapse file tree 5 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,6 @@ threads=1
6060minimal=1
6161noreorient=0
6262cleanup=1
63- codedir=$( dirname " $BASH_SOURCE " )
64- scriptdir=$codedir /scripts
6563
6664shift ; shift ; shift ;
6765while [ $# -gt 0 ]; do
8583[ " $T2 " != " -" -a " $T2 " != " " ] || { echo " T2 image not provided!" >&2 ; exit 1; }
8684
8785# check whether the different tools are set and load parameters
86+ codedir=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
8887. $codedir /parameters/configuration.sh
8988
89+ scriptdir=$codedir /scripts
90+
9091roundedAge=` printf " %.*f\n" 0 $age ` # round
9192[ $roundedAge -lt $template_max_age ] || { roundedAge=$template_max_age ; }
9293[ $roundedAge -gt $template_min_age ] || { roundedAge=$template_min_age ; }
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# local directories
4- export parameters_dir=$( dirname " $BASH_SOURCE " )
4+ export parameters_dir=" $( cd " $( dirname " ${ BASH_SOURCE[0]} " ) " && pwd ) "
55export code_dir=$parameters_dir /..
66
77# setup path from installation
Original file line number Diff line number Diff line change @@ -51,7 +51,10 @@ age=$2
5151
5252datadir=` pwd`
5353threads=1
54- scriptdir=$( dirname " $BASH_SOURCE " )
54+
55+ # check whether the different tools are set and load parameters
56+ codedir=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
57+ . $codedir /parameters/configuration.sh
5558
5659shift ; shift
5760while [ $# -gt 0 ]; do
Original file line number Diff line number Diff line change @@ -28,7 +28,10 @@ age=$3
2828
2929datadir=` pwd`
3030threads=1
31- scriptdir=$( dirname " $BASH_SOURCE " )
31+
32+ # check whether the different tools are set and load parameters
33+ codedir=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
34+ . $codedir /parameters/configuration.sh
3235
3336shift ; shift ; shift
3437while [ $# -gt 0 ]; do
Original file line number Diff line number Diff line change @@ -38,7 +38,10 @@ subj=$1
3838
3939datadir=` pwd`
4040threads=1
41- scriptdir=$( dirname " $BASH_SOURCE " )
41+
42+ # check whether the different tools are set and load parameters
43+ codedir=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
44+ . $codedir /parameters/configuration.sh
4245
4346shift
4447while [ $# -gt 0 ]; do
97100# create files of each hemisphere
98101for hi in {0..1}; do
99102 h=${Hemi[$hi]}
100- runhemisphere $scriptdir /process-surfaces-hemisphere.sh $subj $h $segdir $outvtk $outwb $outtmp &
103+ runhemisphere $codedir /process-surfaces-hemisphere.sh $subj $h $segdir $outvtk $outwb $outtmp &
101104 if [ $threads -eq 1 ]; then wait ; fi
102105done
103106if [ $threads -gt 1 ]; then wait ; fi
140143
141144# create myelin map etc.
142145if [ -f restore/T1/$subj .nii.gz ]; then
143- run $scriptdir /create-myelin-map.sh $subj
146+ run $codedir /create-myelin-map.sh $subj
144147
145148 for STRINGII in MyelinMap@func SmoothedMyelinMap@func; do
146149 Map=` echo $STRINGII | cut -d " @" -f 1`
You can’t perform that action at this time.
0 commit comments