HI SPMers,
We are doing a PPI analysis with a Faces task that has a block design with alternating blocks of shapes (control) and a faces expression type (either angry, fearful, surprise, or neutral). We are running the analysis with the SPM PPI tool through matlab with my scripts in a cluster environment so we can batch subjects, so instead of just using the GUI we are using the following line:
PPI = spm_peb_ppi(SPM,'ppi','VOI.mat',[SUB_MATRIX_SUB],'SUB_OUTPUT_SUB.mat',1);
- The output (PPI) is the variable that holds the resulting matrix with the PPI.ppi, PPI.P, and PPI.Y values that we will use as regressors in single subject analysis.
- "SPM" is simply the SPM.mat after we have loaded it
-"ppi" specifies the type of interaction
So, for example, a subject that had the following design:
"VOI.mat" was also generated on the cluster with scripts, but the equivalent would be clicking the eigenvariate button in the Results GUI and selecting a functionally and anatomically defined mask to extract the values from for the single subject. (It is defined by the group BOLD map for the faces task the same group of subjects that we are doing the PPI analysis with, limited to either the right or left amygdala (Pickatlas))
SUB_OUTPUT_SUB.mat is obviously a dummy variable that gets filled with the name of the output .mat, and most importantly:
[SUB_MATRIX_SUB] Here is where I need help!! This is the design matrix that is supposed to be a structural array of condition numbers, runs, and weights. So if we have a subject with the following design:
[Shapes] [Fear] [Shapes] [Anger] [Shapes] [Surprise] [Shapes] [Neutral] [Shapes]
if we want to look at Fear > Shapes, we would use the following matrix:
[1,1,-1; 2,1,1]
Meaning that the first block, shapes, gets a weight of -1, and the second block, Fear, get's a weight of 1. When we run this for just over a hundred subjects and look at the group maps, they look good! However, when we get to the contrast "Faces > Shapes" - we are running into trouble.
My first inclination was to do the following for "Faces > Shapes"
Faces block weight: 4 blocks * (1/9) (percent of task / block) * X (weight) needs to equal 5/9
So if I could get the faces block weights to sum to 5/4, that would technically work:
"(5/4)(4/9) + -1(5/9) = 0
so I tried it with each faces block with a weight of .3125, and that did appear to fix the crazy looking negative PPI image, but I think this is... very wrong :P I haven' looked at the SPM PPI tool script in detail, but I would guess that it automatically takes into account the size of the various conditions as a percentage of the total task. We are sort of stuck at the moment, so I wanted to take initiative and reach out to the SPM community looking for help! The information that we need is the following:
1) Correct matrix to use for PPI analysis with just one affect (Fear > Shapes, for example)
2) Correct matrix to use for PPI analysis with four blocks of faces (Faces > Shapes)