<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style id="owaParaStyle">P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body fPStyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>
<p>Hello MNE list,</p>
<p>&nbsp;</p>
<p>I am a relative beginner to MNE-Python and also to programming in general, so <br>
I apologise in advance if I have phrased my question ambiguously or incorrectly. </p>
<p>&nbsp;</p>
<p>My enquiry is in relation to running ICA with MNE-Python 0.9.0 in the removal of EOG artefacts. Essentially,<br>
the find_bads_eog attribute seems to be ignoring my EOG channel ('BIO001') which was acquired on a Neuromag<br>
306 system. I have tried running the script on other individual raw data files only to encounter the same issue.<br>
Please find below the code I was running and its resulting traceback error message:</p>
<p>&nbsp;</p>
<p>ica = ICA(n_components=0.95, method='fastica').fit(raw, decim=3, reject=reject)</p>
<p>&nbsp;</p>
<p>eog_epochs = create_eog_epochs(raw, tmin=-.5, tmax=.5 ,ch_name='BIO001', picks=picks)<br>
eog_inds, eog_scores = ica.find_bads_eog(eog_epochs, ch_name='BIO001')<br>
---------------------------------------------------------------------------<br>
ValueError&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Traceback (most recent call last)<br>
&lt;ipython-input-18-ca3c097c7353&gt; in &lt;module&gt;()<br>
----&gt; 1 eog_inds, eog_scores = ica.find_bads_eog(eog_epochs, ch_name='BIO001')</p>
<p>ValueError: ['BIO001'] not in channel list</p>
<p><br>
Following this, I then tried running the same line of code, only without specifying the ch_name argument like so:</p>
<p>&nbsp;</p>
<p>eog_inds, eog_scores = ica.find_bads_eog(eog_epochs)<br>
---------------------------------------------------------------------------<br>
RuntimeError&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Traceback (most recent call last)<br>
&lt;ipython-input-19-2e668d6c09d6&gt; in &lt;module&gt;()<br>
----&gt; 1 eog_inds, eog_scores = ica.find_bads_eog(eog_epochs)</p>
<p>&nbsp;</p>
<p>RuntimeError: EEG 61 or EEG 62 channel not found !!</p>
<p>&nbsp;</p>
<p>I am very confused about what is happening here because I didn't do EEG recordings -- only MEG. As for the issue<br>
with find_bads_eog, I am completely certain that all my raw data files contain an EOG channel('BIO001'). I would be very grateful for any suggestions on how to work around this problem, or how I might go about using BIO001 to remove EOG artefacts in MNE-Python
 0.9.0. </p>
<p>&nbsp;</p>
<p>Thank you for making this thoroughly comprehensive MEEG imaging/analysis software. It’s totally my favorite.
</p>
<p>&nbsp;</p>
<p>Nikki&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp; <br>
<span style="FONT-FAMILY: Arial">______________________________________________________<br>
<font style="COLOR: rgb(128,128,128)"><span style="FONT-SIZE: small" class="Apple-style-span">Nicola Jastrzebski
<br>
<br>
PhD candidate<br>
Brain and Psychological Sciences Research Centre (BPsyC)<br>
<br>
Swinburne University of Technology - Hawthorn campus</span> </font><span style="FONT-SIZE: small" class="Apple-style-span"><br>
______________________________________________________</span><br>
</span></p>
</div>
</div>
</body>
</html>