Back to the main page.

Bug 1570 - ft_filetype overlapping between eyelink and itab MEG header *.asc file extension

Reported 2012-06-28 15:18:00 +0200
Modified 2012-11-29 09:13:35 +0100
Product: FieldTrip
Component: fileio
Version: unspecified
Hardware: PC
Operating System: Linux
Importance: P3 normal
Assigned to: Jan-Mathijs Schoffelen
Depends on:
See also:

Diego Lozano Soldevilla - 2012-06-28 15:18:27 +0200

Hi, When calling ft_definetrial to read the *.asc Eyelink files, ft_filetype recognizes 'itab_asc' header format instead of 'eyelink_asc'. This is because both header formats are defined by the same file extension *.asc and 'itab_asc' goes first. A potential soluciont would consists to use the cfg.headformat in the ft_filetype varargin. In doing so, the cfg's input of ft_definetrial should be more strictely defined. For instance: cfg = []; cfg.dataset = '/home/electromag/dieloz/4ole/MSJ.asc'; cfg.headerformat = 'eyelink_asc'; cfg.trialdef.prestim = 1; cfg.trialdef.poststim = 3; cfg.trialdef.eventvalue = [2 3 4 5 6]; cfg = ft_definetrial(cfg); Best, Diego

Robert Oostenveld - 2012-06-28 16:57:27 +0200

could you attach the asc file? Perhaps the detection can be improved using the first line of the file. If that is the case, the order can be swapped in ft_filetype.

Diego Lozano Soldevilla - 2012-06-28 16:59:28 +0200

Created attachment 288 asc eyelink file Here I attach to you the file Diego

Jan-Mathijs Schoffelen - 2012-11-28 15:03:51 +0100

added conditional statement on line 777 in ft_filetype to distinguish the itab_asc filetype from eyelink_asc, assuming the eyelink_asc header to start with '**' fixed in revision 7025