Somebody must have a solution for this, but I can't find one.
In a loop, I run:
3dROIstats -numROI 194 -zerofill NA -mask <path>/freesurfer_v6/$s/surf/SUMA/aparc.a2009s+aseg_rank_Alnd_Exp_noddi_frac+orig \
<path>/noddi/dset/derivatives/sub-"$s"/ses-S1/NODDI/NDI.nii.gz > <path>/noddi/dset/derivatives/sub-"$s"/ses-S1/NODDI/NDI_a2009.txt
The problem is that the ROI numbers don't line up for each subject. E.g.,
File Sub-brick ..................................Mean_ctx_rh_S_temporal_sup Mean_ctx_rh_S_temporal_transverse Mean_194
<path>/4153033/<file>+orig 0[#0] 192 193 NA
File Sub-brick...................................Mean_ctx_rh_S_temporal_inf Mean_ctx_rh_S_temporal_sup Mean_ctx_rh_S_temporal_transverse
<path>/1131032/<file>+orig 0[#0] 192 193 194
So, e.g., in subject 4153033, ROI #193 is Mean_ctx_rh_S_temporal_transverse, but in 1131032 ROI #193 is Mean_ctx_rh_S_temporal_sup.
I have been trying to get everyone into a single data file (row = subject; col = region), but obviously this will be a problem. Is there no solution to this in AFNI? Isn't this a big problem? I wouldn't have noticed without careful data checking because once you resample you lose the region name information. I had to verify this problem by looking at the viewer for both subjects. So how do people deal with this?
Thanks for any help!
Anthony