Hi Everyone

I am trying to run the gPPI toolbox and I am getting two errors that I cannot understand. Can anyone give me any advice on this?

I get a message saying "Estimation Failed". When I debug it, it seems to go through the first part of the estimation okay () but at module PPPI, line 784, reference to 'SPM1.VM.fname' fails as there is no VM in the SPM1 structure.


Contrasts step is also giving error.

I have attached my wrapper functions and can send any other error messages or screenshots if someone has any clue / needs more information

===========================================================================
SCREENSHOTS
===========================================================================

In spm_XYZreg (line 383)
[d,i] = min(spm_XYZreg('Edist',varargin{2},varargin{3}));

In create_mask_image (line 61)
    [xyz,i] = spm_XYZreg('NearestXYZ',mask.XYZmm(:,v),XYZmm);

In set_mask (line 94)
         xY.mask=create_mask_image(SPM,region1,xY.XYZmm,maskdir);

In timeseries_extract (line 191)
            [xY,errorchk]=set_mask(SPM,P.VOI,region1,P.maskdir);

In PPPI (line 395)
    timeseries_extract;

In PPPI_v_2 (line 180)
    PPPI(gPPI_struct);

In PPI_script2b2_18_mar (line 99)
    PPPI_v_2(seed,directories,contrasts,prefix,data_dir,rootDIR)
===========================================================================