<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Dear Victoria,</div><div>you should remove the ft_combineplanar step from your analysis pipeline. This function takes input from ft_megplanar. The latter is applied only to magnetometers or axial gradiometers. </div><div><br></div><div>best</div><div>tzvetan</div><div> <br><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div>Hi !</div><div><br></div><div>I am working with a neuromag system and want to do cluster based permutation tests with time frequency data. However, before running the stats i would like to check the clusters which are formed by ft_prepare_neighbours. Thus i use ft_neighbourplot. When looking at the plot and clicking on the channels i would expect to see something like :</div><div><i><br></i></div><div><div><i>Selected channel MEG1032+1033, which has 7 neighbours: MEG0622+0623, MEG1012+1013, MEG1022+1023, MEG1042+1043, MEG1112+1113, MEG1122+1123, MEG1242+1243</i></div><div><i>Selected channel MEG0742+0743, which has 7 neighbours: MEG0432+0433, MEG0712+0713, MEG0722+0723, MEG0732+0733, MEG1822+1823, MEG1832+1833, MEG2242+2243<br></i></div></div><div><br></div><div>however what i see is:</div><div><br></div><div><div><i>Selected channel MEG0741, which has 0 neighbours: </i></div><div><i>Selected channel MEG0731, which has 0 neighbours: </i></div><div><i>Selected channel MEG0742+0743, which has 7 neighbours: MEG0432+0433, MEG0712+0713, MEG0722+0723, MEG0732+0733, MEG1822+1823, MEG1832+1833, MEG2242+2243</i></div><div><i>Selected channel MEG0711, which has 0 neighbours: </i></div><div><i>Selected channel MEG0741, which has 0 neighbours: </i></div></div><div><br></div><div>It is absolutely random when the correct output occurs. When clicking on a particular channel it would randomly show me the following results:</div><div><br></div><div><div><i>Selected channel MEG1032+1033, which has 7 neighbours: MEG0622+0623, MEG1012+1013, MEG1022+1023, MEG1042+1043, MEG1112+1113, MEG1122+1123, MEG1242+1243</i></div><div><br></div><div>or</div><div><br></div><div><i>Selected channel MEG1031, which has 0 neighbours: </i></div></div><div><br></div><div>Do you have any suggestions why this happen? Are the channels not grouped correctly?</div><div><br></div><div>Below is the code starting from the time-frequency analysis of the data.</div><div><br></div><div>Thank you very much</div><div>Victoria</div><div><br></div><div>cfg = [];</div><div>cfg.output = 'pow';</div><div>cfg.channel = 'MEGGRAD';</div><div>cfg.method = 'mtmconvol';</div><div>cfg.taper = 'hanning';</div><div>cfg.foi = [2:2:30];</div><div>%cfg.keeptrials = 'yes';   for stats keep trials</div><div>cfg.t_ftimwin    = ones(length(cfg.foi),1).*0.5;   % length of time window = 0.5 sec</div><div>cfg.toi          = [-1.3:0.05:1];   </div><div>cfg.keeptrials   = 'yes';</div><div>FreqCon = ft_freqanalysis(cfg, Con_clean);</div><div>FreqIncon = ft_freqanalysis(cfg, Incon_clean);</div><div><br></div><div>%combine planar</div><div>cfg = [];</div><div>cfg.method ='sum';</div><div>ComCon = ft_combineplanar(cfg,FreqCon);</div><div>ComIncon = ft_combineplanar(cfg, FreqIncon);</div><div><br></div><div><div>% plot neighbours</div><div>cfg=[];</div><div>cfg.method        = 'triangulation';</div><div>cfg.layout           = 'neuromag306cmb.lay';</div><div>ft_neighbourplot(cfg,ComCon)</div></div></div>
_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</blockquote></div><br></body></html>