create circle ROI in surface space

Hi,

I am running searchlight RSA. My existing pipeline involves using python to create spheres across the whole 3D brain (volumetric data) , loop through spheres and assign effect estimation to the center of the sphere.
If I have surface data generated in AFNI (.niml.dset), is there a way to draw 2d circles on surface using all possible centers (preferably in python)?

best,
Mengxing

Hi-

Does SurfLocalstat have the functionality you want?

Note that its volumetric cousin, 3dLocalstat, might also do what you are describing volumetrically, too, then.

--pt

Thanks Paul. It looks like it’s able to compute summaries within the mask. What I would want to achieve is to extract raw time series for each node within the neighbors.
Say a time series of 100 TRs, for a mask of 50 nodes, I would want to get a 50*100 matrix, instead of stats.

I was thinking you could calculate:

SurfLocalstat  \
   -hood 10    \
   -stat mean  \
   -prefix data_mean_10mm 

... and then every node will hold the mean of values within a 10mm radius of itself. If you only want a subset of 50 of those, fine, you can select those out.

--pt