[FieldTrip] error using ft_channelrepair
Boomen, C. van den (Carlijn)
C.vandenBoomen at uu.nl
Fri Aug 28 14:37:14 CEST 2020
Dear Fieldtrip users,
Currently I'm trying to interpolate EEG data from an EGI system using ft_channelrepair. I run into the same error as is described in this thread: https://mailman.science.ru.nl/pipermail/fieldtrip/2014-March/033537.html but can't seem to find the solution.
The error is the following:
Error using ft_fetch_sens (line 203)
no electrodes, gradiometers or optodes specified.
Error in ft_channelrepair (line 129)
sens = ft_fetch_sens(cfg, data);
It seems that the ft_prepare_neighbours works well, as the neighbours are described and make sense. The error occurs if I automatically detect the bad channel, if I manually define it, if I use any type of method. For example in the following script where row and column represent a specific channel and trial (which are correctly identified, and the cfg.badchannel shows the actual channel name)
cfg = [];
cfg.badchannel = datafinal_incl.label(row,1);
cfg.trials = column;
cfg.method = 'weighted';
cfg.neighbours = neighbours;
data_fixed{1,column} = ft_channelrepair(cfg,datafinal_incl);
Does anyone know what the error and possible solution might be?
Thank you for your help!
Best,
Carlijn
Dr. Carlijn van den Boomen
Departments of Developmental and Experimental Psychology | Utrecht University | Langeveld Building - room H066 | Heidelberglaan 1 | 3584 CS Utrecht | the Netherlands | phone: +31(30) 253 1266
Cluster Chair | University College Utrecht | Newton building room Hh | the Netherlands | phone: +31(30) 253 9826 | in office on Tuesday and Wednesday
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20200828/d36d24db/attachment.htm>
More information about the fieldtrip
mailing list