[Eeglablist] Create datasets containing all the epochs of a condition/label

Brittany Alperin balperin07 at gmail.com
Mon Nov 9 12:11:17 PST 2015

Hi Adrien

You can select specific bins in your dataset and delete the rest. This is a
kind of roundabout way, and there might be something more streamlined
available, but in the past I've loaded the dataset with all of the bins,
selected the bin that I wanted to isolate (e.g., bin 1) and deleted
everything else. Then I reload the original dataset, select the next bin
(e.g., bin 2) and delete everything else. In the end you would have 6
datasets for each subject (the orgininal and one for each bin) which I
believe is what you want.

 To do thisI use pop_selectevent (in the GUI, edit>select epochs or events)
and select the events you want to keep. If you type EEG.history after doing
it once, you'll get the code for what you just did. You can use this to
write a script and you can set up a loop to load the original dataset,
select certain events, save the file, reload the orginal dataset and repeat.

Hope this is helpful,

On Fri, Nov 6, 2015 at 11:08 AM, Adrien Martel <amartel at tcd.ie> wrote:

> In my experiment there are 5 conditions and I created epochs for each so
> that I have now 30 datasets for the 30 subjects with a different amount of
> epochs with labels (1-5 for the conditions) (bin-based epoching with
> I’m trying to get all the epochs belonging to 1 of the 5 conditions into 1
> dataset so that the result is 5 datasets containing only epochs for each
> condition (without averaging because I would like to run a time-frequency
> analysis on each trial before averaging for each condition).
> It’s quite simple I hope I haven’t made it confusing with my explanation.
> If I’m not mistaken it's not possible to obtain this by creating a study.
> I would be very grateful for any help how to do this.
> Best,
> Adrien
> _______________________________________________
> 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...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20151109/00228591/attachment.html>

More information about the eeglablist mailing list