<div dir="ltr"><div><div><div><div><div><div>I added add_eeg_ref=False in read_raw_fif and then used raw.set_channel_types.<br></div>It works well and after filtering my ECG channel it&#39;s way nicer.<br></div>It still doesn&#39;t look like a classical ECG and no correlation is found when I do the ICA<br></div>(but it&#39;s ok for EOG).<br></div>I will have to remove components correlated to ECG manually.<br><br></div>Thanks for your help,<br><br></div>Benoît<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-08-04 11:35 GMT+02:00 Alexandre Gramfort <span dir="ltr">&lt;<a href="mailto:alexandre.gramfort@telecom-paristech.fr" target="_blank">alexandre.gramfort@telecom-paristech.fr</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">&gt; Thanks for your answer,<br>
&gt; but actually it returns an error:<br>
&gt; &quot;  File<br>
&gt; &quot;/home/bm243969/anaconda2/lib/<wbr>python2.7/site-packages/mne/<wbr>channels/channels.py&quot;,<br>
&gt; line 196, in _check_set<br>
&gt;     % (ch[&#39;ch_name&#39;], proj[&#39;desc&#39;]))<br>
&gt;<br>
&gt; RuntimeError: Cannot change channel type for channel EEG061 in projector<br>
&gt; &quot;Average EEG reference&quot;<br>
<br>
</span>the EEG average ref proj has already been applied to your data. Use proj=False<br>
somewhere or add_eeg_ref=False in read_raw_fif.<br>
<br>
HTH<br>
Alex<br>
<div class="HOEnZb"><div class="h5">______________________________<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>
</div></div></blockquote></div><br></div>