[Eeglablist] re-concatenating epoched dataset

Stephen Politzer-Ahles politzerahless at gmail.com
Thu Jan 31 12:34:36 PST 2013


pop_mergeset() should do what you're looking for, if I remember correctly.
I've never used it on more than two datasets at once, but in my experience
it preserved the order of things in those two (i.e., the second dataset got
put after the first).

On Thu, Jan 31, 2013 at 12:57 AM, Chadwick Boulay <boulay at bme.bio.keio.ac.jp
> wrote:

> It turns out that Pete's epochs are stored in segregated datasets
> according to epoch condition (not block design).  Is there anyway to
> merge multiple datasets into a single dataset with the data, epochs, and
> events in their original order? This would need to be done before Arno's
> suggestion.
>
> I guess the necessary information is in each set's urevent structure so
> this can be accomplished with some custom code, but maybe such a
> function already exists.
>
> Pete, there may yet be a way.
>
> On 1/31/2013 3:21 PM, Arnaud Delorme wrote:
> > Dear Pete,
> >
> > you can use the function EEG = eeg_epoch2continuous(EEG);
> > That will do the trick. Note that boundary events will be inserted
> between your data epochs so you will not be able to extract new epochs that
> overlap between your old epochs. To do so you will have to remove boundary
> events.
> >
> > indBound = strncmp('boundary', { EEG.type }, 10);
> > EEG.event(indBound) = [];
> >
> > Best,
> >
> > Arno
> >
> > On 29 Jan 2013, at 13:28, Makoto Miyakoshi wrote:
> >
> >> Dear Bernhardsson,
> >>
> >> I sent it to you in another email.
> >>
> >> Makoto
> >>
> >> 2013/1/29 Bernhardsson Jens <Jens.Bernhardsson at miun.se>:
> >>> Dear Makoto
> >>>
> >>> It would be great if you could share your code. I am in the midst of
> moving rejection marked epochs from one dataset to another. The code I have
> done for this makes it very easy for mistakes, and it would be good to have
> a look at/use yours.
> >>>
> >>> Best
> >>> Jens
> >>>
> >>> -----Ursprungligt meddelande-----
> >>> Från: eeglablist-bounces at sccn.ucsd.edu [mailto:
> eeglablist-bounces at sccn.ucsd.edu] För Makoto Miyakoshi
> >>> Skickat: den 28 januari 2013 17:44
> >>> Till: Pete Manza
> >>> Kopia: eeglablist at sccn.ucsd.edu
> >>> Ämne: Re: [Eeglablist] re-concatenating epoched dataset
> >>>
> >>> Dear Pete,
> >>>
> >>> I've been trying to find the best work around to do that, but haven't
> found it yet. What I did for the last time was that when epoching the data
> I epoched short (0 to 1000 ms) and long (-1000 to 2000), perform ICA and
> epoch rejection on the short-epoched data, copy the results to the
> long-epoched data, and create STUDY using the long-epoched one.
> >>> This is purposed to obtain good low-frequency resolution in ERSP/ITC
> as you mentioned (in this case, epochs could be overlapped).
> >>>
> >>> You can copy ICA matrices via GUI, but you can't do so epoch and event
> information. You have to write your own code. I'd happy to share my code if
> you understand that it comes with no guarantee or support.
> >>>
> >>> Makoto
> >>>
> >>> 2013/1/25 Pete Manza <pete.manza at gmail.com>:
> >>>> Hi all,
> >>>>
> >>>> I have fully processed .set files for a STUDY design that were epoched
> >>>> around my stimulus -- but unfortunately, for ERSP calculation, the
> >>>> epochs do not start early enough behind the stimulus (only -300ms, I'd
> >>>> like to go back to -800ms or so).  I did not exclude any of the
> >>>> continuous data in my original epoching procedure (i.e., my trials
> >>>> were 7300ms long including the ITI, and I epoched from -300 to
> 7000ms).
> >>>>
> >>>> Is there a way to re-concatenate all of the trials of epoched data
> >>>> into continuous data so I can re-epoch?
> >>>>
> >>>> Or better yet, is there a way to chop off the last 500ms of each epoch
> >>>> and directly append them to the beginning of the following trial?
> >>>> Either of these would be a much better option than going back and
> >>>> re-doing most of my preprocessing :)
> >>>>
> >>>> I am not very experienced in matlab, so if anyone is willing to share
> >>>> some code I'd greatly appreciate it.
> >>>>
> >>>> Thanks!
> >>>> Pete Manza
> >>>> Stony Brook University
> >>>> Integrative Neuroscience
> >>>>
> >>>> _______________________________________________
> >>>> 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
> >>>
> >>>
> >>> --
> >>> Makoto Miyakoshi
> >>> JSPS Postdoctral Fellow for Research Abroad Swartz Center for
> Computational Neuroscience Institute for Neural Computation, University of
> California San Diego _______________________________________________
> >>> 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
> >>
> >>
> >> --
> >> Makoto Miyakoshi
> >> JSPS Postdoctral Fellow for Research Abroad
> >> Swartz Center for Computational Neuroscience
> >> Institute for Neural Computation, University of California San Diego
> >>
> >> _______________________________________________
> >> 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
>
> _______________________________________________
> 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
>



-- 
Stephen Politzer-Ahles
University of Kansas
Linguistics Department
http://people.ku.edu/~sjpa/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20130131/ec83f92f/attachment.html>


More information about the eeglablist mailing list