help > Error:PPI Contrasts were not estimated...
Showing 1-5 of 5 posts
Display:
Results per page:
Nov 17, 2017  08:11 AM | Xinyuan Yan
Error:PPI Contrasts were not estimated...
Dear Dr. McLaren,
I have tried many times whole day but still can solve this questions:
This is the error information:

%%%%%%%%%%%%%%%%%%%%
Estimation Failed
Warning: Missing conditions!!! Invalid Contrast
Invalid Contrast
Warning: Missing conditions!!! Invalid Contrast
Invalid Contrast
Warning: Missing conditions!!! Invalid Contrast
Invalid Contrast
PPI Contrasts were not estimated for some reason.
%%%%%%%%%%%%%%%%%%%%
After that, I type :SPM=spm_estimate_PPI(P.subject,'SPM.mat',P.Region,P.method,P.analysis,P.CompContrasts,0,[],0,0);
the error was reported as:
%%%%%%%%%%%%%%%%%%%%
Error spm_estimate_PPI (line 290)
SPM.xM.TH(:)=SPM1.xM.TH(:);
%%%%%%%%%%%%%%%%%%%

I debug the spm_estimate_PPI line by line, and the SPM.mat estimated from the PPI did not contain the SPM.xM, could this leads to the errors?
I have tried other thing, such as change the P.contrast, change the onset name to short, all these did not work...
Could you please help me with that?
Thanks a billion!

Sincerely,
Xinyuan
Dec 5, 2017  06:12 AM | Diane Shin
RE: Error:PPI Contrasts were not estimated...
Dear Dr. Yan and Dr. McLaren,

I have encountered a similar problem, and I was wondering whether you have resolved the issue.
I have two conditions each of which has one parametric modulator, and regressors include onset_condA, pmod_condA, onset_condB, pmod_condB, baseline(fixation), 6 head motion parameters X 3 sessions.


I first ran following code,

P.subject='Test';
P.directory=pwd;
P.VOI=[pwd filesep 'Thal_mask.nii'];
P.Region='Thal'
P.Estimate=1;
P.contrast=0;
P.extract='eig';
P.Tasks={'1' 'condA' 'condB' 'base'};
P.Weights=[];
P.analysis='psy';
P.method='cond';
P.CompContrasts=1;
P.Weighted=0;
P.ConcatR=0;
P.preservevarcorr=0;
P.Contrasts(1).name='condArate';
P.Contrasts(1).left={'condA'};
P.Contrasts(1).right={'None'};
P.Contrasts(1).Contrail={'condA_rate^1'}'
P.Contrasts(1).STAT='T';
P.Contrasts(2).name='condBrate';
P.Contrasts(2).left={'condB'};
P.Contrasts(2).right={'None'};
P.Contrasts(2).Contrail={'condB_rate^1'}'
P.Contrasts(2).STAT='T';



And I got this error message:

SPM12: spm_est_non_sphericity (v6827) 18:11:27 - 01/12/2017
========================================================================
Estimation Failed
Warning: Missing conditions!!! Invalid Contrast
Invalid Contrast
Warning: Missing conditions!!! Invalid Contrast
Invalid Contrast
PPI Contrasts were not estimated for some reason.


So, I modified the names of task conditions as they appeared in spm.xX.name:

P.Tasks={'0' 'condA_sess1' 'condA_rate_sess1^1' 'condB_sess1' 'condB_rate_sess1^1' 'condA_sess2' 'condA_rate_sess2^1' 'condB_sess2' 'condB_rate_sess2^1' 'condA_sess3' 'condA_rate_sess3^1' 'condB_sess3' 'condB_rate_sess3^1'};
P.Weights=[];
P.analysis='psy';
P.method='cond';
P.CompContrasts=1;
P.Weighted=0;
P.ConcatR=0;
P.preservevarcorr=0;
P.Contrasts(1).name='condA_curious';
P.Contrasts(1).left={'condA_sess1' 'condA_sess2' 'condA_sess3'};
P.Contrasts(1).right={'None'};
P.Contrasts(1).Contrail={'condA_rate_sess1^1' 'condA_rate_sess2^1' 'condA_rate_sess3^1'}'
P.Contrasts(1).STAT='T';
P.Contrasts(2).name='condB_curious';
P.Contrasts(2).left={'condB_sess1' 'condB_sess2' 'condB_sess3'};
P.Contrasts(2).right={'None'};
P.Contrasts(2).Contrail={'condB_rate_sess1^1' 'condB_rate_sess2^1' 'condB_rate_sess3^1'}'
P.Contrasts(2).STAT='T';


But I got the following error message:

SPM12: spm_est_non_sphericity (v6827) 18:14:02 - 01/12/2017
========================================================================
Estimation Failed
PPI Contrasts were not estimated for some reason.



I can't figure out what is causing the problem and how to fix it.
Could you please help me?


Sincerely,
Diane.

Originally posted by Xinyuan Yan:
Dear Dr. McLaren,
I have tried many times whole day but still can solve this questions:
This is the error information:

%%%%%%%%%%%%%%%%%%%%
Estimation Failed
Warning: Missing conditions!!! Invalid Contrast
Invalid Contrast
Warning: Missing conditions!!! Invalid Contrast
Invalid Contrast
Warning: Missing conditions!!! Invalid Contrast
Invalid Contrast
PPI Contrasts were not estimated for some reason.
%%%%%%%%%%%%%%%%%%%%
After that, I type :SPM=spm_estimate_PPI(P.subject,'SPM.mat',P.Region,P.method,P.analysis,P.CompContrasts,0,[],0,0);
the error was reported as:
%%%%%%%%%%%%%%%%%%%%
Error spm_estimate_PPI (line 290)
SPM.xM.TH(:)=SPM1.xM.TH(:);
%%%%%%%%%%%%%%%%%%%

I debug the spm_estimate_PPI line by line, and the SPM.mat estimated from the PPI did not contain the SPM.xM, could this leads to the errors?
I have tried other thing, such as change the P.contrast, change the onset name to short, all these did not work...
Could you please help me with that?
Thanks a billion!

Sincerely,
Xinyuan
Dec 16, 2017  08:12 AM | Xinyuan Yan
RE: Error:PPI Contrasts were not estimated...
Hi Diane,
Since the gPPI tool cannot solve the problems, I used the PPI analysis in SPM. 
Hope that helpful.
Best,
Xinyuan
Dec 16, 2017  04:12 PM | Donald McLaren
RE: Error:PPI Contrasts were not estimated...
Hi Xinyuan,

The issue is that the model is not being estimated properly. I suspect that when you ran the SPM=spm_estimate_PPI command a second time, it was using the gPPI SPM.mat and you were in that directory.

If you still have the SPM.mat file generated by gPPI, that did not estimate, I can take a look at it. Alternatively, if you send me the original SPM.mat file, I can take a look at what the issue is in the data.

Did you have P.WB=1 or P.WB=0? That might be the first thing to check.

Best,
Donald
Dec 16, 2017  04:12 PM | Donald McLaren
RE: Error:PPI Contrasts were not estimated...
Hi Diane,

I suspect the issue in this case is the task names. Can you try: P.Tasks={'1' 'condA' 'condB'}.

This tells the program that there are two conditions and that both conditions should exist in all runs. In your first attempt, you had 'base' as a condition that did not exist. In your second attempt, you listed the column names and not the task names.

Best,
Donald
Originally posted by Diane Shin:
Dear Dr. Yan and Dr. McLaren,

I have encountered a similar problem, and I was wondering whether you have resolved the issue.
I have two conditions each of which has one parametric modulator, and regressors include onset_condA, pmod_condA, onset_condB, pmod_condB, baseline(fixation), 6 head motion parameters X 3 sessions.


I first ran following code,

P.subject='Test';
P.directory=pwd;
P.VOI=[pwd filesep 'Thal_mask.nii'];
P.Region='Thal'
P.Estimate=1;
P.contrast=0;
P.extract='eig';
P.Tasks={'1' 'condA' 'condB' 'base'};
P.Weights=[];
P.analysis='psy';
P.method='cond';
P.CompContrasts=1;
P.Weighted=0;
P.ConcatR=0;
P.preservevarcorr=0;
P.Contrasts(1).name='condArate';
P.Contrasts(1).left={'condA'};
P.Contrasts(1).right={'None'};
P.Contrasts(1).Contrail={'condA_rate^1'}'
P.Contrasts(1).STAT='T';
P.Contrasts(2).name='condBrate';
P.Contrasts(2).left={'condB'};
P.Contrasts(2).right={'None'};
P.Contrasts(2).Contrail={'condB_rate^1'}'
P.Contrasts(2).STAT='T';



And I got this error message:

SPM12: spm_est_non_sphericity (v6827) 18:11:27 - 01/12/2017
========================================================================
Estimation Failed
Warning: Missing conditions!!! Invalid Contrast
Invalid Contrast
Warning: Missing conditions!!! Invalid Contrast
Invalid Contrast
PPI Contrasts were not estimated for some reason.


So, I modified the names of task conditions as they appeared in spm.xX.name:

P.Tasks={'0' 'condA_sess1' 'condA_rate_sess1^1' 'condB_sess1' 'condB_rate_sess1^1' 'condA_sess2' 'condA_rate_sess2^1' 'condB_sess2' 'condB_rate_sess2^1' 'condA_sess3' 'condA_rate_sess3^1' 'condB_sess3' 'condB_rate_sess3^1'};
P.Weights=[];
P.analysis='psy';
P.method='cond';
P.CompContrasts=1;
P.Weighted=0;
P.ConcatR=0;
P.preservevarcorr=0;
P.Contrasts(1).name='condA_curious';
P.Contrasts(1).left={'condA_sess1' 'condA_sess2' 'condA_sess3'};
P.Contrasts(1).right={'None'};
P.Contrasts(1).Contrail={'condA_rate_sess1^1' 'condA_rate_sess2^1' 'condA_rate_sess3^1'}'
P.Contrasts(1).STAT='T';
P.Contrasts(2).name='condB_curious';
P.Contrasts(2).left={'condB_sess1' 'condB_sess2' 'condB_sess3'};
P.Contrasts(2).right={'None'};
P.Contrasts(2).Contrail={'condB_rate_sess1^1' 'condB_rate_sess2^1' 'condB_rate_sess3^1'}'
P.Contrasts(2).STAT='T';


But I got the following error message:

SPM12: spm_est_non_sphericity (v6827) 18:14:02 - 01/12/2017
========================================================================
Estimation Failed
PPI Contrasts were not estimated for some reason.



I can't figure out what is causing the problem and how to fix it.
Could you please help me?


Sincerely,
Diane.

Originally posted by Xinyuan Yan:
Dear Dr. McLaren,
I have tried many times whole day but still can solve this questions:
This is the error information:

%%%%%%%%%%%%%%%%%%%%
Estimation Failed
Warning: Missing conditions!!! Invalid Contrast
Invalid Contrast
Warning: Missing conditions!!! Invalid Contrast
Invalid Contrast
Warning: Missing conditions!!! Invalid Contrast
Invalid Contrast
PPI Contrasts were not estimated for some reason.
%%%%%%%%%%%%%%%%%%%%
After that, I type :SPM=spm_estimate_PPI(P.subject,'SPM.mat',P.Region,P.method,P.analysis,P.CompContrasts,0,[],0,0);
the error was reported as:
%%%%%%%%%%%%%%%%%%%%
Error spm_estimate_PPI (line 290)
SPM.xM.TH(:)=SPM1.xM.TH(:);
%%%%%%%%%%%%%%%%%%%

I debug the spm_estimate_PPI line by line, and the SPM.mat estimated from the PPI did not contain the SPM.xM, could this leads to the errors?
I have tried other thing, such as change the P.contrast, change the onset name to short, all these did not work...
Could you please help me with that?
Thanks a billion!

Sincerely,
Xinyuan