Hi Dr McLaren (and everyone),
Thank you for providing the gPPI toolbox.
I have an event-related task with 4 conditions, where each trial randomly presented and is separated with an intertrial interval (rest/fixation-cross) period. The 1st level model space has conditions specified as the regressors of interest, and noise regressors of no interest.
I have successfully managed to run the example data upon downloading the toolbox and changing a couple of the scripts with the scripts I collected from the posts in this forum. However, when I run the toolbox on my data, I ran into errors. I managed to fix some of them but the issue still continues.
In running the data, I used the following P structure;
P.subject: '152'
P.directory: '/path/to/subject/1st_level'
P.VOI:'/path/to/subject /PPI_1st/masks/vmPFC_mask.nii'
P.Region: 'vmPFC'
P.Estimate: 1
P.extract: 'eig'
P.Tasks: {'0' 'CondA' 'CondB' 'CondC' 'CondD'}
P.Weights: []
P.maskdir: '/path/to/subject/1st_level'
P.equalroi: 0
P.FLmask: 0
P.analysis: 'psy'
P.method: 'cond'
P.CompContrasts: 0
P.Contrasts(1).name='PPI_CondB_CondA
P.Contrasts(1).left='CondB'
P.Contrasts(1).right='CondA'
P.Contrasts(1).MinEvents=20
P.Contrasts(1).STAT='T'
P.Contrasts(2).name='PPI_CondC_CondA'
P.Contrasts(2).left='CondC'
P.Contrasts(2).right='CondA'
P.Contrasts(2).MinEvents=20
P.Contrasts(2).STAT='T'
P.Contrasts(3).name='PPI_CondD_CondA'
P.Contrasts(3).left='CondD'
P.Contrasts(3).right='CondA'
P.Contrasts(3).MinEvents=20
1) When I run gPPI on my data, I got the output below, then estimation failed. It creates SPM.mat file with missing fields. Looking at the SPM fields created I realized the toolbox seemed not to extract the timeseries from the mask (Timeseries regressors for the mask is all NaN).
2) Adding P.preservevarcorr=1 to the āPā parameter structure (preserving variance correction estimated from the 1st level), lets the estimation go through a little bit more, but the estimation still gets stuck at the estimation of spatial non-sphericity.
I am not sure whether estimation fails because of a problem with the time-series extraction or the timeseries extraction fails because of the estimation problem.
Any advice, insight and help would be greatly appreciated!!
###################################
Valid Contrast
Warning: Missing conditions!!! Invalid Contrast
Invalid Contrast
Warning: Missing conditions!!! Invalid Contrast
Invalid Contrast
Valid Contrast
Warning: Missing conditions!!! Invalid Contrast
Invalid Contrast
Warning: Missing conditions!!! Invalid Contrast
Invalid Contrast
Valid Contrast
Warning: Missing conditions!!! Invalid Contrast
Invalid Contrast
Warning: Missing conditions!!! Invalid Contrast
Invalid Contrast
Valid Contrast
Warning: Missing conditions!!! Invalid Contrast
Invalid Contrast
Warning: Missing conditions!!! Invalid Contrast
Invalid Contrast
ESS image 1 : ...written ess_0001.nii
spm{F} image 1 : ...written spmF_0001.nii
Saving SPM.mat : ...SPM.mat saved
Contrast : Omnibus F-test for PPI Analyses
Analysis : Psychophysiological Interactions
Extraction : eigenvariate
Tasks : _0_CondA_CondB_CondC_CondD
Method : Condition Specific
VOI has 305 voxels in 1.600000e+00x1.600000e+00x1.600000e+00 space
VOI has 299 voxels in 1.600000e+00x1.600000e+00x1.600000e+00 space. This is in the the same space as the input data and functional mask.
SPM12: spm_fMRI_design (v7739) 16:26:19 - 01/04/2024
========================================================================
Saving fMRI design : ...SPM.mat saved
estimate_PPI.m
SPM12: spm_spm (v7738) 16:26:19 - 01/04/2024
========================================================================
SPM12: spm_est_non_sphericity (v7577) 16:26:20 - 01/04/2024
========================================================================
Chunk 14/14 : ...processing
Temporal non-sphericity (389069 voxels) : ...ReML estimation
ReML Block 1
ReML Iteration 1 : ...5.320800e+02 [+4.25]
ReML Iteration 2 : ...1.353607e+00 [+4.50]
ReML Iteration 3 : ...3.922695e-02 [+4.75]
ReML Iteration 1 : ...5.113526e+02 [+5.00]
ReML Iteration 2 : ...1.246122e+00 [+5.25]
ReML Iteration 3 : ...2.388505e-02 [+5.50]
ReML Iteration 1 : ...5.080476e+02 [+5.75]
ReML Iteration 2 : ...1.484955e+00 [+6.00]
ReML Iteration 3 : ...1.730745e-02 [+6.25]
SPM12: spm_spm (v7738) 16:28:08 - 01/04/2024
========================================================================
Chunk 14/14 : ...done
Spatial non-sphericity (over scans) :
Estimation failed.