Another option would be to use gen_group_command.py to help write the 3dttest++ command. You can use shell wildcard expansion to list all datasets, and specify sub-bricks via labels. Consider this example from the class data,
AFNI_data6/group_results/s5.ttest.paired :
gen_group_command.py -command 3dttest++ \
-write_script s5.ttest.paired -prefix stat.5.ttest \
-dsets OLSQ.*.HEAD \
-set_labels Vrel Arel \
-subs_betas 'Vrel#0_Coef' 'Arel#0_Coef' \
-options -paired
See the "
gen_group_command.py -help" output for more complex examples of 3dttest++ commands (example section A).
- rick