<html><body><p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Hi Alex,</div><div>Thanks for the help. I tried passing the stim channel using:</div><div><div>epochs = mne.Epochs(raw_EEG_av_ref_filt, raw_events, event_stim_dict, tmin=-0.2, tmax=1.8,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; baseline=(-.2, 0), preload=True, picks = ['eeg','eog','stim'])</div><div>However,&nbsp; epochs.events still only contains locking events (removing response triggers)</div><div>Am I doing something wrong?</div><div>Mat</div></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>De: </b>"Alexandre Gramfort" &lt;alexandre.gramfort@inria.fr&gt;<br><b>À: </b>"mne analysis" &lt;mne_analysis@nmr.mgh.harvard.edu&gt;<br><b>Envoyé: </b>Lundi 1 Juin 2020 09:37:53<br><b>Objet: </b>Re: [Mne_analysis] mne.Epochs: response events disappear when locking on stimulus events<br></div><div><br></div><div data-marker="__QUOTED_TEXT__"><p><span style="padding:3px 10px;border-radius:5px;color:#ffffff;font-weight:bold;display:inline-block;background-color:#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p><div dir="ltr">Dear Mat,<br><div>to keep the stim channel in the Epochs you need to pass the picks</div><div>parameter making sure it contains the stim channel in the list.</div><br><div>To repochs it's no so easy right now. You would need to start</div><div>from raw again. Or you can make it work using EpochsArraw</div><div>dealing with numpy directly.</div><br><div>Given how many times this question as been asked I feel we need</div><div>an example on the MNE website&nbsp;for this usecase. We would</div><div>need first a good public dataset to demo this.</div><br><div>Alex</div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 31, 2020 at 10:23 PM &lt;<a href="mailto:mathieu.servant@univ-fcomte.fr" target="_blank" rel="nofollow noopener noreferrer">mathieu.servant@univ-fcomte.fr</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb( 204 , 204 , 204 );padding-left:1ex"><div><p><span style="padding:3px 10px;border-radius:5px;color:rgb( 255 , 255 , 255 );font-weight:bold;display:inline-block;background-color:rgb( 255 , 0 , 0 )">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p><div style="font-family:'arial' , 'helvetica' , sans-serif;font-size:12pt;color:rgb( 0 , 0 , 0 )"><div>Hi Community,&nbsp;</div><div>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.</div><div>I then computed:</div><div>epochs&nbsp;= mne.Epochs(raw_EEG_av_ref_filt, raw_events, events_stim, tmin=-0.3, tmax=1.9,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; baseline=(-.3, 0), preload=True)</div><div>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)?&nbsp;</div><div>Best,</div><div>Mat</div><br></div></div>_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank" rel="nofollow noopener noreferrer">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer nofollow noopener noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a></blockquote></div>
<br>_______________________________________________<br>Mne_analysis mailing list<br>Mne_analysis@nmr.mgh.harvard.edu<br>https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis<br></div></div></body></html>