Hi Rick,
the Pearson correlation is computed in Python using the two extracted AFNI data lists that stem from the two computed variables.
This means that two giant lists of voxels are correlated against each other, yielding one correlation result.
You are right insofar as one could also correlate the data already in AFNI using 3dTcorrelate. The number of voxels (numeric values) per file would nonetheless remain the same.
I think that using a for loop, as suggested by Paul, (probably already in the shell script for AFNI) to extract the values per subject (instead of extracting the values from all subjects into one file) is a good solution.
Anyway, my problem is solved!
Philipp
Edited 1 time(s). Last edit at 07/07/2022 05:44AM by Philipp.