is there any way in AFNI to compute the spatial correlation (or projection) between a 3d dataset (say a probabilistic map of a resting state network) and a 3d+time dataset (e.g. a preprocessed EPI volume time series, or better a time series of residuals after having regressed out potential confounds)? This should output a 1D timecourse.
This is similar to what 3ddot does, but without the need to compute all the correlation pairs: just the correlation between a reference 3d template and all the time points of a 3d+t dataset.
I have the feeling that this was discussed many years ago, but I cannot find the topic anymore...
thanks for the quick reply. Yes, I think that works, but I was wondering whether there was some time-saving shortcut to avoid computing all the pairwise correlations. The note in the help message saying "This program is not efficient when more than two subbricks are input." made me think that maybe there was an alternative way.
You can probably also abuse the way output comes using head:
3ddot -demean 3d.template+tlrc"[0]" 3d+t.dataset+tlrc | head -n 1 > giuseppe_test2.1D
rick
The
National Institute of Mental Health (NIMH) is part of the National Institutes of
Health (NIH), a component of the U.S. Department of Health and Human
Services.