<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Hamish,<div><br></div><div>A related problem was that whenever you have channels without coordinate, the interpolation function was not functioning. I have fixed this problem and I will send you off the eeglablist some functions to test that.</div><div><br></div><div>In general, I would strongly recommend to use the current version over the 6.01 "stable" version of EEGLAB which is more than 1 year and a half old.</div><div>Best,</div><div><br></div><div>Arno</div><div><br><div><div>On 2 déc. 08, at 06:36, Hamish INNES-BROWN wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> <div> <div dir="ltr" align="left"><span class="981072222-01122008"><font face="Arial" color="#0000ff" size="2">Interesting, it's working really well for me - I'm very glad!</font></span></div> <div dir="ltr" align="left"><span class="981072222-01122008"><font face="Arial" color="#0000ff" size="2"></font></span> </div> <div dir="ltr" align="left"><span class="981072222-01122008"><font face="Arial" color="#0000ff" size="2">I did have to ensure that the interpolation was done correctly though. For me this meant using the stable v6.01 to do JUST the interpolation, saving the STUDY, and then going back to the Oct08 version to pre-calculate my channel measures. Then the plotting of channel measures with unequal group sizes (and I also have two conditions) works fine as far as I can see.</font></span></div> <div dir="ltr" align="left"><span class="981072222-01122008"><font face="Arial" color="#0000ff" size="2"></font></span> </div> <div dir="ltr" align="left"><span class="981072222-01122008"><font face="Arial" color="#0000ff" size="2">I never did work out why the interpolation didn't work correctly in the newer versions. I tried many different parameters using std_interp, eeg_interp as well as the menu system, and always ended up with an error (griddata error previously reported).</font></span></div> <div dir="ltr" align="left"><span class="981072222-01122008"><font face="Arial" color="#0000ff" size="2"></font></span> </div> <div dir="ltr" align="left"><span class="981072222-01122008"><font face="Arial" color="#0000ff" size="2">Anyway that's what worked for me - do interpolation in the stable version of eeglab (v6.01), then calculate channel measures in the oct08 version, and then plotting will work. Probably there is an easier way :)</font></span></div> <div dir="ltr" align="left"><span class="981072222-01122008"><font face="Arial" color="#0000ff" size="2"></font></span> </div> <div dir="ltr" align="left"><span class="981072222-01122008"><font face="Arial" color="#0000ff" size="2">It looks like what you did should have worked though, are you definitely using the edited version of std_erpplot.m? I have a few different eeglab directories on my PC and it's easy to start up from the wrong one..</font></span></div> <div><font face="Arial" color="#0000ff" size="2"></font> </div><!-- Converted from text/rtf format --><p><b><font face="Century Gothic" color="#808080">Hamish Innes-Brown</font></b> <br><font face="Century Gothic" color="#808080">Senior Research Assistant</font> </p><p><font face="Century Gothic" color="#33cccc">The Bionic Ear Institute</font> <br><font face="Century Gothic" color="#808080">c/o St Vincents Hospital</font> <br><font face="Century Gothic" color="#808080">6<sup>th</sup> Floor Daly Wing,</font> <br><font face="Century Gothic" color="#808080">35 Victoria Pde, Fitzroy Vic 3065</font> <br><font face="Century Gothic" color="#808080">Tel: +61 3 9288 3523</font> <br><font face="Century Gothic" color="#808080">Fax: +61 3 6997 7518</font> </p> <div> </div><br> <div class="OutlookMessageHeader" lang="en-us" dir="ltr" align="left"> <hr tabindex="-1"> <font face="Tahoma" size="2"><b>From:</b> Hilla Jakoby [<a href="mailto:jakobyhi@yahoo.com">mailto:jakobyhi@yahoo.com</a>] <br><b>Sent:</b> Tuesday, 2 December 2008 2:59 AM<br><b>To:</b> Hamish INNES-BROWN; arno delorme<br><b>Cc:</b> <a href="mailto:eeglablist@sccn.ucsd.edu">eeglablist@sccn.ucsd.edu</a>; Michael Stevens<br><b>Subject:</b> Re: [Eeglablist] Unequal group size and STUDY use<br></font><br></div> <div></div> <table cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td valign="top"> <div> </div> <div>Dear all,</div> <div> </div> <div>I've tried to use the <strong>new std_erpplot.m</strong> function with an unequal number of subjects of each group (25 versus 29) and the same error message was generated when trying to plot their ERPs as before (using the old function). I've interpolated all datasets beforehand to 65 electrodes (using eeg_interp(EEG, chanlocs,'invdist'). was I right in doing so? </div> <div>On equal group sizes STUDY works well.</div> <div>Is there another solution for the problem, other changes to be done?</div> <div>Many thanks, Hilla</div> <div> </div> <div> </div> <div>Ph.D. student</div> <div>Gonda brain reseach center, </div> <div>Bar Ilan Universiy, Israel</div> <div> </div> <div> </div> <div><br><br>--- On <b>Sun, 11/30/08, arno delorme <i><<a href="mailto:arno@ucsd.edu">arno@ucsd.edu</a>></i></b> wrote:<br></div> <blockquote style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">From: arno delorme <<a href="mailto:arno@ucsd.edu">arno@ucsd.edu</a>><br>Subject: Re: [Eeglablist] Unequal group size and STUDY use<br>To: "Hamish INNES-BROWN" <<a href="mailto:HINNES-BROWN@bionicear.org">HINNES-BROWN@bionicear.org</a>><br>Cc: <a href="mailto:eeglablist@sccn.ucsd.edu">eeglablist@sccn.ucsd.edu</a>, "Michael Stevens" <<a href="mailto:msteven@harthosp.org">msteven@harthosp.org</a>><br>Date: Sunday, November 30, 2008, 9:40 PM<br><br><pre>Dear Michael and Hamish,
thanks for reporting the problem. This issue arises due to the complexity of
the scheme implemented to handle scalp map plotting in the case of subject with
different number of channels. This scheme was currently enforcing to have groups
of the same size. To fix this problem, I have decided to enforce interpolation
so that all subject will need to have the same number of channels (or at least
subset of channels when plotting scalp maps). Scalp maps where the different
channels average different numbers of subjects do not make much sense anyway.
There has also been at least two people reporting plotting problems after
interpolating data, although I have not yet myself been able to reproduce the
problem. I hope the current fix will solve this problem too.
I have reprogrammed the attached std_erpplot.m function so that it can handle
groups of different sizes (although be sure to interpolate missing channels).
Please let me know if this fixes your problems (just replace this function in
the eeglabxxx/functions/studyfunc/ folder) and it will be integrated in the
EEGLAB monthly release. This message was forwarded to the list because it is of
global interest and also because it depicts a problem that is a major current
limitation for most users. In general though, please use the Bugzilla database
for reporting problems.
Best,
Arno
ps: For interpolation, there is currently a non-documented bug: if you
interpolate channels when pre-computing ERPs and then go back to the pre-compute
GUI to compute ERSP without interpolation, the function will crash. This is
because all measure have to be consistent in terms of interpolation. As
described above, the future function will enforce interpolation (which is
relatively fast). In case the function crashed for you, erase all measure data
files (*.daterp, *.datersp, *.datspec, *.datitc), and type on the command line
STUDY.changrp = []; then call back the pre-computing interface.
</pre><pre></pre><pre>_______________________________________________
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a>
For digest mode, send an email with the subject "set digest mime" to
<a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a></pre></blockquote></td></tr></tbody></table><br></div></blockquote></div><br></div></body></html>