[FieldTrip] errors while trying to run beamformer tutorial
Schoffelen, J.M. (Jan Mathijs)
jan.schoffelen at donders.ru.nl
Fri Aug 26 07:36:49 CEST 2016
Hi Jeff,
I assume that you have unzipped the data, and have the data (i.e. the ‘SubjectSEF.ds’) in directoryX.
You need to specify the full path to the data in cfg.dataset (or your current working directory should be directoryX), i.e. cfg.dataset = ‘directoryX/SubjectSEF.ds’;
Hope this helps,
Jan-Mathijs
On 26 Aug 2016, at 01:49, K Jeffrey Eriksen <eriksenj at ohsu.edu<mailto:eriksenj at ohsu.edu>> wrote:
I am trying to learn how to apply the LCMV beamformer to EEG data. To that end I am starting to go through this tutorial:
http://www.fieldtriptoolbox.org/tutorial/beamformer_lcmv?s[]=lcmv<http://www.fieldtriptoolbox.org/tutorial/beamformer_lcmv?s%5b%5d=lcmv>
I downloaded the data from this link:
The ft_definetrial and ft_preprocessing functions require the original MEG dataset, which is available from ftp://ftp.fieldtriptoolbox.org/pub/fieldtrip/tutorial/SubjectSEF.zip.
Then I tried this code:
% find the interesting segments of data
cfg = [];
cfg.dataset = 'SubjectSEF.ds';
cfg.trialdef.eventtype = 'Blue';
cfg.trialdef.prestim = .1; % .1 sec prior to trigger
cfg.trialdef.poststim = .2; % .2 sec following trigger
cfg.continuous = 'yes';
cfg = ft_definetrial(cfg);
and got this output:
Warning: could not determine filetype of SubjectSEF.ds
> In ft_filetype (line 1294)
In dataset2files (line 42)
In ft_checkconfig (line 557)
In ft_definetrial (line 131)
In fieldtrip_test_lcmv (line 13)
Warning: no trialfun was specified, using ft_trialfun_general
> In ft_definetrial (line 138)
In fieldtrip_test_lcmv (line 13)
evaluating trialfunction 'ft_trialfun_general'
Error using ft_read_header (line 2248)
unsupported header format "unknown"
Error in ft_trialfun_general (line 78)
hdr = ft_read_header(cfg.headerfile, 'headerformat', cfg.headerformat);
Error in ft_definetrial (line 177)
[trl, event] = feval(cfg.trialfun, cfg);
Error in fieldtrip_test_lcmv (line 13)
cfg = ft_definetrial(cfg);
So I am totally lost here. Any suggestions?
Thanks,
-Jeff Eriksen
_______________________________________________
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/20160826/6c6ca2f4/attachment-0002.html>
More information about the fieldtrip
mailing list