[Mne_analysis] mne.Epochs: response events disappear when locking on stimulus events

Alexandre Gramfort alexandre.gramfort at inria.fr
Mon Jun 1 03:37:53 EDT 2020
Search archives:

        External Email - Use Caution        

Dear Mat,

to keep the stim channel in the Epochs you need to pass the picks
parameter making sure it contains the stim channel in the list.

To repochs it's no so easy right now. You would need to start
from raw again. Or you can make it work using EpochsArraw
dealing with numpy directly.

Given how many times this question as been asked I feel we need
an example on the MNE website for this usecase. We would
need first a good public dataset to demo this.


On Sun, May 31, 2020 at 10:23 PM <mathieu.servant at univ-fcomte.fr> wrote:

>         External Email - Use Caution
> Hi Community,
> I would like to segment my EEG data into epochs of -300 to 1900 ms
> relative to stimulus onset, and keep response triggers in these epochs.
> I then computed:
> epochs = mne.Epochs(raw_EEG_av_ref_filt, raw_events, events_stim,
> tmin=-0.3, tmax=1.9,
>                     baseline=(-.3, 0), preload=True)
> However, the epoched data only contain stimulus events (events_stim), and
> response events have been dropped. Is there a way to keep response events?
> In addition, is it possible to epoch again my 'epochs' object (say I want
> to lock the signal -100 to +100 ms relative to the response)?
> Best,
> Mat
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200601/7c699c4d/attachment.html 

More information about the Mne_analysis mailing list