Skip to content

Commit

Permalink
Add log CBF option
Browse files Browse the repository at this point in the history
  • Loading branch information
mcraig-ibme committed Mar 5, 2020
1 parent 439f121 commit 17f6fb3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions verbena.in
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ until [ -z $1 ]; do
;;
-modelfreeinit) modelfreeinit=1
;;
-logcbf) logcbf=1
;;
-debug) debug=1;; #debugging option
*) Usage
echo "Error! Unrecognised option on command line: $1"
Expand Down Expand Up @@ -198,6 +200,7 @@ if [ -z $modelfree ]; then
echo "--noise=white" >> core_options.txt
echo "--model=dsc" >> core_options.txt
echo "--allow-bad-voxels" >> core_options.txt
echo "--save-model-fit" >> core_options.txt
echo "--te=$te" >> core_options.txt
echo "--delt=$tr" >> core_options.txt
echo "--inferdelay" >> core_options.txt
Expand All @@ -207,6 +210,14 @@ if [ -z $modelfree ]; then
# the aif is concentration and we need to tell fabber
echo "--aifconc" >> core_options.txt
fi

if [ ! -z $logcbf ]; then
# Infer log of CBF internally. Need to increase prior
# precision slightly to avoid overflows
echo "--PSP_byname1=cbf" >> core_options.txt
echo "--PSP_byname1_transform=L" >> core_options.txt
echo "--PSP_byname1_prec=0.0001" >> core_options.txt
fi

echo "#Verbena analysis options (VM)" > options.txt
cat core_options.txt >> options.txt
Expand Down

0 comments on commit 17f6fb3

Please sign in to comment.