[FieldTrip] ft_databrowser & ft_rejectartifact - wrong number of trials rejected
Blume Christine
christine.blume at sbg.ac.at
Sun May 8 09:26:08 CEST 2016
Good morning,
I discovered that using ft_databrowser & ft_rejectartifact to preprocess my EEG data, often the wrong number of trials is rejected. This is the code I am using and it inherits data resulting from ft_redefinetrial.
cfg = [];
cfg.latency = [-2 2]; % period of interest
tmpdata_small = ft_selectdata(cfg,data_segm_offsetcorr);
cfg = [];
cfg.layout = layout2;
cfg.showlabel = 'yes';
cfg.channel = 'EEG';
cfg.gradscale = 0.04;
cfg.continuous = 'no';
% filtering only for artifact rejection
cfg.preproc.lpfilter = 'yes';
cfg.preproc.lpfreq = 40;
cfg_databrowser = ft_databrowser(cfg, tmpdata_small);
data_segm_offsetcorr = ft_rejectartifact(cfg_databrowser, data_segm_offsetcorr);
If I now, for example mark 10 trials in the databrowser and then run ft_rejectartifact, it tells me:
detected 10 visual artifacts
rejected 8 artifacts completely
Something seems to be wrong here as I clearly marked 10 artifacts (don't really care whether they are visual or not), but only 8 are removed. The problem gets worse when I call the function a second time, which is when usually none of the marked artefacts are rejected at all.
Any idea where the problem could be?
Many thanks!
Best,
Christine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20160508/285fbd4f/attachment-0001.html>
More information about the fieldtrip
mailing list