<div dir="ltr"><div><div><div>Hi Claire,<br><br></div>Jaakko&#39;s solution is a possibility (e.g. this is what I used here             <a href="http://dx.doi.org/10.1016/j.neuron.2016.10.051">http://dx.doi.org/10.1016/j.neuron.2016.10.051</a>), but this isn&#39;t optimal because the signal would be rectified at the sensor level. <br><br>You&#39;d ideally need to work with covariance matrices based on signals filtered at particular frequencies. I&#39;m hoping to have the time to add a tutorial and a set a functions in the next couple of weeks.<br><br></div>Best,<br><br></div>Jean-Rémi<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 3 March 2017 at 03:41, Jaakko Leppakangas <span dir="ltr">&lt;<a href="mailto:jaeilepp@gmail.com" target="_blank">jaeilepp@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Claire,<span class=""><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-size:12.8px">tfr_cond_n = tfr_morlet(epochs[cond_n],</span><span style="font-size:12.8px">freq<wbr>s=freqs, n_cycles=n_cycles, use_fft= True, return_itc= False, decim=decim, average= False)</span></blockquote><div><br></div></span><div>This is the way I would do it. The events information is not stored to the EpochsTFR.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-Jaakko</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 2, 2017 at 9:44 PM, Claire Braboszcz <span dir="ltr">&lt;<a href="mailto:claire@guakamole.org" target="_blank">claire@guakamole.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I want to create single trials time-frequency epochs to later perform time-frequency decoding.<br>
I am wondering what is the correct way for creating my epochs.  I have EEG data with 4 types of events.<br>
I have been using this code :<br>
<br>
tfr = tfr_morlet(epochs,freqs=freqs, n_cycles=n_cycles, use_fft= True, return_itc= False, decim=decim, average= False)<br>
<br>
But as far as I understood the EpochsTfr object that is returned by tfr_morlet() does not contain information about the  events, is it right?<br>
<br>
Is it better then to create an EpochsTfr object for each of my 4 conditions  using :<br>
<br>
tfr_cond_n = tfr_morlet(epochs[cond_n],freq<wbr>s=freqs, n_cycles=n_cycles, use_fft= True, return_itc= False, decim=decim, average= False)<br>
<br>
and then create vectors coding for each trials in each condition - or is there a way to transfer the events information from the original epoch data to the time-frequency data?<br>
<br>
I then want to use:<br>
<br>
gat.fit(tfr_epochs, y=tfr_epochs_events)<br>
<br>
<br>
<br>
Thanks,<br>
Claire<br>
<br>
______________________________<wbr>_________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.e<wbr>du</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.e<wbr>du/mailman/listinfo/mne_analys<wbr>is</a><br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/compli<wbr>anceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br>
</blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.<wbr>edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.<wbr>edu/mailman/listinfo/mne_<wbr>analysis</a><br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/<wbr>complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br></blockquote></div><br></div>