<div dir="ltr"><div class="gmail_default" style="color:#333399">Hello Jodie, yes do that before you set up the study. I would recommend finding the trial numbers that you want to remove, per individual file, and then remove those trials, and then setup a study. You can practice doing so from the gui, by selecting some trials, removing them, and then typing eegh for the command history. See past eeglab list posts about dropping or finding particular trials. I would make a simple loop that goes through each trial, and if it is an incorrect trial, I would make a new variable that contains the list of all incorrect trials to be dropped. Then use that new variable with all the trial numbers when you drop epochs.</div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399">Another alternative is to make at least two files for each participant, all incorrect trials, and all correct trials, and then feeding one or both of those conditions to STUDY.</div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div><div class="gmail_default" style="color:#333399"><br></div></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>