|
8 | 8 | # |
9 | 9 | # SHCOPYRIGHT |
10 | 10 |
|
| 11 | +# Make script use local copies of helper scripts/programs in the same |
| 12 | +# directory, if present. This allows for multiple versions of the scripts |
| 13 | +# to be used, possibly with bundled dependencies |
| 14 | +PATH=`dirname $0`:${FSLDIR}/bin:${PATH} |
11 | 15 |
|
12 | 16 | echo "VERBENA version tag '${GIT_SHA1}'" |
13 | 17 | echo "last commit '${GIT_DATE}'" |
@@ -73,9 +77,9 @@ until [ -z $1 ]; do |
73 | 77 | done |
74 | 78 |
|
75 | 79 | #### --- Procedural --- |
76 | | -fabber=${FSLDIR}/bin/fabber_dsc |
77 | | -asl_mfree=${FSLDIR}/bin/asl_mfree ###~/cproject/asl_mfree/asl_mfree |
78 | | -mvntool=${FSLDIR}/bin/mvntool |
| 80 | +fabber=fabber_dsc |
| 81 | +asl_mfree=asl_mfree |
| 82 | +mvntool=mvntool |
79 | 83 |
|
80 | 84 | # save the starting directory |
81 | 85 | stdir=`pwd` |
|
99 | 103 | if [ ! -z $debug ]; then |
100 | 104 | tempdir=`pwd`/temp |
101 | 105 | else |
102 | | - tmpbase=`$FSLDIR/bin/tmpnam` |
| 106 | + tmpbase=`tmpnam` |
103 | 107 | tempdir=${tmpbase}_verbena |
104 | 108 | fi |
105 | 109 | mkdir $tempdir |
106 | 110 | # Required for mask generation |
107 | | -imcp $infile $tempdir |
| 111 | +imcp $infile $tempdir/data |
108 | 112 | cd $tempdir |
109 | 113 |
|
110 | 114 | # parameters |
|
121 | 125 | #### --- Pre-processing --- |
122 | 126 | if [ -z $mask ]; then |
123 | 127 | # auto generate mask |
124 | | - fslmaths $infile -Tmean datamean |
| 128 | + fslmaths data -Tmean datamean |
125 | 129 | bet datamean brain -m |
126 | 130 | immv brain_mask mask |
127 | 131 | else |
@@ -167,8 +171,8 @@ if [ ! -z $modelfree ] || [ ! -z $modelfreeinit ]; then |
167 | 171 | fslmaths modfree_residuals -nan modfree_residuals_nonans |
168 | 172 |
|
169 | 173 | #calculate cbv |
170 | | - fslmaths concdata -Tmean -mul `${FSLDIR}/bin/fslnvols concdata` concsum |
171 | | - fslmaths concaif -Tmean -mul `${FSLDIR}/bin/fslnvols concaif` aifsum |
| 174 | + fslmaths concdata -Tmean -mul `fslnvols concdata` concsum |
| 175 | + fslmaths concaif -Tmean -mul `fslnvols concaif` aifsum |
172 | 176 | fslmaths concsum -div aifsum cbv |
173 | 177 |
|
174 | 178 | # calcualte MTT |
@@ -241,8 +245,8 @@ if [ -z $modelfree ]; then |
241 | 245 | echo "Begin VM + MV analysis" |
242 | 246 |
|
243 | 247 | #calculate cbv - used for intitalisation (this is just a model-free calculation) |
244 | | - fslmaths concdata -Tmean -mul `${FSLDIR}/bin/fslnvols concdata` concsum |
245 | | - fslmaths concaif -Tmean -mul `${FSLDIR}/bin/fslnvols concaif` aifsum |
| 248 | + fslmaths concdata -Tmean -mul `fslnvols concdata` concsum |
| 249 | + fslmaths concaif -Tmean -mul `fslnvols concaif` aifsum |
246 | 250 | fslmaths concdata -div aifsum cbv |
247 | 251 |
|
248 | 252 | # sort out intial MVN |
|
0 commit comments