Back to the main page.

Bug 88 - FILE-IO EDF+ and BDF file reading

Reported 2010-06-05 04:13:00 +0200
Modified 2010-07-12 23:28:16 +0200
Product: FieldTrip
Component: fileio
Version: unspecified
Hardware: Macintosh
Operating System: Mac OS
Importance: P5 normal
Assigned to: Robert Oostenveld
Depends on:
See also:

Arnaud Delorme - 2010-06-05 04:13:26 +0200

Using the latest SVN version of FILE-IO two files could not be read. Both files are available at Best, Arno

Robert Oostenveld - 2010-06-08 12:02:22 +0200

I have tested the edf file. The native fieldtrip edf reader reports that the annotation channel is in a different sampling rate, which is not supported. When specifying dataformat=biosig and headerformat=biosig, and adding the latest (svn) version of biosig to my matlab path, I can read in the edf test file with read_header and read_data (and hence all other FT functions). It then reports that all channels are at 1000 Hz. I don't know what biosig does with the annotation channel, perhaps set it to zeros. I have not tested the other file, because I was not able to doenload it.

Robert Oostenveld - 2010-06-14 16:39:14 +0200

the *.edf test file is very similar to one that I just got from EGI, i.e. the way that EGI converts their data to EDF+ results in an annotation channel (as last channel) with a different sampling date. I have made an update to read_edf which allows the data from the consistent channels to be read in this case). The *.bdf problem should be solved by reading the file with dataformat='biosig' and 'headerformat='biosig. and by using a recent version of biosig (which includes the fix).