<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0"><font size="2"><span style="font-size:11pt;">Dear Jan,</span></font></p>
<p style="margin-top:0;margin-bottom:0"><font size="2"><span style="font-size:11pt;"><br>
</span></font></p>
<p style="margin-top:0;margin-bottom:0"><font size="2"><span style="font-size:11pt;">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>
</span></font></p>
<p style="margin-top:0;margin-bottom:0"><font size="2"><span style="font-size:11pt;"><br>
</span></font></p>
<p style="margin-top:0;margin-bottom:0"><font size="2"><span style="font-size:11pt;">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. <br>
</span></font></p>
<p style="margin-top:0;margin-bottom:0"><font size="2"><span style="font-size:11pt;"><br>
</span></font></p>
<p style="margin-top:0;margin-bottom:0"><font size="2"><span style="font-size:11pt;">Thank you.</span></font></p>
<p style="margin-top:0;margin-bottom:0"><font size="2"><span style="font-size:11pt;"><br>
</span></font></p>
<p style="margin-top:0;margin-bottom:0"><font size="2"><span style="font-size:11pt;">Best wishes, Jac
<br>
</span></font></p>
<p style="margin-top:0;margin-bottom:0"><font size="2"><span style="font-size:11pt;"><br>
</span></font></p>
<p style="margin-top:0;margin-bottom:0"><font size="2"><span style="font-size:11pt;"><br>
</span></font></p>
<p style="margin-top:0;margin-bottom:0"><font size="2"><span style="font-size:11pt;"><br>
</span></font></p>
<p style="margin-top:0;margin-bottom:0"><font size="2"><span style="font-size:11pt;">Message: 1<br>
Date: Thu, 14 Mar 2019 09:58:14 +0000<br>
From: "Schoffelen, J.M. (Jan Mathijs)" <jan.schoffelen@donders.ru.nl><br>
To: FieldTrip discussion list <fieldtrip@science.ru.nl><br>
Subject: Re: [FieldTrip] Small presentation error (topoplotTFR)<br>
Message-ID: <D6FF86A5-7CF7-454F-8698-881BE7A827B1@donders.ru.nl><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Dear Jac,<br>
<br>
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>
Can you confirm that you don’t have this problem if instead of cfg.layout = ‘CTF275.lay’, you use ‘CTF275_helmet.mat’?<br>
<br>
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>
<br>
Thanks,<br>
Jan-Mathijs<br>
<br>
J.M.Schoffelen, MD PhD<br>
Associate PI, VIDI-fellow - PI, language in interaction<br>
Telephone: +31-24-3614793<br>
Physical location: room 00.028<br>
Donders Centre for Cognitive Neuroimaging, Nijmegen, The Netherlands<br>
</span></font><span class="PersonaPaneLauncher"></p>
<div class="_pe_d _pe_92" tabindex="-1"></div>
</span>
<div class="_rp_k" style="" 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>
<div>
<div style="">
<div class="_rp_w6 _rp_x6" style="">
<div class="ms-font-weight-regular ms-font-color-neutralDark rpHighlightAllClass rpHighlightBodyClass _rp_y6" id="Conversation.FossilizedTextBody" style="font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,"EmojiFont";">
<hr style="border-right:0;border-bottom:0;border-left:0;border-top-style:solid;margin-top:15px;margin-bottom:15px;margin-left:10px;" class="ms-border-color-neutralLight">
<div style="border-left-width:2px;border-left-style:solid;padding-left:10px;" class="ms-border-color-neutralTertiaryAlt">
<div>
<div><font size="2"><span style="font-size:11pt;">On 14 Mar 2019, at 10:37, Jac Billington <J.Billington@leeds.ac.uk<mailto:J.Billington@leeds.ac.uk>> wrote:<br>
<br>
Dear experts,<br>
<br>
There is probably a very simple explanation for this glitch but I've been unable to figure it out.<br>
<br>
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>
<br>
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>
<br>
<br>
Undefined function or variable "labelmlo".<br>
Error in ft_channelselection (line 438)<br>
if findmlo,        channel = [channel; labelmlo]; end<br>
<br>
I present the full code below for info.<br>
<br>
Thank you in advance.<br>
<br>
Jac<br>
<br>
<br>
cfg              = [];<br>
cfg.output       = 'pow';<br>
cfg.method       = 'mtmconvol';<br>
cfg.taper        = 'hanning';<br>
cfg.foi          = 8:2:14;<br>
cfg.t_ftimwin    = ones(length(cfg.foi),1).*0.5;<br>
cfg.channel      ={'MLO' 'MRO'};<br>
cfg.toi          = 2.0:0.1:2.5;<br>
cfg.keeptrials   = 'yes'; % classifiers operate on individual trials<br>
<br>
tfrleft          = ft_freqanalysis(cfg, left);<br>
tfrright         = ft_freqanalysis(cfg, right);<br>
<br>
cfg         = [];<br>
cfg.layout  = 'CTF275.lay';<br>
cfg.method  = 'crossvalidate';<br>
cfg.design  = [ones(size(tfrleft.powspctrm,1),1); 2*ones(size(tfrright.powspctrm,1),1)]';<br>
stat        = ft_freqstatistics(cfg,tfrleft,tfrright);<br>
<br>
stat.statistic<br>
<br>
stat.mymodel = stat.model{1}.primal;<br>
<br>
cfg              = [];<br>
cfg.layout       = 'CTF275.lay';<br>
cfg.parameter    = 'mymodel';<br>
cfg.comment      = '';<br>
%cfg.channel      = {'MLO' 'MRO'};<br>
cfg.colorbar     = 'yes';<br>
cfg.interplimits = 'electrodes';<br>
ft_topoplotTFR(cfg, stat);<br>
<br>
<br>
<br>
<br>
<br>
Dr Jac Billington<br>
Lecturer in Cognitive Neuroscience<br>
School of Psychology, Rm G.06A<br>
University of Leeds<br>
Leeds, LS2 9JT<br>
Tel: +44(0)113 343 6686</span></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<p></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); 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;">
<div class="BodyFragment"><font size="2">
<div class="PlainText">
<p class="MsoNormal"><i><span style="color:#7F7F7F"></span></i></p>
<i>
<p class="MsoNormal"><i><span style="color:#7F7F7F">Dr Jac Billington</span></i></p>
<p class="MsoNormal"><i><span style="color:#7F7F7F">Lecturer in Cognitive Neuroscience</span></i></p>
<p class="MsoNormal"><i><span style="color:#7F7F7F">School of Psychology, Rm G.06A</span></i></p>
<p class="MsoNormal"><i><span style="color:#7F7F7F">University of Leeds</span></i></p>
<p class="MsoNormal"><i><span style="color:#7F7F7F">Leeds, LS2 9JT</span></i></p>
<p class="MsoNormal"><i><span style="color:#7F7F7F">Tel: +44(0)113 343 6686</span></i></p>
<p class="MsoNormal"><i><span style="color:#7F7F7F"> </span></i><i style="color:rgb(0,0,0)"><span style="color:#7F7F7F"> </span></i></p>
</i>
<p></p>
<p class="MsoNormal"><i><span style="color:#7F7F7F"><a href="http://medhealth.leeds.ac.uk/profile/1300/983/jac_billington" id="LPNoLP">Jac Billington</a></span></i></p>
<p class="MsoNormal"><i><span style="color:#7F7F7F"><a href="http://www.leeds.ac.uk/coni/index.html" id="LPNoLP">CoNi Lab</a></span></i></p>
<br>
</div>
</font></div>
</div>
</div>
</div>
</body>
</html>