Back to the main page.
Bug 14 - preprocess does not work on trial-undefined data
Status | CLOSED INVALID |
Reported | 2010-01-12 13:23:00 +0100 |
Modified | 2011-01-05 12:01:03 +0100 |
Product: | FieldTrip |
Component: | preproc |
Version: | unspecified |
Hardware: | Other |
Operating System: | Linux |
Importance: | P5 major |
Assigned to: | Robert Oostenveld |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Stephen Whitmarsh - 2010-01-12 13:23:49 +0100
caption says it all. This is how I call preprocess: cfg = []; cfg.dataset = [subjectdata.eegfile]; cfg.trialdef.eventtype = 'frontpanel trigger'; cfg.events = [10 20 30]; cfg.trialdef.prestim = 1.5; cfg.trialdef.poststim = 1.5; cfg.continuous = 'no'; cfg.blc = 'no'; cfg.lpfilter = 'no'; cfg.hpfilter = 'yes'; cfg.hpfreq = 1; cfg.continuous = 'yes'; cfg.trialfun = 'EEGtheta_trialfun'; cfg.channel = 'EEG'; cfg.layout = 'EEG1010.lay'; = cfg.reref = 'no'; data = ft_preprocessing(cfg); This is what i get: ??? Error using ==> ft_preprocessing at 268 you must call DEFINETRIAL prior to PREPROCESSING tell me if you need a dataset...
Robert Oostenveld - 2010-01-13 08:03:36 +0100
cfg.trialfun is an option for DEFINETRIAL, not for PREPROCESSING. If PREPROCESSING sees the cfg.trialfun option but not a cfg.trl, then it will give an error. PREPROCESSING does not call DEFINETRIAL, you should do that yourself. However, if you do cfg = []; cfg.dataset = [subjectdata.eegfile]; data = ft_preprocessing(cfg); then you will get a preprocessed dataset, containing a single very long trial and the timeaxis of your whole recording. So you can preprocess without trial definition, which is what we discussed yesterday. But if you want to use a trial definition, you should make that before preprocessing.
Robert Oostenveld - 2011-01-05 11:56:58 +0100
selected a long list of resolved bugs from roboos and changed the status into "RESOLVED"