AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
david m henkel
May 13, 2008 02:14PM
I am attempting to run the 3dcalc command in 3dttest in order to use percent change on the data using the following script.

#!/bin/tcsh -f

@ a_str = 34
@ b_str = 2

cd /mnt/stor0/bitrec/proj2/patients/

3dttest \\
-prefix P_neutral_ttest \\
-session /mnt/stor0/bitrec/proj2/groupanalysis/ \\
-base1 0 \\
-set2 \\
\"3dcalc( -a 2-0003-1/briks/2-0003-1_end12_decon+tlrc[${a_str}] -b 2-0003-1/briks/2-0003-1_end12_decon+tlrc[${b_str}] -expr (a/b)*(100) )\" \\
\"3dcalc( -a 2-0003-2/briks/2-0003-2_end12_decon+tlrc[${a_str}] -b 2-0003-2/briks/2-0003-2_end12_decon+tlrc[${b_str}] -expr (a/b)*(100) )\" \\
\"3dcalc( -a 2-0003-3/briks/2-0003-3_end12_decon+tlrc[${a_str}] -b 2-0003-3/briks/2-0003-3_end12_decon+tlrc[${b_str}] -expr (a/b)*(100) )\" \\
\"3dcalc( -a 2-0010-1/briks/2-0010-1_end12_decon+tlrc[${a_str}] -b 2-0010-1/briks/2-0010-1_end12_decon+tlrc[${b_str}] -expr (a/b)*(100) )\" \\
\"3dcalc( -a 2-0010-3/briks/2-0010-3_end12_decon+tlrc[${a_str}] -b 2-0010-3/briks/2-0010-3_end12_decon+tlrc[${b_str}] -expr (a/b)*(100) )\" \\
\"3dcalc( -a 2-0011-1/briks/2-0011-1_end12_decon+tlrc[${a_str}] -b 2-0011-1/briks/2-0011-1_end12_decon+tlrc[${b_str}] -expr (a/b)*(100) )\" \\
\"3dcalc( -a 2-0011-2/briks/2-0011-2_end12_decon+tlrc[${a_str}] -b 2-0011-2/briks/2-0011-2_end12_decon+tlrc[${b_str}] -expr (a/b)*(100) )\" \\
\"3dcalc( -a 2-0011-3/briks/2-0011-3_end12_decon+tlrc[${a_str}] -b 2-0011-3/briks/2-0011-3_end12_decon+tlrc[${b_str}] -expr (a/b)*(100) )\" \\
\"3dcalc( -a 2-0013-1/briks/2-0013-1_end12_decon+tlrc[${a_str}] -b 2-0013-1/briks/2-0013-1_end12_decon+tlrc[${b_str}] -expr (a/b)*(100) )\" \\
\"3dcalc( -a 2-0013-2/briks/2-0013-2_end12_decon+tlrc[${a_str}] -b 2-0013-2/briks/2-0013-2_end12_decon+tlrc[${b_str}] -expr (a/b)*(100) )\"

When the script is run I recieve the following output in terminal.

++ 3dttest: AFNI version=AFNI_2008_02_01_1144 (Apr 18 2008) [64-bit]
++ Expanded -set2:: \'3dcalc( -a 2-0003-1/briks/2-0003-1_end12_decon+tlrc[34]\' \'3dcalc( -a 2-0003-2/briks/2-0003-2_end12_decon+tlrc[34]\' \'3dcalc( -a 2-0003-3/briks/2-0003-3_end12_decon+tlrc[34]\' \'3dcalc( -a 2-0010-1/briks/2-0010-1_end12_decon+tlrc[34]\' \'3dcalc( -a 2-0010-3/briks/2-0010-3_end12_decon+tlrc[34]\' \'3dcalc( -a 2-0011-1/briks/2-0011-1_end12_decon+tlrc[34]\' \'3dcalc( -a 2-0011-2/briks/2-0011-2_end12_decon+tlrc[34]\' \'3dcalc( -a 2-0011-3/briks/2-0011-3_end12_decon+tlrc[34]\' \'3dcalc( -a 2-0013-1/briks/2-0013-1_end12_decon+tlrc[34]\' \'3dcalc( -a 2-0013-2/briks/2-0013-2_end12_decon+tlrc[34]\'
3dttest: t-tests of 3D datasets, by RW Cox
+++ Executing 3dcalc()
++ 3dcalc: AFNI version=AFNI_2008_02_01_1144 (Apr 18 2008) [64-bit]
++ Authored by: A cast of thousands
** FATAL ERROR: No expression given!
*** 3dcalc() failed - no dataset created
** FATAL ERROR: Unable to open dataset file 3dcalc( -a 2-0003-1/briks/2-0003-1_end12_decon+tlrc[34]

I am running Version AFNI_2008_02_01_1144 on SunOS cthulhu 5.10 Generic_118833-17 sun4u sparc SUNW,Sun-Fire-880

Thanks
Subject Author Posted

3dcalc command in 3dttest

david m henkel May 13, 2008 02:14PM

Re: 3dcalc command in 3dttest

rick reynolds May 13, 2008 02:47PM