<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Title" content="">
<meta name="Keywords" content="">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Cambria;
panose-1:2 4 5 3 5 4 6 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:Cambria;
color:windowtext;}
span.msoIns
{mso-style-type:export-only;
mso-style-name:"";
text-decoration:underline;
color:teal;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Cambria">Hi Tarik,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Cambria">Thanks for your suggestions.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Cambria"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Cambria">Everything is the same with the two files except the length. I tried merging the data before running any Event List/Bin List procedures as part of ERPLab and that does work successfully,
even with unequal numbers of events per file. However, after generating ERPLab Event Lists, the appending does not work, and I get the same error that I posted originally. After running the Event List, there are a listed number of events in the EEGLab GUI
display. Everything else about the two files (sampling rate, etc.) is the same. It seems then that Event List is doing something to the urevent structure perhaps? I’m not really familiar with the idea of urevent.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Cambria"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Cambria">My overall issue is that the two files (two runs) have the same event codes, but I want to later be able to bin the events by which run they were in so that I can create an ERP difference
wave. I could keep the two runs separate and then append them once they are averaged in ERPLab, but I figured that it would be easier to do artifact detection/rejection as one file rather than two.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Cambria"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Cambria">Thanks for any additional ideas.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Cambria">Elizabeth<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Cambria"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-family:Calibri;color:black">From: </span>
</b><span style="font-family:Calibri;color:black">Tarik S Bel-Bahar <tarikbelbahar@gmail.com><br>
<b>Reply-To: </b><tarikbelbahar@gmail.com><br>
<b>Date: </b>Thursday, October 27, 2016 at 2:22 PM<br>
<b>To: </b>Elizabeth Spencer Norton <enorton@northwestern.edu><br>
<b>Cc: </b>"eeglablist@sccn.ucsd.edu" <eeglablist@sccn.ucsd.edu><br>
<b>Subject: </b>Re: [Eeglablist] Merging two datasets with unequal numbers of events<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="color:#333399">Hi Elizabeth, some notes below that might help. this shouldn't be a problem, and if it's repeatable please consider reporting in eeglab bugzilla.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#333399"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#333399">The error of course suggests that one of your files does not have urevents, which I think are/should-be generated when a file is first loaded and saved in eeglab.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#333399">I recommend making sure that you've done the following, which should lead you past this error.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#333399"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#333399">importing, epoching, and saving the two files the same way as much as possible, so there is nothing different between them except the number and type of epoch.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#333399">both files should have a "number of epochs" in the eeglab gui<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#333399">both files "should" have an urevents field (unless there were no events in the file used originally?-not sure about this, see online wiki on events and urevents)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#333399">both files should have an 3-dimensional EEG.data structure<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#333399">both files should have the same-length epochs<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#333399">both files should already be healthily saved and re-openable in eeglab as .set files, prior to attempt at merging<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#333399">both files are actively in memory as Datasets 1 and 2 (or however many datasets you're merfing.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#333399"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#333399">Other than this, first two a successful mergeset and review the command that was run using eegh. Try it on two files that are copy of each of other.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#333399">You may also attempt to comment out line 275 or near there in the code to attempt to bypass the error, but this is NOT recommended unless you're matlab saavy and can read the full function code.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#333399"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#333399"><o:p> </o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Wed, Oct 26, 2016 at 2:44 PM, Elizabeth Spencer Norton <<a href="mailto:enorton@northwestern.edu" target="_blank">enorton@northwestern.edu</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<p style="background:white"><span style="font-family:Cambria;color:black">Hello,<o:p></o:p></span></p>
<p style="background:white"><span style="font-family:Cambria;color:black">I'm trying to merge (concatenate) two datasets with different numbers of events. We run an oddball paradigm with randomly selected number of standards between deviants, and this is done
in two runs that have different stimuli. I'm trying to concatenate the two runs using the GUI which calls pop_mergeset, but getting the error popup "EEGLAB error in function pop_mergeset() at line 275: Reference to non-existent field 'urevent'."<o:p></o:p></span></p>
<p style="background:white"><span style="font-family:Cambria;color:black"><o:p> </o:p></span></p>
<p style="background:white"><span style="font-family:Cambria;color:black">Looking at the pop_mergeset script, it looks like it wants to merge the files and insert a boundary event halfway through (lines 224-228), which may be the problem with using two files
of unequal length. (Using EEGLab version 13.6.5.)<o:p></o:p></span></p>
<p style="background:white"><span style="font-family:Cambria;color:black"><o:p> </o:p></span></p>
<p style="background:white"><span style="font-family:Cambria;color:black">I'd prefer not to just lop off events from the longer dataset to make the sizes match. If anyone has ideas for other solutions, I would appreciate it!<o:p></o:p></span></p>
<p style="background:white"><span style="font-family:Cambria;color:black">Best,<o:p></o:p></span></p>
<p style="background:white"><span style="font-family:Cambria;color:black">Elizabeth Norton<o:p></o:p></span></p>
<p style="background:white"><span style="font-family:Cambria;color:black">Northwestern University<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><br>
_______________________________________________<br>
Eeglablist page: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__sccn.ucsd.edu_eeglab_eeglabmail.html&d=CwMFaQ&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=UmQyKtfwPbE90DmIj4MAEHaOnyafNSt_ygutyHV5KhE&m=uZvkS15DoF2Q5HRIooz4xV5Y1bGEBfQ6GChylgWaU1M&s=aASmwswiWiNlAsUY6b3OmBXzw_R_lZcFYunhT2DwGiI&e=" target="_blank">
http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">
eeglablist-unsubscribe@sccn.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.edu</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>