[Eeglablist] Removal of epochs (indexed according to raw data) from cleaned data
Tarik S Bel-Bahar
tarikbelbahar at gmail.com
Tue Oct 27 12:50:51 PDT 2015
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.
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.
On Tue, Oct 27, 2015 at 5:33 AM, Jodie Feil <Jodie.Feil at weizmann.ac.il>
> Dear All,
> 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, the
> 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).
> 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.
> If it is too difficult within the STUDY structure, is there a way to
> script this easily for extraction from individual files?
> Thank you for your time.
> Kind regards,
> Jodie Naim-Feil
> Post-doctoral Fellow
> Research group of Prof. Elisha Moses
> Department of Physics of Complex Systems
> Weizmann Institute of Science
> 76100 Rehovot, Israel
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to
> eeglablist-unsubscribe at sccn.ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to
> eeglablist-request at sccn.ucsd.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the eeglablist