Possible bug with maskparameter and TFR?

Matthew Davidson matthew at PSYCH.COLUMBIA.EDU
Sat Jul 17 20:55:14 CEST 2010


Hi, everyone.

I'm trying to mask TFR plots in ft_multiplotTFR.m. ft_clusterplot
seems inappropriate, because this is for intracranial data and a
topoplot isn't a good way to display that.

I couldn't find any good examples of using .maskparameter, so I did
what I thought was correct:

I loaded up the stat and the freq variables, and set:
freq.mask = stat.mask;
cfg.maskparameter = 'mask';

However, when ft_multiplotTFR gets to reading out the .mask field,
it's gone! It seems that because my dimord is 'rpt_chan_freq_time',
ft_multiplotTFR calls:
data = ft_freqdescriptives(tmpcfg, data), which only returns certain
fields, and effectively strips out my .mask field!

Am I doing this wrong? if so, what's the correct method? If not, I'll
be happy to submit a fix. What's the preferred way to fix it? In
ft_multiplotTFR, I could store the maskparameter before the call to
freqdescriptives, and readd it afterwards. Alternatively, I could just
change the initialization line in ft_freqdescriptives where it sets
output = []; to output = freq;. Then, the subsequent lines altering
output would still behave as planned, but any extra fields added to
freq would not be removed.

Matthew

----------------------------------
The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/neuroimaging/fieldtrip.



More information about the fieldtrip mailing list