I want to get an average beta value for each slice along an ROI. I saw that 3dmaskave's -slice option only goes in the z-direction, but in my data slices are in the y-direction. I am currently trying to do it using 3dmaskdump, but that gives me many betas and I would need to average them afterwards. Is there a better way to do this? this is my current 3dmaskdump command to get values from where y=17:
3dmaskdump -mask ../../ROIs.nii_ANTS+tlrc. -mrange 13 24 -xyz -cmask '-a ../../ROIs.nii -expr 1-bool(j-17)' -o test stats.101_ANTS+tlrc.