<div dir="ltr">Dear Eric,<div><br></div><div>First of all, did you apply it on the high-pass filtered data? CleanLine uses EEGLAB's Welch's method for FFT (if I remember correctly) to evaluate the spectrum, so the data needs to be high-pass filtered. See Nima Bigdely-Shamlo's PREP pipeline paper for detail.</div><div><br></div><div>Did you average reference the data? It may help, especially if your data are not re-referenced at all (like Biosemi's data).</div><div><br></div><div>Another thing is that you can expect a small improvement by doing this</div><div><br></div><div> 'SlidingWinLength',4,'SlidingWinStep',4<br></div><div><br></div><div>If these does not work, I recommend you band-pass filter your data 45-55Hz to see stationarity of your 'line noise'-- is it really it??</div><div><br></div><div>Makoto</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 4, 2016 at 2:14 AM, Eric HG <span dir="ltr"><<a href="mailto:erichg2013@gmail.com" target="_blank">erichg2013@gmail.com</a>></span> wrote:<br><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"><div dir="ltr">Hi everybody,<div><br></div><div>I've been trying to apply Cleanline instead of a notch filter but there seems to be a problem with some of the subjects. Cleanline doesn't seem to remove all the line noise (at 50 Hz) (see picture). Before I use cleanline I use the function pop_firwsord to high- and low-pass the EEG. </div><div><br></div><div>I use cleanline with the following settings: </div><div><br></div><div>







<p>[EEG, Sorig, Sclean, f, amps, freqs, g] = pop_cleanline(EEG, <span>'Bandwidth'</span>,2,<span>'ChanCompIndices'</span>,[1:EEG.nbchan], <span>...</span></p>
<p>                          <span>'SignalType'</span>,<span>'Channels'</span>,<span>'ComputeSpectralPower'</span>,true,             <span>...</span></p>
<p>                          <span>'LineFrequencies'</span>,[50] ,<span>'NormalizeSpectrum'</span>,false,           <span>...</span></p>
<p>                          <span>'LineAlpha'</span>,0.01,<span>'PaddingFactor'</span>,2,<span>'PlotFigures'</span>,false,          <span>...</span></p>
<p><span>                          </span>'ScanForLines'<span>,true,</span>'SmoothingFactor'<span>,100,</span>'VerboseOutput'<span>,1,    </span><span>...</span></p>
<p><span>                           </span>'SlidingWinLength'<span>,4,</span>'SlidingWinStep'<span>,2);</span></p></div><div>Does anyone know what might need to be changed to fix this?</div><div><br></div><div>Best,</div><div><br></div><div>Eric</div><div><br></div><div><br></div><div><img src="cid:ii_153411d006c04fd4" alt="Inline image 1" width="454" height="204"><br></div></div>
<br>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div>
</div></div>