[Mne_analysis] events lost in epoching ?

Denis-Alexander Engemann denis.engemann at gmail.com
Wed Jan 6 08:35:28 EST 2016
Search archives:

Disclaimer: I'm not arguing against annotations, I'm trying to share some
practices that were good enough for me over the last years, in the hope
that you can find a solution before we eventually have proper annotations.


On Wed, Jan 6, 2016 at 2:28 PM, Boris BURLE <boris.burle at univ-amu.fr> wrote:

> On 06/01/2016 14:16, Denis A. Engemann wrote:
> > Note. You can compute all latencies solely based on the events array
> using the differences between the values in the first column, after
> transforming to time via sampling frequency.
> > Then there is 'epoch.selection' which gives you the indices of the
> epochs selected with respect to the original epochs. So you can easily map
> your eeg trials to external information. I am on my phone now, so I cannot
> give you a nice example unfortunately.
> >
>
> Sure, but that less convenient, and somehow more fragile: if I drop an
> epoch, and forget to delete the corresponding RT in the list, there is
> mismatch. This cannot append if I extract the RT directly from the epoch.
>
>
This actually not the case. Look at .selection, it will be insensitive to
what you drop, it gives you just the position in the array from where the
epoch was initially taken, if you re-order epochs, you can also re-order
.selection.



> Beside computing RT, there are many other occasion where one needs to
> sort trials based on the presence of other events in the epoch.
>
>

you can also do this in a few lines of code based on the initial events
array.
Or am I missing something?


        Thanks anyway for your help,
>                 B.
>
> _______________________________________________
> 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/20160106/cf832e82/attachment.html 


More information about the Mne_analysis mailing list