<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Dear Tarik, <br>
</p>
<p><br>
</p>
<p>thank you for your answer. <br>
</p>
<p><br>
</p>
<p>1. <span style="font-size: 12pt;">EEG.event shoed me all the events </span></p>
<div><br>
</div>
<div>ans = </div>
<div><br>
</div>
<div>1x283 struct array with fields:</div>
<div><br>
</div>
<div>    type</div>
<div>    code</div>
<div>    duration</div>
<div>    latency</div>
<div>    epoch<br>
</div>
<p><br>
</p>
<p>2. Indeed, the data is converted from the .vhdr format (Brain Vision) to .set. But usually I never had problems with that. <br>
</p>
<p><br>
</p>
<p>3. Actually, that function is taken from here: <a href="https://openwetware.org/wiki/Mass_Univariate_ERP_Toolbox:_creating_GND_variables" style="font-size: 12pt;">https://openwetware.org/wiki/Mass_Univariate_ERP_Toolbox:_creating_GND_variables</a><span style="font-size: 12pt;">​ </span></p>
<p><span style="font-size: 12pt;">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): </span></p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<div>bin_info2EEG('cue23-s20-clean.set','cues_blf.txt','cue23-s20-clean_new.set');<br>
</div>
<div><br>
</div>
<div>pop_loadset(): loading file cue23-s20-clean.set ...</div>
<div>Reading float file 'cue23-s20-clean.fdt'...</div>
<div><br>
</div>
<div>Bin 1: RBrew</div>
<div>Event types belonging to this bin: 'S20'</div>
<div><br>
</div>
<div>Bin 2: RBnr</div>
<div>Event types belonging to this bin: 'S21'</div>
<div><br>
</div>
<div>Bin 3: NRB</div>
<div>Event types belonging to this bin: 'S23'</div>
<div>Reference to non-existent field 'eventurevent'.</div>
<div><br>
</div>
<div>Error in bin_info2EEG (line 309)</div>
<div>                        EEG.epoch(a).eventurevent{add_ct+n_ep_type}=EEG.epoch(a).eventurevent{b}; <br>
</div>
<div><br>
</div>
<div>4. The GUI does recognize all the 283 events. <br>
</div>
<div><br>
</div>
<div>Thank you again, <br>
</div>
<div>Mariam<br>
</div>
<div><br>
</div>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div style="color:rgb(34,34,34); background-color:rgb(255,255,255)">
<div><font face="Cambria, serif">----------------------</font></div>
<div><font color="#000000" size="2" face="Cambria, serif"><br>
</font></div>
<div><font color="#000000" size="2" face="Cambria, serif">Mariam Kostandyan</font></div>
<div><font color="#000000" size="2" face="Cambria, serif">PhD student </font></div>
<div><font size="2" face="Cambria, serif"><span style="color:rgb(0,0,0)">University of Gent</span><span style="color:rgb(0,0,0); line-height:1.2em"><br>
</span></font></div>
<div><font size="2" face="Cambria, serif"><span style="color:rgb(0,0,0); line-height:1.2em">Department of Experimental Psychology</span><br>
</font></div>
<div><font face="Cambria, serif"><span style="line-height:14px; color:rgb(0,0,0); font-size:small">Henri Dunantlaan 2, </span><span style="line-height:14px; color:rgb(0,0,0); font-size:small">9000 Gent, </span><span style="color:rgb(0,0,0); font-size:small">Belgium</span></font></div>
<div><font face="Cambria, serif">----------------------</font></div>
<div><font face="Cambria, serif"><br>
</font></div>
</div>
<div style="color:rgb(34,34,34); background-color:rgb(255,255,255)"><font color="#000000" size="2" face="Cambria, serif">Room 140.021</font></div>
<div style="color:rgb(34,34,34); background-color:rgb(255,255,255)"><font face="Cambria, serif"><font color="#000000" size="2"><span style="line-height:14px">Tel.: </span></font><span style="font-size:13.3333px">+32 9 264 6398</span></font></div>
<font face="Cambria, serif"></font>
<div style="color:rgb(34,34,34); background-color:rgb(255,255,255)"><font size="2" face="Cambria, serif"><span style="color:rgb(0,0,0)">E-mail: </span><a tabindex="0" href="mailto:Mariam.Kostandyan@UGent.be" target="_blank" style="color:rgb(17,85,204); line-height:14px" id="NoLP">Mariam.Kostandyan@UGent.be</a><span style="color:rgb(0,0,0)"> </span><br>
</font></div>
<div style="color:rgb(34,34,34); background-color:rgb(255,255,255)"><font color="#000000" size="2" face="Cambria, serif">E-mail: <a tabindex="0" href="mailto:kostandyan.m@gmail.com" target="_blank" style="color:rgb(17,85,204)" id="NoLP">kostandyan.m@gmail.com</a></font></div>
</div>
</div>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>От:</b> Tarik S Bel-Bahar <tarikbelbahar@gmail.com><br>
<b>Отправлено:</b> 10 января 2018 г. 20:50<br>
<b>Кому:</b> Mariam Kostandyan<br>
<b>Копия:</b> eeglablist@sccn.ucsd.edu<br>
<b>Тема:</b> Re: [Eeglablist] missing events when using the script but not when using the GUI</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="gmail_default" style="color:rgb(51,51,153)">Hello Mariam, some notes below, hope they help!</div>
<div class="gmail_default" style="color:rgb(51,51,153)"><br>
</div>
<div class="gmail_default" style="color:rgb(51,51,153)"><br>
</div>
<div class="gmail_default" style="color:rgb(51,51,153)"><br>
</div>
<div class="gmail_default" style="color:rgb(51,51,153)">**************BEGIN NOTES FOR MARIAM</div>
<div class="gmail_default" style="color:rgb(51,51,153)">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.</div>
<div class="gmail_default" style="color:rgb(51,51,153)"><br>
</div>
<div class="gmail_default" style="color:rgb(51,51,153)">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 ?<br>
</div>
<div class="gmail_default" style="color:rgb(51,51,153)"><br>
</div>
<div class="gmail_default" style="color:rgb(51,51,153)">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.<br>
</div>
<div class="gmail_default" style="color:rgb(51,51,153)"><br>
</div>
<div class="gmail_default" style="color:rgb(51,51,153)">4. Consider trying several eeglab functions related to reviewing events, such as </div>
<div class="gmail_default" style="color:rgb(51,51,153)">pop_eventstat, eeg_eventhist, eeg_eventtable, eeg_eventtypes, and show_events</div>
<div class="gmail_default" style="color:rgb(51,51,153)">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)</div>
<div class="gmail_default" style="color:rgb(51,51,153)"><br>
</div>
<div class="gmail_default" style="color:rgb(51,51,153)">*Thanks for sharing your eventual solution or fix with the list, as other users may be able to benefit from your experiences.</div>
<div class="gmail_default" style="color:rgb(51,51,153)"><br>
</div>
<div class="gmail_default" style="color:rgb(51,51,153)">**************END NOTES FOR MARIAM<br>
</div>
<div class="gmail_default" style="color:rgb(51,51,153)"><br>
</div>
<div class="gmail_default" style="color:rgb(51,51,153)"><br>
</div>
<div class="gmail_default" style="color:rgb(51,51,153)"><br>
</div>
<div class="gmail_default" style="color:rgb(51,51,153)"><br>
</div>
<div class="gmail_default" style="color:rgb(51,51,153)"><br>
</div>
<div class="gmail_default" style="color:rgb(51,51,153)"><br>
</div>
<div class="gmail_default" style="color:rgb(51,51,153)"><br>
</div>
<div class="gmail_default" style="color:rgb(51,51,153)"><br>
</div>
<div class="gmail_default" style="color:rgb(51,51,153)"><br>
</div>
<div class="gmail_default" style="color:rgb(51,51,153)"><br>
</div>
<div class="gmail_default" style="color:rgb(51,51,153)"><br>
</div>
<div class="gmail_default" style="color:rgb(51,51,153)"><br>
</div>
<div class="gmail_default" style="color:rgb(51,51,153)"><br>
</div>
<div class="gmail_default" style="color:rgb(51,51,153)"><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Jan 10, 2018 at 2:29 AM, Mariam Kostandyan <span dir="ltr">
<<a href="mailto:Mariam.Kostandyan@ugent.be" target="_blank">Mariam.Kostandyan@ugent.be</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr" style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<div dir="ltr" style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<div>
<p>Dear all, <br>
</p>
<p><br>
</p>
<p>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:<br>
</p>
<p><br>
</p>
<div>[types type_count]=list_event_types('<wbr>cue23-s20-clean.set');</div>
<div><br>
I get empty cells for event_count as you can see on the picture (follow the link here <a href="https://docs.google.com/drawings/d/18TcmQ37nINgM_YVcyt9gpeKgOf0pXWJAS-ns6sqHfZk/edit" target="_blank">https://docs.google.com/<wbr>drawings/d/18TcmQ37nINgM_<wbr>YVcyt9gpeKgOf0pXWJAS-<wbr>ns6sqHfZk/edit</a>).
 However, the events are there (n=283) as it is shown in the GUI. <br>
</div>
<p>​</p>
<p>What can be the possible problem here? <br>
</p>
<p><br>
</p>
<p>Kind regards,<br>
</p>
<p>Mariam<br>
</p>
<p><br>
</p>
<p><br>
</p>
<div id="m_-529570748457484614Signature">
<div name="divtagdefaultwrapper">
<div style="color:rgb(34,34,34); background-color:rgb(255,255,255)">
<div><font face="Cambria, serif">----------------------</font></div>
<div><font color="#000000" size="2" face="Cambria, serif"><br>
</font></div>
<div><font color="#000000" size="2" face="Cambria, serif">Mariam Kostandyan</font></div>
<div><font color="#000000" size="2" face="Cambria, serif">PhD student </font></div>
<div><font size="2" face="Cambria, serif"><span style="color:rgb(0,0,0)">University of Gent</span><span style="color:rgb(0,0,0); line-height:1.2em"><br>
</span></font></div>
<div><font size="2" face="Cambria, serif"><span style="color:rgb(0,0,0); line-height:1.2em">Department of Experimental Psychology</span><br>
</font></div>
<div><font face="Cambria, serif"><span style="line-height:14px; color:rgb(0,0,0); font-size:small">Henri Dunantlaan 2, </span><span style="line-height:14px; color:rgb(0,0,0); font-size:small">9000 Gent, </span><span style="color:rgb(0,0,0); font-size:small">Belgium</span></font></div>
<div><font face="Cambria, serif">----------------------</font></div>
<div><font face="Cambria, serif"><br>
</font></div>
</div>
<div style="color:rgb(34,34,34); background-color:rgb(255,255,255)"><font color="#000000" size="2" face="Cambria, serif">Room 140.021</font></div>
<div style="color:rgb(34,34,34); background-color:rgb(255,255,255)"><font face="Cambria, serif"><font color="#000000" size="2"><span style="line-height:14px">Tel.: </span></font><span style="font-size:13.3333px"><a href="tel:+32%209%20264%2063%2098" value="+3292646398" target="_blank">+32
 9 264 6398</a></span></font></div>
<font face="Cambria, serif"></font>
<div style="color:rgb(34,34,34); background-color:rgb(255,255,255)"><font size="2" face="Cambria, serif"><span style="color:rgb(0,0,0)">E-mail: </span><a href="mailto:Mariam.Kostandyan@UGent.be" id="m_-529570748457484614NoLP" target="_blank" style="color:rgb(17,85,204); line-height:14px">Mariam.Kostandyan@<wbr>UGent.be</a><span style="color:rgb(0,0,0)"> </span><br>
</font></div>
<div style="color:rgb(34,34,34); background-color:rgb(255,255,255)"><font color="#000000" size="2" face="Cambria, serif">E-mail: <a href="mailto:kostandyan.m@gmail.com" id="m_-529570748457484614NoLP" target="_blank" style="color:rgb(17,85,204)">kostandyan.m@gmail.com</a></font></div>
</div>
</div>
</div>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">
http://sccn.ucsd.edu/eeglab/<wbr>eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">
eeglablist-unsubscribe@sccn.<wbr>ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">
eeglablist-request@sccn.ucsd.<wbr>edu</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</body>
</html>