[Eeglablist] missing events when using the script but not when using the GUI

Mariam Kostandyan Mariam.Kostandyan at UGent.be
Fri Jan 19 04:00:45 PST 2018


Dear Tarik,


thank you for your answer.


1. EEG.event shoed me all the events

ans =

1x283 struct array with fields:

    type
    code
    duration
    latency
    epoch


2. Indeed, the data is converted from the .vhdr format (Brain Vision) to .set. But usually I never had problems with that.


3. Actually, that function is taken from here: https://openwetware.org/wiki/Mass_Univariate_ERP_Toolbox:_creating_GND_variables​

And this is actually what I am trying to do:  to add bin events to a .set file to be able to use the MUT to correct for multiple comparisons. And on this step I get an error showing that there are no events (that is why I decided in the first place to check the number of events):


bin_info2EEG('cue23-s20-clean.set','cues_blf.txt','cue23-s20-clean_new.set');

pop_loadset(): loading file cue23-s20-clean.set ...
Reading float file 'cue23-s20-clean.fdt'...

Bin 1: RBrew
Event types belonging to this bin: 'S20'

Bin 2: RBnr
Event types belonging to this bin: 'S21'

Bin 3: NRB
Event types belonging to this bin: 'S23'
Reference to non-existent field 'eventurevent'.

Error in bin_info2EEG (line 309)
                        EEG.epoch(a).eventurevent{add_ct+n_ep_type}=EEG.epoch(a).eventurevent{b};

4. The GUI does recognize all the 283 events.

Thank you again,
Mariam




----------------------

Mariam Kostandyan
PhD student
University of Gent
Department of Experimental Psychology
Henri Dunantlaan 2, 9000 Gent, Belgium
----------------------

Room 140.021
Tel.: +32 9 264 6398
E-mail: Mariam.Kostandyan at UGent.be<mailto:Mariam.Kostandyan at UGent.be>
E-mail: kostandyan.m at gmail.com<mailto:kostandyan.m at gmail.com>
________________________________
От: Tarik S Bel-Bahar <tarikbelbahar at gmail.com>
Отправлено: 10 января 2018 г. 20:50
Кому: Mariam Kostandyan
Копия: eeglablist at sccn.ucsd.edu
Тема: Re: [Eeglablist] missing events when using the script but not when using the GUI

Hello Mariam, some notes below, hope they help!



**************BEGIN NOTES FOR MARIAM
1. try reviewing the EEG.events structure closely (not just looking at the GUI) and confirm that it has events in the same places and set up the same way as in an eeglab tutorial dataset. Like this you can tell if your file has some unique differences that require modification.

2. If you've set up or preprocessed the file in a program besides eeglab, there might be some inconsistency that is there relative to usual eeglab files. Is this the case ?

3. the list_event_types function does not seem to be an eeglab function. One should review the code of that script closely, and/or contact the person who wrote it. it is likely that is incorrectly addressing/looking for the events information in the .set file. Thanks for specifying where this function is from.

4. Consider trying several eeglab functions related to reviewing events, such as
pop_eventstat, eeg_eventhist, eeg_eventtable, eeg_eventtypes, and show_events
If you go into event editor via gui you should also be able to see all events that you expect (especially since the main gui "recognizes" them)

*Thanks for sharing your eventual solution or fix with the list, as other users may be able to benefit from your experiences.

**************END NOTES FOR MARIAM















On Wed, Jan 10, 2018 at 2:29 AM, Mariam Kostandyan <Mariam.Kostandyan at ugent.be<mailto:Mariam.Kostandyan at ugent.be>> wrote:

Dear all,


I encountered a bit weird problem when I don't find EEG events when using a script but when I check the EEG data in the GUI the events are there. More specifically, I run the following script to check whether all the events are present in the .set file:


[types type_count]=list_event_types('cue23-s20-clean.set');

I get empty cells for event_count as you can see on the picture (follow the link here https://docs.google.com/drawings/d/18TcmQ37nINgM_YVcyt9gpeKgOf0pXWJAS-ns6sqHfZk/edit). However, the events are there (n=283) as it is shown in the GUI.

​

What can be the possible problem here?


Kind regards,

Mariam



----------------------

Mariam Kostandyan
PhD student
University of Gent
Department of Experimental Psychology
Henri Dunantlaan 2, 9000 Gent, Belgium
----------------------

Room 140.021
Tel.: +32 9 264 6398<tel:+32%209%20264%2063%2098>
E-mail: Mariam.Kostandyan at UGent.be<mailto:Mariam.Kostandyan at UGent.be>
E-mail: kostandyan.m at gmail.com<mailto:kostandyan.m at gmail.com>

_______________________________________________
Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu<mailto:eeglablist-unsubscribe at sccn.ucsd.edu>
For digest mode, send an email with the subject "set digest mime" to eeglablist-request at sccn.ucsd.edu<mailto:eeglablist-request at sccn.ucsd.edu>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20180119/c77291d3/attachment.html>


More information about the eeglablist mailing list