It is my goal to add all 124 sub-briks from a dataset into one grand-sum 3D file. Is there a more efficient way to do this than 3dcalc -a data[0] -b data[1]… ? Is there some way to specify the n that I want to divide by for 3dmean? As of right now it automatically assumes the divisor to be 124 obviously. Any ideas?? If not, I’ve never used 3dcalc beyond -z, once it loops back around does it become -aa, -ab …?
Additionally, I tried 3dMean -sum, but this does not work as it adds together all the input datasets, not the sub-briks within a dataset, so the output for me (for one dataset) is the same as the input.
I tried that out and for some reason it isn’t working, though logically everything seems like the right move. It is performing voxelwise addition right? So voxel x1, y1, z1 from each of my 120 sub-briks should be added together? When I look at the results this does not seem to be the case, as my output files have extremely small values at each voxel (0.0000x), despite the input sub-briks being z-scored, with values ranging from 0 to ±4.
Well, if you don’t want to post the dset names, you could just post the result of:
3dinfo -dmin -dmax [list of all dsets]
–pt
ps: I also meant to note that there is an “-abssum” option in 3dTstat, if you want the sum of the absolute values of data values.
The
National Institute of Mental Health (NIMH) is part of the National Institutes of
Health (NIH), a component of the U.S. Department of Health and Human
Services.