Dear Sergio,
this is a bug that was caused by treating the output from spm_select
as cell arrays (we switched from spm_get to spm_select in SPM5).
I have fixed this problem in the SPM code, the change will become
available with the next update (John - could you maybe provide an
update next week?). In the meantime, everyone using PPIs (or
physio-physio interactions) via the GUI can replace lines 112-140 in
spm_peb_ppi with the following lines of code:
case 'simple deconvolution'
%=====================================================================
spm_input('physiological variable:... ',2,'d');
voi = spm_select(1,'^VOI.*\.mat$',{'select VOI'});
p = load(deblank(voi(:))','xY');
xY(i) = p.xY;
Sess = SPM.Sess(xY(1).Sess);
case 'physiophysiologic interaction' % interactions between 2 regions
%=====================================================================
spm_input('physiological variables:... ',2,'d');
voi = spm_select(2,'^VOI.*\.mat$',{'select VOIs'});
for i = 1:2
p = load(deblank(voi(i,:)),'xY');
xY(i) = p.xY;
end
Sess = SPM.Sess(xY(1).Sess);
case 'psychophysiologic interaction' % get hemodynamic response
%=====================================================================
spm_input('physiological variable:... ',2,'d');
voi = spm_select(1,'^VOI.*\.mat$',{'select VOI'});
p = load(deblank(voi(:))','xY');
xY(1) = p.xY;
Sess = SPM.Sess(xY(1).Sess);
Best wishes,
Klaas
At 07:54 12/05/2006, you wrote:
>Forwarding message below on behalf of Sergio Arana. Any help
>gratefully received.
>
>Best wishes
>Paul Fletcher
>
>
>Subject: (spm5) PPI error at 138
>
>Dear All,
>
>I got the following error after selecting a VOI for a psychophysiological
>interaction:
>
>??? Cell contents reference from a non-cell array object.
>
>Error in ==> spm_peb_ppi at 138
> p = load(P{1},'xY');
>
>??? Error using ==> spm_peb_ppi
>Cell contents reference from a non-cell array object.
>
>Can someone clarify what this error means and how I should go about
>resolving it?
>
>My specified design matix includes 2 sessions with 2 conditions per
>session. When extracting the time-series for the VOI, spm5 forces you to
>choose one of the 2 sessions (scalar required). Is the above error occuring
>because the VOI only represents 1 of the 2 sessions specified in the design
>matrix? If so, how can I create a VOI with the extracted time-series of
>both sessions?
>
>Thanks in advance,
>
>Sergio
>
>
>Hi Paul,
>I cannot get authorization to post on the list. I believe there is
>some problem regarding the security settings on my laptop and the
>cookie requirements of the SPM list. Could you post the message
>below for me when your able? Thanks! By the way, I saw on the
>archives that a couple other subscribers recently got the same
>error. Unfornately, nobody responded to them.
>
>Best,
>Sergio
>
>
>Subject: (spm5) PPI error at 138
>
>Dear All,
>
>I got the following error after selecting a VOI for a
>psychophysiological interaction:
>
>??? Cell contents reference from a non-cell array object.
>
>Error in ==> spm_peb_ppi at 138
> p = load(P{1},'xY');
>
>??? Error using ==> spm_peb_ppi
>Cell contents reference from a non-cell array object.
>
>Can someone clarify what this error means and how I should go about
>resolving it?
>
>My specified design matix includes 2 sessions with 2 conditions per
>session. When extracting the time-series for the VOI, spm5 forces
>you to choose one of the 2 sessions (scalar required). Is the above
>error occuring because the VOI only represents 1 of the 2 sessions
>specified in the design matrix? If so, how can I create a VOI with
>the extracted time-series of both sessions?
>
>Thanks in advance,
>
>Sergio
|