[FieldTrip] help SR_eyelink+eeg data processing
Schoffelen, J.M. (Jan Mathijs)
jan.schoffelen at donders.ru.nl
Fri Mar 19 08:08:08 CET 2021
Ciao Umberto,
Have you tried ft_read_event?
See https://www.fieldtriptoolbox.org/getting_started/eyelink/
Good luck,
Jan-Mathijs
On 19 Mar 2021, at 06:42, Cavallo, Umberto (Stud. FPN) <u.cavallo at student.maastrichtuniversity.nl<mailto:u.cavallo at student.maastrichtuniversity.nl>> wrote:
Dear All,
i am doing an experiment in which i simultaneously acquire eeg data and SR eyelink eyetracker data.
I still do not have eeg data, but i am trying to analyse my eyedata with fieldtrip since i will need this when i will have eeg data too.
Due to the acquisition method the only way in which i can read the triggers from the eyedata is the following:
cfg = [];
cfg.dataset = filename_eye;
cfg.montage.tra = eye(4)
cfg.montage.labelorg = {'1', '2', '3', '4'};
cfg.montage.labelnew = {'EYE_sample_numbers', 'EYE_HORIZONTAL', 'EYE_VERTICAL', 'EYE_DIAMETER'}
data_eye= ft_preprocessing(cfg);
hdr = ft_read_header(filename_eye);
event=[];
for evt=1:size(hdr.orig.msg,1)
tmp=hdr.orig.msg{evt};
ix=find(tmp==' ');
if length(ix)==1
event=[event;str2num(tmp(5:ix(1)-1)), str2num(tmp(ix(1):end))];
end
end
​basically all my events are stored in the matrix EVENT, and my eye data are stored in the structure data_eye.
I've tried to use built in functions to read events, however, they are not stored in cfg.event or anywhere else by using the classic fieldtrip functions. In fact, in this case the only event Fieldtrip read is the first timestamp and the last one, but not all the others.
Given that everything besides my events (and their triggers), which are stored in a matrix, are stored in data_eye, could you help me in finding a way to use the analysis functions of fieldtrip (like ft_timelockstatistics for data analysis).Or a way in which i can manipulate my data storage to use fieldtrip functions?
thanks in advance.
Best,
Umberto
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210319/65b49459/attachment.htm>
More information about the fieldtrip
mailing list