[FieldTrip] no 'grad' field after ft_appenddata
Schoffelen, J.M. (Jan Mathijs)
jan.schoffelen at donders.ru.nl
Thu Jul 9 09:10:12 CEST 2015
Hi Mats,
You can append any of the original grad fields into the data structure.
You could also consider using ft_average_sens.
Best,
Jan-Mathijs
Jan-Mathijs Schoffelen, MD PhD, Senior researcher
Max Planck Institute for Psycholinguistics
Donders Centre for Cognitive Neuroimaging
E-mail: j.schoffelen at donders.ru.nl<mailto:j.schoffelen at donders.ru.nl>
Telephone: +31-24-3614793
http://www.hettaligebrein.nl
http://www.fieldtriptoolbox.org
On Jul 8, 2015, at 10:16 PM, Es, M.W.J. van (Mats) <M.vanEs at donders.ru.nl<mailto:M.vanEs at donders.ru.nl>> wrote:
Hi everyone,
For my experiment I have three MEG sessions. For analysis I preprocessed them and combined them using ft_appenddata. However, the 'grad' field in the data structured is then removed. When I call ft_megplanar (see code) to do time frequency analysis I get the following error (matlab2013a in cluster, latest fieldtrip version):
----------------------------------
cfg = [];
cfg.method = 'template';
cfg.template = 'CTF275_neighb.mat';
% neighbours = ft_prepare_neighbours(cfg, alldatacorrect);
neighbours = ft_prepare_neighbours(cfg, alldata);
cfg = [];
cfg.method = 'sincos';
cfg.neighbours = neighbours;
% data_planar_correct = ft_megplanar(cfg, alldatacorrect);
data_planar = ft_megplanar(cfg, alldata);
----------------------------------
Error using ft_checkdata (line 527)
This function requires MEG data with a 'grad' field
Error in ft_megplanar (line 96)
data = ft_checkdata(data, 'datatype', {'raw' 'freq'}, 'feedback', 'yes', 'hassampleinfo', 'yes', 'ismeg', 'yes', 'senstype', {'ctf151', 'ctf275', 'bti148',
'bti248', 'itab153', 'yokogawa160', 'yokoga
I already looked at the 'grad' field of the individual sessions and they are not the same. How should I solve this?
Thanks for your help,
Mats
_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl<mailto:fieldtrip at donders.ru.nl>
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150709/ef395969/attachment-0002.html>
More information about the fieldtrip
mailing list