[FieldTrip] Small presentation error (topoplotTFR)

Jac Billington J.Billington at leeds.ac.uk
Thu Mar 14 10:37:52 CET 2019


Dear experts,


There is probably a very simple explanation for this glitch but I've been unable to figure it out.


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.


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.

Undefined function or variable "labelmlo".
Error in ft_channelselection (line 438)
if findmlo,        channel = [channel; labelmlo]; end

I present the full code below for info.

Thank you in advance.

Jac


cfg              = [];
cfg.output       = 'pow';
cfg.method       = 'mtmconvol';
cfg.taper        = 'hanning';
cfg.foi          = 8:2:14;
cfg.t_ftimwin    = ones(length(cfg.foi),1).*0.5;
cfg.channel      ={'MLO' 'MRO'};
cfg.toi          = 2.0:0.1:2.5;
cfg.keeptrials   = 'yes'; % classifiers operate on individual trials

tfrleft          = ft_freqanalysis(cfg, left);
tfrright         = ft_freqanalysis(cfg, right);

cfg         = [];
cfg.layout  = 'CTF275.lay';
cfg.method  = 'crossvalidate';
cfg.design  = [ones(size(tfrleft.powspctrm,1),1); 2*ones(size(tfrright.powspctrm,1),1)]';
stat        = ft_freqstatistics(cfg,tfrleft,tfrright);

stat.statistic

stat.mymodel = stat.model{1}.primal;

cfg              = [];
cfg.layout       = 'CTF275.lay';
cfg.parameter    = 'mymodel';
cfg.comment      = '';
%cfg.channel      = {'MLO' 'MRO'};
cfg.colorbar     = 'yes';
cfg.interplimits = 'electrodes';
ft_topoplotTFR(cfg, stat);





Dr Jac Billington
Lecturer in Cognitive Neuroscience
School of Psychology, Rm G.06A
University of Leeds
Leeds, LS2 9JT
Tel: +44(0)113 343 6686

Jac Billington<http://medhealth.leeds.ac.uk/profile/1300/983/jac_billington>
CoNi Lab<http://www.leeds.ac.uk/coni/index.html>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20190314/f2f65b6a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: topoplotTRF.jpg
Type: image/jpeg
Size: 245078 bytes
Desc: topoplotTRF.jpg
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20190314/f2f65b6a/attachment-0001.jpg>
-------------- next part --------------
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202


More information about the fieldtrip mailing list