Hi, Tsuyoshi--
Well, welcome to AFNI, then.
3dNetCorr would be my suggestion. An example of using the command is given in this recent post:
[
afni.nimh.nih.gov]
... and you can also check out the helpfile and see if it provides what you want.. Basically, you can put in a time series data set and a map of ROIs, and then the function calculates the mean time series of each region and plops out the correlation matrix results in a couple different formats, one of which is a text file that can be plotted most easily with fat_mat_sel.py.
Feel free to take those for a test drive, and to ask questions as you go. I note that there is also an example script in the FATCAT Demo, as described here, which you can download:
[
afni.nimh.nih.gov]
the 3dNetCorr example script is currently: Do_12_RUNrsfc_netw_corr.tcsh.
--pt