<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div> 
<div>
<div>Hey Marc</div>

<div> </div>

<div>Thanks a lot. The latest version has the bug fixed.</div>

<div> </div>

<div>All the Best</div>

<div> </div>

<div>Johannes</div>

<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Sonntag, 13. Dezember 2015 um 16:07 Uhr<br/>
<b>Von:</b> "Marc Recasens" <recasensmarc@gmail.com><br/>
<b>An:</b> "FieldTrip discussion list" <fieldtrip@science.ru.nl><br/>
<b>Betreff:</b> Re: [FieldTrip] channel problem ft_freqstatistics</div>

<div name="quoted-content">
<div>Hi Johannes,
<div> </div>

<div>I think the same problem has been reported before in: <a href="http://mailman.science.ru.nl/pipermail/fieldtrip/2015-November/009789.html" target="_blank">http://mailman.science.ru.nl/pipermail/fieldtrip/2015-November/009789.html</a></div>

<div> </div>

<div>Roy Cox looked into the problem with quite detail and found the bug in the <span style="font-size: 12.8px;">ft_get_selection function, line 630-631 during a call to "</span><i style="font-size: 12.8px;">label = union(label, selchannel);"</i><span style="font-size: 12.8px;">. I recently had the same problem and it was solved after commenting that line. However it might be better if you update FieldTrip to the last version where this issue is fixed.</span></div>

<div> </div>

<div><span style="font-size: 12.8px;">Hope that helps.</span></div>

<div> </div>

<div><span style="font-size: 12.8px;">Best wishes</span></div>

<div><span style="font-size: 12.8px;">Marc</span></div>
</div>

<div class="gmail_extra"> 
<div class="gmail_quote">On Sat, Dec 12, 2015 at 6:59 PM, Jojo Klemt <span><<a href="LordJojo@gmx.de" target="_parent">LordJojo@gmx.de</a>></span> wrote:

<blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;">
<div>
<div style="font-family: Verdana;font-size: 12.0px;">
<div>
<div>Dear community</div>

<div> </div>

<div>My name is Johannes Klemt and I'm analysing eeg/emg-power data of patients and healthy controls for my medical doctorate in Tübingen.</div>

<div>I have a small problem using ft_freqstatistics. After performing an independent samples t-test, the channels are suddenly ordered alphabeticaly.</div>

<div>The preprocessing and power analysis were not performed in field trip.</div>

<div>The electrode labels and neighbours were defined and put into the following cfg:</div>

<div>cfg.elec</div>

<div>cfg.neighbours</div>

<div>The statistics were then calculated using montecarlo method, but the channel order in stat.label is changed into alphabetical order, so the stat plot looks nice but is quite useless.</div>

<div>Colleagues of mine used ft_freqgrandaverage as input data and did not have the problem, but I can't find the bug.</div>

<div>I designed a file containing the layout structure and tried putting it in by using</div>

<div>cfg.layout</div>

<div>but it was ignored.</div>

<div> </div>

<div>Any help would be deeply appreciated.</div>

<div> </div>

<div>Yours sincerely</div>

<div> </div>

<div>Johannes Klemt</div>
</div>
</div>
</div>
<br/>
_______________________________________________<br/>
fieldtrip mailing list<br/>
<a href="fieldtrip@donders.ru.nl" target="_parent">fieldtrip@donders.ru.nl</a><br/>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></blockquote>
</div>
 

<div> </div>
--

<div class="gmail_signature">Marc Recasens<br/>
Tel.: +34 639 24 15 98</div>
</div>
_______________________________________________ fieldtrip mailing list fieldtrip@donders.ru.nl <a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></div>
</div>
</div>
</div></div></body></html>