<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hey Stephen,<br>
<br>
You need to specify the position of your electrodes, which are
mostly stored in an 'elec' structure. If you do not have that
available, you can circumvent the problem by defining a cfg.layout.
In that case, neighbouring sensors will be selected according to how
they are placed in that layout-file you specify. That's not 100%
correct of course, but at least an estimate how the sensors are
positioned (note that a layout has only 2D coordinates). For
example, you could use cfg.layout = 'EEG1010.lay' as a start.<br>
<br>
Anyway, could you try using a more recent version of FieldTrip? A
few months ago, we changed the way the neighbourselection works
(actually, you have to call cfg.neighbours = ft_neighbourselection
manually, now). You can then also check with cfg.feedback = 'yes'
whether the neighbourselection looks alright to you (that's the same
as calling ft_neighbourplot)<br>
<br>
Hope it helps! Best regards,<br>
Jörn<br>
<br>
<br>
<br>
On 9/17/2011 6:42 PM, Stephen Politzer-Ahles wrote:
<blockquote
cite="mid:CAJT2k_-tG+bhgynhr=ck-kZKnJ+2=m-NxG3ZNUc+FgPVVffRLg@mail.gmail.com"
type="cite">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 moz-do-not-send="true" href="http://www.linguistics.ku.edu/">http://www.linguistics.ku.edu/</a><br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
fieldtrip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a>
<a class="moz-txt-link-freetext" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Radboud University Nijmegen
Neuronal Oscillations Group
P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands
Contact:
E-Mail: <a class="moz-txt-link-abbreviated" href="mailto:jm.horschig@donders.ru.nl">jm.horschig@donders.ru.nl</a>
Tel: +31-(0)24-36-68493
Web: <a class="moz-txt-link-freetext" href="http://www.ru.nl/donders">http://www.ru.nl/donders</a>
Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands</pre>
</body>
</html>