Hi Gang,
I tried to save the script to txt and execute it in terminal. But still got the same error:
** Error:
Illegal parameters on command line:
c("-prefix 3dMVM_test -jobs 1", "-bsVars A*B", "-mask wbrainmask_th05.nii", "-SS_type 3", "-num_glt 2", "-gltLabel 1 a1_b1_vs_b2 -gltCode 1 A : 1*a1 B : 1*b1-1*b2", "-gltLabel 2 a2_b1_vs_b2 -gltCode 2", "A : 1*a2 B : 1*b1-1*b2", "-dataTable @table_test.txt")
Try -allowed_options, or -help for details
Again, the script I'm using is:
3dMVM -prefix 3dMVM_test -jobs 1 -bsVars 'A*B' -mask mask.nii -SS_type 3 -num_glt 2 -gltLabel 1 a1_b1_vs_b2 -gltCode 1 'A : 1*a1 B : 1*b1-1*b2' -gltLabel 2 a2_b1_vs_b2 -gltCode 2 'A : 1*a2 B : 1*b1-1*b2' -dataTable @table_test.txt
The table_test.txt is:
Subj A B InputFile
s1 a1 b1 s1_rest_z.nii
s2 a1 b1 s2_rest_z.nii
s3 a1 b1 s3_rest_z.nii
s4 a1 b1 s4_rest_z.nii
s5 a2 b2 s5_rest_z.nii
s6 a2 b2 s6_rest_z.nii
s7 a2 b2 s7_rest_z.nii
s8 a2 b2 s8_rest_z.nii
s9 a1 b2 s9_rest_z.nii
s10 a1 b2 s10_rest_z.nii
s11 a1 b2 s11_rest_z.nii
s12 a1 b2 s12_rest_z.nii
s13 a2 b1 s13_rest_z.nii
s14 a2 b1 s14_rest_z.nii
s15 a2 b1 s15_rest_z.nii
s16 a2 b1 s16_rest_z.nii