<div dir="ltr"><div><div><div>Hi Jodie,<br><br></div>I haven't done this with a study structure, but I have run a script in a loop for individual files. I used pop_selectevent (in the GUI, edit>select epochs or events) and deleted the events I didn't want. Mine were specific bins, so it was fairly simple. I'm not exactly sure what types of events you want to remove, but if it's systematic in any way, this should work.<br><br></div>Hope that's helpful,<br></div>Brittany <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 27, 2015 at 5:33 AM, Jodie Feil <span dir="ltr"><<a href="mailto:Jodie.Feil@weizmann.ac.il" target="_blank">Jodie.Feil@weizmann.ac.il</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Dear All,
<div><br>
</div>
<div>I was wondering if there is a way/script to remove unwanted epochs once the data has been cleaned and is stored within a STUDY design. Whereby, t<span style="font-size:10pt">he list of the epochs/latencies which I would like to remove are categorised
according to the raw data (pre-cleaned) and I would like to remove these specific epochs/latencies from the cleaned data (where a number of other epochs may have been removed manually during cleaning). </span></div>
<div><br>
</div>
<div>For example, I have EEG data which includes the cortical response of both correct and incorrect performance on a behavioural task. I would now like to remove the epochs corresponding to the incorrect trials. I have a list of the epochs/latency of the incorrect
trials (however, this is indexed according to the raw data) and I was wondering where, following cleaning, the original epochs/latencies would be stored within the STUDY design. I thought perhaps this could be done through EEG.epoch within the STUDY structure.
However, I am not sure how to write the script to remove the unwanted epochs without causing problems to the STUDY structure. </div>
<div><br>
</div>
<div>If it is too difficult within the STUDY structure, is there a way to script this easily for extraction from individual files?</div>
<div><br>
</div>
<div>Thank you for your time.</div>
<div><br>
</div>
<div>Kind regards,<br>
Jodie</div>
<div>
<div><br>
<div style="font-family:Tahoma;font-size:13px">
<p class="MsoNormal" style="margin-bottom:0.0001pt;background-color:white"><font size="2"><span style="font-family:'Times New Roman',serif;color:rgb(34,34,34)">---------------------</span><span style="font-family:Arial,sans-serif;color:rgb(34,34,34)"></span></font></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;background-color:white"><font size="2"><span style="font-family:'Times New Roman',serif;color:rgb(34,34,34)">Jodie Naim-Feil</span><span style="font-family:Arial,sans-serif;color:rgb(34,34,34)"></span></font></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;background-color:white"><font size="2"><span style="font-family:'Times New Roman',serif;color:rgb(34,34,34)">Post-doctoral Fellow</span><span style="font-family:Arial,sans-serif;color:rgb(34,34,34)"></span></font></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;background-color:white"><font size="2"><span style="font-family:'Times New Roman',serif;color:rgb(34,34,34)">Research group of Prof. Elisha Moses</span><span style="font-family:Arial,sans-serif;color:rgb(34,34,34)"></span></font></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;background-color:white"><font size="2"><span style="font-family:'Times New Roman',serif;color:rgb(34,34,34)">Department of Physics of Complex Systems</span><span style="font-family:Arial,sans-serif;color:rgb(34,34,34)"></span></font></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;background-color:white"><font size="2"><span style="font-family:'Times New Roman',serif;color:rgb(34,34,34)">Weizmann Institute of Science</span><span style="font-family:Arial,sans-serif;color:rgb(34,34,34)"></span></font></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;background-color:white"><span style="font-family:'Times New Roman',serif;color:rgb(34,34,34)"><font size="2">76100 Rehovot, Israel</font></span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"></span></p>
</div>
</div>
</div>
</div>
</div>
<br>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" 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><br></blockquote></div><br></div>