Skip to content
Snippets Groups Projects
Commit 1d0b5480 authored by Saad Jbabdi's avatar Saad Jbabdi
Browse files

added two options to bedpostx

parent 889d020a
No related branches found
No related tags found
No related merge requests found
...@@ -50,12 +50,16 @@ echo subjectdir is $subjdir ...@@ -50,12 +50,16 @@ echo subjectdir is $subjdir
nfibres=2 nfibres=2
fudge=1 fudge=1
burnin=1000 burnin=1000
njumps=1250
sampleevery=25
while [ ! -z "$2" ] while [ ! -z "$2" ]
do do
case "$2" in case "$2" in
-n) nfibres=$3;shift;; -n) nfibres=$3;shift;;
-w) fudge=$3;shift;; -w) fudge=$3;shift;;
-b) burnin=$3;shift;; -b) burnin=$3;shift;;
-j) njumps=$3;shift;;
-s) sampleevery=$3;shift;;
*) break;; *) break;;
esac esac
shift shift
...@@ -130,7 +134,7 @@ EOM ...@@ -130,7 +134,7 @@ EOM
monitorpid=$! monitorpid=$!
fi fi
for ((slice=0; slice < $nslices; slice++)) ; do for ((slice=0; slice < $nslices; slice++)) ; do
echo "${FSLDIR}/bin/bedpostx_single_slice.sh $subjdir $nfibres $fudge $burnin $slice" \ echo "${FSLDIR}/bin/bedpostx_single_slice.sh $subjdir $nfibres $fudge $burnin $njumps $sampleevery $slice" \
>> ${subjdir}.bedpostX/commands.txt >> ${subjdir}.bedpostX/commands.txt
done done
bedpostid=`${FSLDIR}/bin/fsl_sub -j $preprocid -l ${subjdir}.bedpostX/logs -M $mailto -N bedpostx -t ${subjdir}.bedpostX/commands.txt` bedpostid=`${FSLDIR}/bin/fsl_sub -j $preprocid -l ${subjdir}.bedpostX/logs -M $mailto -N bedpostx -t ${subjdir}.bedpostX/commands.txt`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment