[FieldTrip] ft_rejectvisual channel selection

Stan van Pelt stan.vanpelt at fcdonders.ru.nl
Mon May 16 16:16:16 CEST 2011


Hi Diego,

You could try using ft_databrowser instead of ft_rejectvisual (followed by
ft_rejectartifact), so:

cfg            = [];
cfg.continuous = 'no';
cfg.channel    = {'EEG057','EEG058'};
cfg            = ft_databrowser(cfg,data);

I think it should work like this.

Best,
Stan

-----Original Message-----
From: fieldtrip-bounces at donders.ru.nl
[mailto:fieldtrip-bounces at donders.ru.nl] On Behalf Of Lozano Soldevilla,
D. (Diego)
Sent: Monday, May 16, 2011 4:00 PM
To: fieldtrip at donders.ru.nl
Subject: [FieldTrip] ft_rejectvisual channel selection

Dear Fieldtrippers,

I'm using ft_rejectvisual function to reject visually EOG artifacts of
epoched trials. My problem consist that I'm not able to plot only the EOG
channels even when I explicitly select them ignoring the 'MEG' channels (I
get a plot with all channels MEG + EOG).

I directly used rejectvisual_channel (used in line 263 offt_rejectvisual)
function selecting the EOG channels but I'm getting again all channels.
Somebody could tell me what I'm doing wrong?

Thanks in advance,

Diego



PS: Code

%epoching
cfg = [];
cfg.dataset                     = [direc d(rr,1).name];
cfg.trialdef.eventtype          = 'frontpanel trigger';
cfg.trialdef.eventvalue         = 4;
cfg.trialdef.prestim            = 1; % in seconds
cfg.trialdef.poststim           = 4; % in seconds
cfg.trialdef.epochmoving        = 'inbackward';
cfg.trialdef.pivoteventvalue    = 2;% cue stimulus
cfg.trialdef.jumps              = 1;
cfg.trialfun                    = 'trialselec';

cfg = ft_definetrial(cfg);

cfg.channel                     = {'MEG' 'EEG057' 'EEG058'};
cfg.lpfilter                    = 'yes';
cfg.lpfreq                      = 250;
cfg.baselinewindow              = [-1 0];
cfg.keeptrials                  = 'yes';
cfg.demean                      = 'yes';
cfg.continuous                  = 'yes';

data    = ft_preprocessing(cfg);

%..............


%visual data rejection
cfg             = [];
cfg.channel     = {'EEG057' 'EEG058'};
cfg.method      = 'channel';
cfg.keepchannel = 'yes';
data_c          = ft_rejectvisual(cfg,data);



-- 
PhD Student
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Trigon, room 0.83
Kapittelweg 29
Radboud University Nijmegen
NL-6500 HB Nijmegen
The Netherlands
E-Mail: d.lozanosoldevilla at fcdonders.ru.nl
Tel:      +31-(0)24-36-66274
Web:    http://www.neuosc.com/
_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip



More information about the fieldtrip mailing list