[FieldTrip] Help importing and reading data

Schoffelen, J.M. (Jan Mathijs) jan.schoffelen at donders.ru.nl
Wed Oct 12 09:48:31 CEST 2016


Hi Alexander,

If you have managed to convert the data into a mat-file, in general it is not needed to go through ft_preprocessing to get the data loaded into memory. In general, providing cfg.datafile = ‘somefilename.mat’ will not work. I’d recommend to look here: http://www.fieldtriptoolbox.org/faq/how_can_i_import_my_own_dataformat, and in particular at the ‘circumvent the fieldtrip reading functions’ section. The idea is to create a fieldtrip-style data structure that can serve as an input argument to downstream processing functions.

Good luck,
Jan-Mathijs



On 10 Oct 2016, at 19:39, Whillier, Alexander <alexander.whillier at med.uni-goettingen.de<mailto:alexander.whillier at med.uni-goettingen.de>> wrote:

Dear Fieldtrip,

I have inherited a dataset of EMG and EEG data that was gathered using two different programs.  One of my colleagues has taught me the basics of fieldtrip and I only a beginner at Matlab at the moment.  I am trying to analyse both data sets using fieldtrip.

The first dataset (which works) is .cnt data gathered using EEG Probe.
The second dataset (which fieldtrip currently fails to recognise) is .cfs data gathered using Signal.  I am able to export the data as .mat files, to read them in Matlab using Fieldtrip.  However, in spite of my best efforts to create a header file and header format that the preprocessing code will accept, I am unable to proceed.  I get constant errors:

Error using ft_read_header (line 2158)
unsupported header format (matlab)

Error in ft_preprocessing (line 394)
  hdr = ft_read_header(cfg.headerfile, 'headerformat',
  cfg.headerformat, 'coordsys', cfg.coordsys,
  'coilaccuracy', cfg.coilaccuracy);

Even though my cfg.hdr section has all of these values, I cannot find a way to get it to run the preprocessing code.

Can you help?

Kind regards,

Alexander Whillier
_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl<mailto:fieldtrip at donders.ru.nl>
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20161012/7125d50b/attachment-0001.html>


More information about the fieldtrip mailing list