[Eeglablist] How to segment this continuous data into a regular time windows?

Tarik S Bel-Bahar tarikbelbahar at gmail.com
Mon Dec 16 15:10:27 PST 2013


Hi Eduardo,

Just a quick note, hopefully this helps a little. James, let us know if I'm
missing something here.
After you add in your new events, make sure that the file is properly saved.
try closing eeglab and then reopening it and the file in question with new
events.
If you see the new events in there that you generated, then they should
continue to exist after any epoching procedures, including the use of
regepoch.
Also, it's not clear whether you previously "selected bad segments" or
"added events"
or both. Usually, just selecting periods of continuous data for deletion
does not add events.
Finally, I believe that the regepochs function works on continuous data.
I recommend you cut into those epochs first using regepochs, and then do
your manual
or automatic cleaning procedures.
Many users choose to cut their data into meaningful segments based on a
specific trial event,
but your data situation may be different, where you may be focusing
on examining data that is not event-dependent or trial-based.

Cheers!













On Mon, Dec 16, 2013 at 8:03 AM, Eduardo Schenberg <edueeg at gmail.com> wrote:

> Hello James,
>
> Thank you very much for that. I have a very similar question as Taewon and
> this seems to work nice.
>
> However, this code you sent using eeg_regepochs seems to discard previous
> events created in my EEGLab dataset when I manually selected bad segments
> of my continuous dataset for deletion (using the standard EEGLab GUI to
> plot, mark segments and delete). But it is important for me to still know
> where these events are before, for example, doing FFT on the segmented data
>
> Do you know how to segment data in EEGLab keeping previous events on the
> dataset?
>
> many thanks
>
> eduardo
>
>
> Em 26/11/2013, às 02:08, James Desjardins escreveu:
>
> Hi Chung,
>
> There is no menu item for dividing the data into regular intervals yet,
> but the eeg_regepochs should do what you want from the command line.
>
> The following should come pretty close to producing what you described:
>
> EEG=eeg_regepochs(EEG,'recurrence',2,'limits',[-2 0]);
> EEG=eeg_checkset(EEG);
> eeglab redraw
>
> James Desjardins, MA
> Electrophysiology Technologist
> Cognitive and Affective Neuroscience Lab, Psychology Department
> Jack and Nora Walker Centre for Lifespan Development Research
> Brock University
> 500 Glenridge Ave.
> St. Catharines, ON, Canada L2S 3A1
> 905-688-5550 x4676
> --
> "'Cause you never can tell What goes on down below!
> "This pool might be bigger Than you or I know!"
>
> McElligot's Pool
> Dr.Seuss 1947
> ------------------------------
> *From:* eeglablist-bounces at sccn.ucsd.edu [eeglablist-bounces at sccn.ucsd.edu]
> on behalf of Taewon Chung 정태원 [tchung215 at gmail.com]
> *Sent:* November-22-13 3:44 AM
> *To:* eeglablist at sccn.ucsd.edu
> *Cc:* 백연지
> *Subject:* [Eeglablist] How to segment this continuous data into a
> regular time windows?
>
> Dear all,
>
> I have obtained single continuous EEG data,
> and I want to know how to segment this continuous data into a regular time
> windows from the recording starting point (e.g. 0 ~ 2 sec, 2~ 4, 4 ~ 6,
> ...) regardless of event markers.
> Is there any applicable menu in EEGLAB or function that I can use in the
> command line?
> If there is, please let me know how to go about writing an appropriate
> script.
>
> Thanks a lot in advance!
>
> Taewon Chung
> _______________________________________________
> 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
>
>
>
> _______________________________________________
> 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/20131216/defc96be/attachment.html>


More information about the eeglablist mailing list