help
help > RE: Error:PPI Contrasts were not estimated...
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:
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
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
Threaded View
| Title | Author | Date |
|---|---|---|
| Xinyuan Yan | Nov 17, 2017 | |
| Diane Shin | Dec 5, 2017 | |
| Donald McLaren | Dec 16, 2017 | |
| Xinyuan Yan | Dec 16, 2017 | |
| Donald McLaren | Dec 16, 2017 | |
