AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
July 05, 2019 10:21AM
Hi Tianshu,

It is difficult to say for certain without the data. Since -polort -1 is used, that assumes there are basically no trends in the data, including non-zero mean. Is that assumption valid?

Note that if you simply want a volume that is, for each voxel, the average correlation with those voxels in the mask, there is a much faster way to do it (which can be seen in a typical afni_proc.py script). Note that the proc script does not make use of 3dTcorr1D, which I do here. For example:

3dTnorm -norm2 -prefix rm.errts.unit errts.${subj}+tlrc
3dmaskave -quiet -mask full_mask.$subj+tlrc rm.errts.unit+tlrc  \
          > gmean.errts.unit.1D
3dTcorr1D -dot -prefix corr_brain rm.errts.unit+orig gmean.errts.unit.1D

If that is all you want, this should be much faster.

Of course, this still does not address why your values were all approximately 1. That is likely because they were not detrended yet. In my example, the input is the errts dataset, which has indeed has no trends, up to the order used in the linear regression model.

- rick
Subject Author Posted

Question about 3dTcorrMap Attachments

Sue_TS July 05, 2019 03:44AM

Re: Question about 3dTcorrMap

rick reynolds July 05, 2019 10:21AM