<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"><div class="markdown-here-wrapper" style=""><p style="margin:0px 0px 1.2em!important">Hi Alex,</p>
<p style="margin:0px 0px 1.2em!important">I don’t think it’s possible in MNE. The reason is that the data that has been dropped is not there any more.</p>
<p style="margin:0px 0px 1.2em!important">However, there is a workaround that you could try using autoreject. Here’s a code snippet to get you started:</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code class="hljs language-py" style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline;white-space:pre;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important;display:block;overflow-x:auto;padding:0.5em;color:rgb(51,51,51);background:rgb(248,248,248) none repeat scroll 0% 0%"><span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">import</span> numpy <span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">as</span> np
<span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">from</span> autoreject <span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">import</span> RejectLog
epochs_orig = epochs.copy()

<span class="hljs-comment" style="color:rgb(153,153,136);font-style:italic"># now interactively mark the bad epochs</span>
epochs.plot()

bad_idxs = [idx <span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">for</span> idx, drop <span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">in</span> enumerate(epochs.drop_log) <span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">if</span>
            drop == [<span class="hljs-string" style="color:rgb(221,17,68)">&#39;USER&#39;</span>]]

n_channels = <a href="http://epochs_orig.info">epochs_orig.info</a>[<span class="hljs-string" style="color:rgb(221,17,68)">&#39;nchan&#39;</span>]
n_epochs = len(epochs_orig)

bad_epochs = np.zeros((n_epochs,))
labels = np.zeros((n_epochs, n_channels))

bad_epochs[bad_idxs] = <span class="hljs-number" style="color:rgb(0,128,128)">1</span>

reject = RejectLog(bad_epochs=bad_epochs, labels=labels,
                   ch_names=<a href="http://epochs.info">epochs.info</a>[<span class="hljs-string" style="color:rgb(221,17,68)">&#39;ch_names&#39;</span>])
reject.plot_epochs(epochs_orig)
</code></pre>
<p style="margin:0px 0px 1.2em!important">Best,<br>Mainak</p>
<p style="margin:0px 0px 1.2em!important">On Mon, Mar 4, 2019 at 1:47 PM Rockhill, Alexander P. <a href="http://mailto:AROCKHILL@mgh.harvard.edu">AROCKHILL@mgh.harvard.edu</a> wrote:</p>
<p style="margin:0px 0px 1.2em!important"></p><div class="markdown-here-exclude"><p></p><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div style="font-family:Tahoma,Geneva,sans-serif;font-size:10pt;color:rgb(0,0,0)">
Hi all,</div>
<div style="font-family:Tahoma,Geneva,sans-serif;font-size:10pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Tahoma,Geneva,sans-serif;font-size:10pt;color:rgb(0,0,0)">
   I couldn&#39;t find a way to plot epochs with the epochs in the drop log plotted in red instead of not plotted at all. If anyone had any advice in regards to how to do that I would appreciate it.</div>
<div style="font-family:Tahoma,Geneva,sans-serif;font-size:10pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Tahoma,Geneva,sans-serif;font-size:10pt;color:rgb(0,0,0)">
Thanks,</div>
<div style="font-family:Tahoma,Geneva,sans-serif;font-size:10pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Tahoma,Geneva,sans-serif;font-size:10pt;color:rgb(0,0,0)">
Alex<br>
</div>
<div style="font-family:Tahoma,Geneva,sans-serif;font-size:10pt;color:rgb(0,0,0)">
<br>
</div>
<div id="gmail-m_468364784155076527signature">
<div style="font-family:Tahoma;font-size:13px">
<div class="gmail-m_468364784155076527BodyFragment"><font size="2"><span style="font-size:10pt">
<div class="gmail-m_468364784155076527PlainText">Translational NeuroEngineering Laboratory<br>
Division of Neurotherapeutics, Department of Psychiatry<br>
Massachusetts General Hospital, Martinos Center<br>
149 13th St Charlestown #2301, Boston, MA 02129</div>
</span></font></div>
</div>
</div>
</div>

_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a></blockquote><p></p></div><p style="margin:0px 0px 1.2em!important"></p>
<div title="MDH:PGRpdiBkaXI9Imx0ciI+PGRpdj5IaSBBbGV4LDwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+SSBk
b24ndCB0aGluayBpdCdzIHBvc3NpYmxlIGluIE1ORS4gVGhlIHJlYXNvbiBpcyB0aGF0IHRoZSBk
YXRhIHRoYXQgaGFzIGJlZW4gZHJvcHBlZCBpcyBub3QgdGhlcmUgYW55IG1vcmUuPC9kaXY+PGRp
dj48YnI+PC9kaXY+PGRpdj5Ib3dldmVyLCB0aGVyZSBpcyBhIHdvcmthcm91bmQgdGhhdCB5b3Ug
Y291bGQgdHJ5IHVzaW5nIGF1dG9yZWplY3QuIEhlcmUncyBhIGNvZGUgc25pcHBldCB0byBnZXQg
eW91IHN0YXJ0ZWQ6PC9kaXY+PGRpdj48YnI+PC9kaXY+PGRpdj5gYGBweTxicj48L2Rpdj48ZGl2
PmltcG9ydCBudW1weSBhcyBucDxicj5mcm9tIG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