When attempting to run cluster statistics on my EEG data (originally from Neuroscan .CNT, then processed in EEGLAB and finally imported to fieldtrip) using ft_timelockstatistics(), I receive the following error message:<br>
<br><div style="margin-left: 40px; font-family: courier new,monospace; color: rgb(255, 0, 0);">??? Error using ==> ft_neighbourselection at 114<br>Did not find gradiometer or electrode information.<br><br>Error in ==> statistics_wrapper at 241<br>
cfg.neighbours = ft_neighbourselection(cfg,varargin{1});<br><br>Error in ==> ft_timelockstatistics at 123<br>[stat, cfg] = statistics_wrapper(cfg, varargin{:});<br></div><br>This seems to be because when I use cfg.channel = {'EEG'}; with my data, the channel information (the variable "sens" used in ft_neighbourselection) consists only of the list of channel labels:<br>
<br><div style="margin-left: 40px; font-family: courier new,monospace;">sens = {'FPZ' 'CPZ' 'FP2' 'F7' .........}<br></div><br>On the other hand, when I run timelockstatistics on the sample data from the wiki, "sens" includes much more information:<br>
<br><div style="margin-left: 40px; font-family: courier new,monospace;">sens = <br><br> pnt: [151x3 double]<br> ori: [356x3 double]<br> tra: [184x356 double]<br> label: {151x1 cell}<br> unit: 'cm'<br>
</div><br>I think most of that extra information is planar gradient data (i.e., it comes from GA_FIC.grad). Since my data are EEG data, I assume it wouldn't make sense to use ft_megplanar on them. So, assuming that I need to get the extra channel location information into my EEG data, does anyone have any ideas on how to do that? <br>
<br>Best,<br>Steve Politzer-Ahles<br clear="all"><br>-- <br>Stephen Politzer-Ahles<br>University of Kansas<br>Linguistics Department<br><a href="http://www.linguistics.ku.edu/">http://www.linguistics.ku.edu/</a><br>