Thanks Vladimir, I'll give that a go.
Paul
Quoting Vladimir Litvak <[log in to unmask]>:
> Dear Paul,
>
> The first error has to do with the fact that Yokogawa system is not
> fully supported in FIeldtrip and SPM as was previously discussed on
> the list. In particular there is no way to know which channels are MEG
> just based on their labels. The things might improve in the next SPM
> update, but I'm not sure about this particular issue because unlike in
> other MEG systems the channel labels in Yokogawa are not very
> meaningful, something like '01', '02' etc. and different systems may
> differ with respect to which ones are MEG.
>
> Assuming that you take care to set the channel types correctly in your
> code for your SPM datasets you can try replacing all the instances of:
>
> cfg.channel = modality;
>
> with:
>
> cfg.channel = D.chanlabels(D.meegchannels(modality));
>
> Let me know if this doesn't help.
>
> Best,
>
> Vladimir
>
> On Tue, Feb 9, 2010 at 11:49 PM, Paul Sowman <[log in to unmask]> wrote:
>> Hi, I'm having a couple of problems with the new beamformer functions.
>> Firstly the extract source using beamformer gives this error:
>>
>> the input is raw data with 160 channels and 1 trials
>> applying preprocessing options
>> averaging trials
>> averaging trial 1 of 1
>> the input is raw data with 160 channels and 1 trials
>> applying preprocessing options
>> averaging trials
>> averaging trial 1 of 1
>> the input is timelock data with 0 channels and 601 timebins
>> ??? Index exceeds matrix dimensions.
>>
>> Error in ==> senstype at 152
>> islabel = isa(input, 'cell') && isa(input{1}, 'char');
>>
>> Error in ==> channelselection at 193
>> switch senstype(datachannel)
>>
>> Error in ==> sourceanalysis at 630
>> cfg.channel = channelselection(cfg.channel, data.label);
>>
>> Error in ==> ft_sourceanalysis at 11
>> [varargout{1:nargout}] = funhandle(varargin{:});
>>
>> Error in ==> spm_eeg_ft_beamformer_source at 235
>> source1 = ft_sourceanalysis(cfg, timelock1);
>>
>> Error in ==> spm_Beamforming at 20
>> eval(fun);
>> Error in ==> spm at 921
>> evalin('base',xTB(i).prog);
>>
>>
>> Secondly, with the LCMV I have no probles when I dont select preview but
>> when I do I get:
>>
>> ??? Error using ==> set
>> Bad value for axes property: 'YLim'
>> Values must be increasing and non-NaN.
>>
>> Error in ==> sourceplot at 797
>> set(hc, 'YLim', [fcolmin fcolmax]);
>>
>> Error in ==> ft_sourceplot at 11
>> [varargout{1:nargout}] = funhandle(varargin{:});
>>
>> Error in ==> spm_eeg_ft_beamformer_lcmv at 574
>> ft_sourceplot(cfg1,sourceint_pow_tstat);
>>
>> Error in ==> spm_eeg_ft_beamformer_gui at 195
>> [stats,talpositions]=spm_eeg_ft_beamformer_lcmv(S);
>>
>> Error in ==> spm_Beamforming at 20
>> eval(fun);
>> Error in ==> spm at 921
>> evalin('base',xTB(i).prog);
>>
>>
>> Any ideas??
>>
>> Regards, Paul
>>
>
--
Paul F Sowman
NHMRC Postdoctoral Training Fellow
Macquarie Centre for Cognitive Science (MACCS)
MACQUARIE UNIVERSITY NSW 2109
Phone: +61 (0)2 9850 6732
Fax: +61 (0)2 9850 6059
www.maccs.mq.edu.au
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
|