<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Dear Jac,
<div class=""><br class="">
</div>
<div class="">Perhaps you could try the following:</div>
<div class=""><br class="">
</div>
<div class="">First create the layout (note the added cfg option)</div>
<div class=""><br class="">
</div>
<div class="">cfg = [];</div>
<div class="">cfg.layout = ‘layoutfilename’;</div>
<div class="">cfg.center = ‘no’;</div>
<div class="">layout = ft_prepare_layout(cfg);</div>
<div class=""><br class="">
</div>
<div class="">cfg = [];</div>
<div class="">cfg. </div>
<div class="">cfg. …</div>
<div class="">cfg.layout = layout;</div>
<div class="">ft_topoplotER(cfg, stat);</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
</div>
<div class="">
<div>
<blockquote type="cite" class="">
<div class="">On 14 Mar 2019, at 13:57, Jac Billington <<a href="mailto:J.Billington@leeds.ac.uk" class="">J.Billington@leeds.ac.uk</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div id="divtagdefaultwrapper" dir="ltr" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;" class="">
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><font size="2" class=""><span style="font-size: 11pt;" class="">Dear Jan,</span></font></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><font size="2" class=""><span style="font-size: 11pt;" class=""><br class="">
</span></font></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><font size="2" class=""><span style="font-size: 11pt;" class="">Thank you for the response. I confirm I am not getting this with the *helmet.mat file. Although following the tutorial with MEG data,
my actually data is EEG from a biosemi 64 system. There is no alternative file for this layout? - and I'm still getting the issue with my own data.<br class="">
</span></font></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><font size="2" class=""><span style="font-size: 11pt;" class=""><br class="">
</span></font></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><font size="2" class=""><span style="font-size: 11pt;" class="">Thank you for the additional info on MVPA-light also. I'm playing around with MVPA for EEG data for the first time, so searching for toolboxes.
I'll keep an out out for any updates with regard to frequency data.<span class="Apple-converted-space"> </span><br class="">
</span></font></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><font size="2" class=""><span style="font-size: 11pt;" class=""><br class="">
</span></font></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><font size="2" class=""><span style="font-size: 11pt;" class="">Thank you.</span></font></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><font size="2" class=""><span style="font-size: 11pt;" class=""><br class="">
</span></font></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><font size="2" class=""><span style="font-size: 11pt;" class="">Best wishes, Jac<span class="Apple-converted-space"> </span><br class="">
</span></font></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><font size="2" class=""><span style="font-size: 11pt;" class=""><br class="">
</span></font></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><font size="2" class=""><span style="font-size: 11pt;" class=""><br class="">
</span></font></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><font size="2" class=""><span style="font-size: 11pt;" class=""><br class="">
</span></font></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><font size="2" class=""><span style="font-size: 11pt;" class="">Message: 1<br class="">
Date: Thu, 14 Mar 2019 09:58:14 +0000<br class="">
From: "Schoffelen, J.M. (Jan Mathijs)" <<a href="mailto:jan.schoffelen@donders.ru.nl" class="">jan.schoffelen@donders.ru.nl</a>><br class="">
To: FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>><br class="">
Subject: Re: [FieldTrip] Small presentation error (topoplotTFR)<br class="">
Message-ID: <<a href="mailto:D6FF86A5-7CF7-454F-8698-881BE7A827B1@donders.ru.nl" class="">D6FF86A5-7CF7-454F-8698-881BE7A827B1@donders.ru.nl</a>><br class="">
Content-Type: text/plain; charset="utf-8"<br class="">
<br class="">
Dear Jac,<br class="">
<br class="">
I think that this is caused by the fact that currently (i.e. at some point in time it has been changed) the ft_prepare_layout function scales the spatial distribution of the channels (in your case a subset of the full MEG sensor array) to optimally fill the
silly circle that represents the ‘outline of the head’. This circle is created on the fly.<br class="">
Can you confirm that you don’t have this problem if instead of cfg.layout = ‘CTF275.lay’, you use ‘CTF275_helmet.mat’?<br class="">
<br class="">
It is great that people still find their way to the ‘crossvalidate’ method in ft_freqstatistics. Allow me to seize the opportunity here to advertise some new functionality (not fully tested yet for frequency domain data, but at least it works well for time
domain channel data) in toolbox for doing multivariate statistics: Matthias Treder has kindly contributed a gateway function to his MVPA-light toolbox (which can be found on github). In FieldTrip, when specifying cfg.method = ‘mvpa’ you will end up in this
gateway function, and it allows for using the awesome functionality of MVPA-light. There’s also a new tutorial on the website that demonstrates how to use it. Check out the ‘news’ section at the home-page of the fieldtrip wiki to get more information.<br class="">
<br class="">
Thanks,<br class="">
Jan-Mathijs<br class="">
<br class="">
J.M.Schoffelen, MD PhD<br class="">
Associate PI, VIDI-fellow - PI, language in interaction<br class="">
Telephone: +31-24-3614793<br class="">
Physical location: room 00.028<br class="">
Donders Centre for Cognitive Neuroimaging, Nijmegen, The Netherlands<br class="">
</span></font><span class="PersonaPaneLauncher"></span></div>
<div class="_pe_d _pe_92" tabindex="-1"></div>
<div class="_rp_k" tabindex="-1">
<div class="_qc_F ms-bg-color-white _qc_G">
<hr class="_qc_B">
<div tabindex="-1" class="_qc_y ms-border-color-neutralLight _qc_z"></div>
</div>
</div>
<div class="">
<div class="">
<div class="">
<div class="_rp_w6 _rp_x6">
<div class="ms-font-color-neutralDark rpHighlightAllClass rpHighlightBodyClass _rp_y6 ms-font-weight-regular" id="Conversation.FossilizedTextBody" style="font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif, serif, EmojiFont;">
<hr class="ms-border-color-neutralLight" style="border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: solid; margin-top: 15px; margin-bottom: 15px; margin-left: 10px;">
<div class="ms-border-color-neutralTertiaryAlt" style="border-left-width: 2px; border-left-style: solid; padding-left: 10px;">
<div class="">
<div class=""><font size="2" class=""><span style="font-size: 11pt;" class="">On 14 Mar 2019, at 10:37, Jac Billington <<a href="mailto:J.Billington@leeds.ac.uk" class="">J.Billington@leeds.ac.uk</a><<a href="mailto:J.Billington@leeds.ac.uk" class="">mailto:J.Billington@leeds.ac.uk</a>>>
wrote:<br class="">
<br class="">
Dear experts,<br class="">
<br class="">
There is probably a very simple explanation for this glitch but I've been unable to figure it out.<br class="">
<br class="">
I've been having a problem with ft_topoplotTRF in which, if I try to only plot a subset of channels, the data is stretched across the whole glass brain (see figure). I've got around this by just plotting all channels in the past but I'm following the multivariate
tutorial and despite using the exact code and data on there I'm still getting the same issue. Is this a bug? Getting it on a couple of recently installed versions of fieldtrip.<br class="">
<br class="">
If I try using the cfg.channel option for the ft_topoplotTRF I get the following error, which I can't understand as ft_channelselection is called fine earlier in the code.<br class="">
<br class="">
<br class="">
Undefined function or variable "labelmlo".<br class="">
Error in ft_channelselection (line 438)<br class="">
if findmlo, channel = [channel; labelmlo]; end<br class="">
<br class="">
I present the full code below for info.<br class="">
<br class="">
Thank you in advance.<br class="">
<br class="">
Jac<br class="">
<br class="">
<br class="">
cfg = [];<br class="">
cfg.output = 'pow';<br class="">
cfg.method = 'mtmconvol';<br class="">
cfg.taper = 'hanning';<br class="">
cfg.foi = 8:2:14;<br class="">
cfg.t_ftimwin = ones(length(cfg.foi),1).*0.5;<br class="">
cfg.channel ={'MLO' 'MRO'};<br class="">
cfg.toi = 2.0:0.1:2.5;<br class="">
cfg.keeptrials = 'yes'; % classifiers operate on individual trials<br class="">
<br class="">
tfrleft = ft_freqanalysis(cfg, left);<br class="">
tfrright = ft_freqanalysis(cfg, right);<br class="">
<br class="">
cfg = [];<br class="">
cfg.layout = 'CTF275.lay';<br class="">
cfg.method = 'crossvalidate';<br class="">
cfg.design = [ones(size(tfrleft.powspctrm,1),1); 2*ones(size(tfrright.powspctrm,1),1)]';<br class="">
stat = ft_freqstatistics(cfg,tfrleft,tfrright);<br class="">
<br class="">
stat.statistic<br class="">
<br class="">
stat.mymodel = stat.model{1}.primal;<br class="">
<br class="">
cfg = [];<br class="">
cfg.layout = 'CTF275.lay';<br class="">
cfg.parameter = 'mymodel';<br class="">
cfg.comment = '';<br class="">
%cfg.channel = {'MLO' 'MRO'};<br class="">
cfg.colorbar = 'yes';<br class="">
cfg.interplimits = 'electrodes';<br class="">
ft_topoplotTFR(cfg, stat);<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
Dr Jac Billington<br class="">
Lecturer in Cognitive Neuroscience<br class="">
School of Psychology, Rm G.06A<br class="">
University of Leeds<br class="">
Leeds, LS2 9JT<br class="">
Tel: +44(0)113 343 6686</span></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br class="">
<p style="margin-top: 0px; margin-bottom: 0px;" class=""></p>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div id="Signature" class="">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols;" class="">
<div class="BodyFragment"><font size="2" class="">
<div class="PlainText">
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><i class=""><span style="color: rgb(127, 127, 127);" class=""></span></i></div>
<i class="">
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><i class=""><span style="color: rgb(127, 127, 127);" class="">Dr Jac Billington</span></i></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><i class=""><span style="color: rgb(127, 127, 127);" class="">Lecturer in Cognitive Neuroscience</span></i></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><i class=""><span style="color: rgb(127, 127, 127);" class="">School of Psychology, Rm G.06A</span></i></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><i class=""><span style="color: rgb(127, 127, 127);" class="">University of Leeds</span></i></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><i class=""><span style="color: rgb(127, 127, 127);" class="">Leeds, LS2 9JT</span></i></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><i class=""><span style="color: rgb(127, 127, 127);" class="">Tel: +44(0)113 343 6686</span></i></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><i class=""><span style="color: rgb(127, 127, 127);" class=""> </span></i><i style="" class=""><span style="color: rgb(127, 127, 127);" class=""> </span></i></div>
</i>
<p style="margin-top: 0px; margin-bottom: 0px;" class=""></p>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><i class=""><span style="color: rgb(127, 127, 127);" class=""><a href="http://medhealth.leeds.ac.uk/profile/1300/983/jac_billington" id="LPNoLP" class="">Jac Billington</a></span></i></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><i class=""><span style="color: rgb(127, 127, 127);" class=""><a href="http://www.leeds.ac.uk/coni/index.html" id="LPNoLP" class="">CoNi Lab</a></span></i></div>
<br class="">
</div>
</font></div>
</div>
</div>
</div>
<span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">fieldtrip
mailing list</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<a href="https://doi.org/10.1371/journal.pcbi.1002202" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://doi.org/10.1371/journal.pcbi.1002202</a><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>