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

mathieu.servant at univ-fcomte.fr mathieu.servant at univ-fcomte.fr
Mon Jun 1 05:06:27 EDT 2020
Search archives:

        External Email - Use Caution        

Hi Alex, 
Thanks for the help. I tried passing the stim channel using: 
epochs = mne.Epochs(raw_EEG_av_ref_filt, raw_events, event_stim_dict, tmin=-0.2, tmax=1.8, 
baseline=(-.2, 0), preload=True, picks = ['eeg','eog','stim']) 
However, epochs.events still only contains locking events (removing response triggers) 
Am I doing something wrong? 

De: "Alexandre Gramfort" <alexandre.gramfort at inria.fr> 
À: "mne analysis" <mne_analysis at nmr.mgh.harvard.edu> 
Envoyé: Lundi 1 Juin 2020 09:37:53 
Objet: Re: [Mne_analysis] mne.Epochs: response events disappear when locking on stimulus events 

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 < [ mailto:mathieu.servant at univ-fcomte.fr | 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)? 

Mne_analysis mailing list 
[ mailto:Mne_analysis at nmr.mgh.harvard.edu | Mne_analysis at nmr.mgh.harvard.edu ] 
[ https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis | https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis ] 

Mne_analysis mailing list 
Mne_analysis at nmr.mgh.harvard.edu 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200601/2b21270c/attachment-0001.html 

More information about the Mne_analysis mailing list