help > RunOnSampleData error
Nov 6, 2018  12:11 PM | Belinda Liddell - UNSW Sydney
RunOnSampleData error
Dear Donald and team,

I'm attempting to set up gPPI to run on SPM12.

These are the steps I have taken:

1. Altered line 278 in PPi.m file based on https://www.nitrc.org/forum/message.php?msg_id=15251

i.e. if ~strcmp(spm('Ver'),'SPM8') && ~strncmpi(spm('Ver'),'SPM12',5) %updated

2. Downloaded spm_estimate_PPI.m patch from Donald via forum post on 30 Nov 2016.

3. Testing on sample data: Downloaded and run "running_gPPI" from NITRC, and followed the instructions in the gPPI manual for Windows.


While SPM.m appears to estimate, and I still get the same error that many have reported: "PPI Contrasts were not estimated for some reason." My sample files contain the beta.NIFTI files, SPM.mat, mask.nii, ResMS.nii and RPV.nii files, but I'm missing all the other files.

This is the output I see in Matlab (R2016b):

spmpath =

C:\Program Files (x86)\spm12
errorval =
createVec is not in path. createVec should be one in the same folder as the PPPI directory.
errorval =
defContrasts is not in path. defContrasts should be one in the same folder as the PPPI directory.
Log File: sampleData_Study_PPPI_11_6_2018.log
PPPI Version: 13.1.4-17-2014
Parameters used:
Processing subject: sampleData_Study
VOI file          : H:\MatlabScripts\gPPI\running_gPPI_generic\rmedPrecCing.nii
Output file will be: sampleData_Study_rmedPrec_session#_cond_PPI_regressors.txt
Contrast          : No adjustment
Analysis          : Psychophysiological Interactions
Extraction        : eigenvariate
Tasks             : _0_etoh_on_onsets_run1_etoh_off_onsets_run1_etoh_urge_onsets_run1_attn_on_onsets_run1_attn_off_onsets_run1_attn_urge_onsets_run1_etoh_on_onsets_run2_etoh_off_onsets_run2_etoh_urge_onsets_run2_attn_on_onsets_run2_attn_off_onsets_run2_attn_urge_onsets_run2
Method            : Condition Specific
VOI has 549 voxels in 3x3x3 space
VOI has 549 voxels in 3x3x3 space. This is in the the same space as the input data and functional mask.
VOI has 549 voxels in 3x3x3 space
VOI has 549 voxels in 3x3x3 space. This is in the the same space as the input data and functional mask.
SPM12: spm_fMRI_design (v5183)                     15:51:02 - 06/11/2018
========================================================================
Saving fMRI design                      :               ...SPM.mat saved
estimate_PPI.m
SPM12: spm_spm (v6842)                             15:51:02 - 06/11/2018
========================================================================
Chunk   3/3                             :                        ...done
Spatial non-sphericity (over scans)     :                        ...done
Saving SPM.mat                          :                        ...done
Completed                               :          15:51:12 - 06/11/2018
PPI Contrasts were not estimated for some reason.

>>>>>>>>>>>>
The other thing I did was to change the directory name from SPM12/toolbox/PPPIv13 to SPM12/toolbox/PPPI as this seemed to give me a warning signal in Matlab.

I'd appreciate any assistance you could offer.


Many thanks,

Belinda