<div dir="ltr">Dear Grusha,<div><br></div><div>Sorry for belated response.</div><div><br></div><div>> error <span style="color:rgb(80,0,80)">275: Reference to non-existent filed 'urevent'. </span><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">It seems you have inconsistency problem in urevent.</div><div class="gmail_extra">To solve this, add the following line</div><div class="gmail_extra"><br></div><div class="gmail_extra">EEG = eeg_checkset(EEG, 'makeur')</div><div class="gmail_extra"><br></div><div class="gmail_extra">This makes EEG.urevent so that you will not receive the error message.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Makoto</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 26, 2017 at 5:47 PM, Grusha Prasad <span dir="ltr"><<a href="mailto:grusha.prasad@gmail.com" target="_blank">grusha.prasad@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Makoto!<div><br></div><div>That was what I wanted to do. I imported event information seperately, then I interpolated the channels and followed the pipeline I mentioned earlier. Then, when I tried merging the files, it threw the error <span style="color:rgb(80,0,80)">275: Reference to non-existent filed 'urevent'. So for now, I decided to interpolate the channels -> merge the files -> import the event information for the merged file -> export it to a text file -> make the necessary changes -> associate this new eventlist with the merged .set file. </span></div><div><span style="color:rgb(80,0,80)"><br></span></div><div><span style="color:rgb(80,0,80)">The reason I want to export it to a text file and then make the changes instead of directly editing the event structure is because the events I need to delete are at different points in the file for every participant (and are not uniquely marked) and so I will need to integrate information from the csv file outputted by the stimulus presentation software. Hence editing the text file seemed a more straightforward way of doing it - since it would easier to eyeball the structure to make sure I wasn't messing up. </span></div><div><span style="color:rgb(80,0,80)"><br></span></div><div><span style="color:rgb(80,0,80)">So while I've found a work around, I still don't understand why I am unable to merge files after importing event info (unless I comment out the lines 254 to 294..) </span></div><div><span style="color:rgb(80,0,80)"><br></span></div><div><span style="color:rgb(80,0,80)">Does this make sense? </span></div><div><span style="color:rgb(80,0,80)"><br></span></div><div><span style="color:rgb(80,0,80)">Thank you!</span></div><span class="gmail-HOEnZb"><font color="#888888"><div><span style="color:rgb(80,0,80)">Grusha.</span></div></font></span><div><div class="gmail-h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 17, 2017 at 9:02 PM, Makoto Miyakoshi <span dir="ltr"><<a href="mailto:mmiyakoshi@ucsd.edu" target="_blank">mmiyakoshi@ucsd.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear Grusha,<div><br></div><div>Sorry I still don't understand what you mean. If you have split .set files with split event info, I would suggest import event separately and merge them, then export event info. Or Am I still misunderstanding you??</div><div><br></div><div>By the way here is an example to directly edit event structure. I wonder if you want to challenge it. If it works for you, it is much more straightforward.</div><div><br></div><div><a href="https://sccn.ucsd.edu/wiki/Makoto%27s_useful_EEGLAB_code#How_to_build_EEG_structure_.2801.2F30.2F2017_updated.29" target="_blank">https://sccn.ucsd.edu/wiki/Mak<wbr>oto%27s_useful_EEGLAB_code#How<wbr>_to_build_EEG_structure_.2801.<wbr>2F30.2F2017_updated.29</a><span class="gmail-m_-7569477433577178500gmail-HOEnZb"><font color="#888888"><br></font></span></div><span class="gmail-m_-7569477433577178500gmail-HOEnZb"><font color="#888888"><div><br></div><div>Makoto</div></font></span></div><div class="gmail-m_-7569477433577178500gmail-HOEnZb"><div class="gmail-m_-7569477433577178500gmail-h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 11, 2017 at 3:59 PM, Grusha Prasad <span dir="ltr"><<a href="mailto:grusha.prasad@gmail.com" target="_blank">grusha.prasad@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Makoto!<div><br></div><div>Sorry if I wasn't being clear - when I said append eventlist, I meant creating an event list and associating it with the EEG file. Basically what the <span style="font-size:12.8px"> </span><span style="font-size:12.8px">pop_creabasiceventlist is doing. Is there a way the merge dataset operation does this without having to use that pop function first? </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">And the reason I want to create the eventlist and export it to a textfile is so that I can edit that event list (to delete specific events that occur at different points for each participant - because of a coding error wile setting up my experiment) and then append it back to the EEG file (by using the import event list from text file GUI option) </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Does this make sense? Or did I misunderstand your question?</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thank you!!<span class="gmail-m_-7569477433577178500gmail-m_-7275740523884014376HOEnZb"><font color="#888888"><br>Grusha.</font></span></span></div></div><div class="gmail-m_-7569477433577178500gmail-m_-7275740523884014376HOEnZb"><div class="gmail-m_-7569477433577178500gmail-m_-7275740523884014376h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 9, 2017 at 10:18 PM, Makoto Miyakoshi <span dir="ltr"><<a href="mailto:mmiyakoshi@ucsd.edu" target="_blank">mmiyakoshi@ucsd.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear Grusha,<span><div><br></div><div>> after appending eventlists on both the sets <br></div><div class="gmail_extra"><br></div></span><div class="gmail_extra">First of all, why do you need to do it manually? I thought EEGLAB merge dataset operation can do it well (slow though). Please tell me more about this part.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Makoto</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="gmail-m_-7569477433577178500gmail-m_-7275740523884014376m_-6520904417631264192h5">On Wed, Feb 8, 2017 at 7:19 AM, Grusha Prasad <span dir="ltr"><<a href="mailto:grusha.prasad@gmail.com" target="_blank">grusha.prasad@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail-m_-7569477433577178500gmail-m_-7275740523884014376m_-6520904417631264192h5"><div dir="ltr">Hi!<div><br></div><div>I've been trying to merge two datasets using pop_mergeset() after appending eventlists on both the sets and I get this error at line 275: Reference to non-existent filed 'urevent'. I read through the thread "Merging two datasets with unequal number of events" and from what I gathered, it seemed like the issue had to do with eventlist somehow changing the 'urevent' structure. While there are fewer events in my event structure when compared to my urevent structure (because while binning it, I am ignoring my 'distractor' trigger), this doesn't seem to be the problem - because the problem persists even when I try merging sets before I bin them (so 'urevent' has the same number of events as the 'event' structure). </div><div><br></div><div>Though the 'urevent' isn't missing, I tired the proposed solution in the thread and ran</div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>EEG = <span style="color:rgb(0,0,0);white-space:pre-wrap">eeg_checkset(EEG, 'makeur')</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div></blockquote><font color="#000000"><span style="white-space:pre-wrap">This did not work either. So I went in to the script for pop_mergeset() and commented out lines 254 to 294 (the part which seems to be trying to concatenate the urevents). This seems to do the trick. The files merge and the event structure has the right number of events. However, as expected, the new EEG structure has the urevents only from the first set. From the little I understand though, it seems to me like this wouldn't be a problem because all further steps (Artifact detection and computing averaged ERPs) seem to use just the event structure. Is this true? Or will there be any problems with doing this that I am missing? </span></font></div><div><font color="#000000"><span style="white-space:pre-wrap"><br></span></font></div><div><font color="#000000"><span style="white-space:pre-wrap">Thank you!</span></font></div><span class="gmail-m_-7569477433577178500gmail-m_-7275740523884014376m_-6520904417631264192m_3341667983593061342gmail-HOEnZb"><font color="#888888"><div><font color="#000000"><span style="white-space:pre-wrap">Grusha.</span></font></div><div><font color="#000000"><span style="white-space:pre-wrap"><br></span></font></div><div><font color="#000000"><span style="white-space:pre-wrap"><br></span></font></div></font></span></div>
<br></div></div><span>______________________________<wbr>_________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/ee<wbr>glabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.uc<wbr>sd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.e<wbr>du</a><br></span></blockquote></div><span class="gmail-m_-7569477433577178500gmail-m_-7275740523884014376m_-6520904417631264192HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="gmail-m_-7569477433577178500gmail-m_-7275740523884014376m_-6520904417631264192m_3341667983593061342gmail_signature"><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div>
</font></span></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail-m_-7569477433577178500gmail-m_-7275740523884014376gmail_signature"><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div>
</div>
</div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div>
</div></div>