Finding Correlation Matrix w/ Defined Sperical ROIs

Hi, Sandra-

I'll note this demo for reference:
Working with ROIs

If you have the (x,y,z) coordinates of a voxel in RAI coordinates that apply to a particular dataset DSET, you would want to make a sphere around, with a given radius RADIUS, then you could do:

# Create spheres in a volume (from which we will make surfaces)
3dUndump                                  \
    -master DSET                 \
    -srad RADIUS                            \
    -prefix DSET_ROI                    \
    -xyz                                  \
    -orient RAI                           \
    vol_sphere_coords_labeled.1D

... where the file vol_sphere_coords_labeled.1D can contain 4 columns, in this order:

xcoord ycoord zcoord roi_val

Then, to calculate the correlation matrix of those ROIs, as well as whole brain seed correlation maps, I would do:

  3dNetCorr                                   \
      -inset DSET_4D               \
      -in_rois DSET_ROI              \
      -fish_z                                 \
      -ts_wb_corr                             \
      -prefix CORR

--pt