[Mne_analysis] concatenate_epochs and subset of them

Alexandre Gramfort alexandre.gramfort at telecom-paristech.fr
Thu Dec 15 15:24:54 EST 2016
Search archives:

for a given epochs instance you have access to epochs.events and
epochs.selection attributes.
that should allow you to track what epoch correspond to what.

HTH
Alex

On Thu, Dec 15, 2016 at 8:35 PM, Richard Höchenberger <
richard.hoechenberger at gmail.com> wrote:

> Hi all,
>
> On Thu, Dec 15, 2016 at 2:03 PM, Lorenzo Alfine
> <lorenzo.alfine at gmail.com> wrote:
> > Then I´m epoching every raw object using the same event_id = [A, B, C,
> D].
> >
> > Later I concatenate the 3 epochs objects with:
> > epochs_merged = mne.concatenate_epochs([epochs1, epochs2, epochs3])
> [...]
> > Later I´m doing some processing on epochs_merged (AutoReject, ICA). Is it
> > possible to access a subset of epochs_merged, for example just the epochs
> > with the event A, and average them?
> > Otherwise I have to re-run the analysis on a newly created epochs object
> > with event_id = A, but I would prefer to avoid this, since from my
> > understanding ICA performs better with more data.
>
> I would be interested in an easy solution for this issue, too. Of
> course one could extract these subsets of data manually, but is there
> maybe an easier way I have simply overlooked so far?
>
> Thanks,
>
>     Richard
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> The information in this e-mail is intended only for the person to whom it
> is
> addressed. If you believe this e-mail was sent to you in error and the
> e-mail
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20161215/b15cd6a6/attachment.html 


More information about the Mne_analysis mailing list