<div dir="ltr"><div class="gmail_default" style="color:rgb(51,51,153)">Hello Eric, quick notes below for you regarding extracting n-1 components. This may already be specified in makoto's recommendations page.</div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)">The flag/option within pop_runica and runica functions is simply 'pca', 'your N-1' number.<br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)">See the details on  options for the functions pop_runica and runica, available by clicking help I believe in the eeglab gui.</div><div class="gmail_default" style="color:rgb(51,51,153)">The info on these functions is also available via googling or via help/doc in matlab command line, as for all other matlab functions (usually).</div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)">Note you can also drop a channel first and then let ica run without pca (which for some reason tends to work better for me).</div><div class="gmail_default" style="color:rgb(51,51,153)">You may enter the pca option and other options in the window for extra commands in the pop_runica GUI. Alternatively,</div><div class="gmail_default" style="color:rgb(51,51,153)">if you haven't before, you can run ICA once, then use the eegh command to get the command line version, and then add the pca option.</div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 25, 2016 at 10:50 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks a lot for the responses! <div><br></div><div>How would you go about extracting N-1 components? I can't see it under pop_runica. </div><div><br></div><div>Best,</div><div><br></div><div>Eric</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 10, 2016 at 8:49 AM, Iman Mohammad-Rezazadeh <span dir="ltr"><<a href="mailto:irezazadeh@ucdavis.edu" target="_blank">irezazadeh@ucdavis.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_6014963115463520678m_3359925167845382507WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">You may want to see
<a href="https://sccn.ucsd.edu/pipermail/eeglablist/2014/007810.html" target="_blank">https://sccn.ucsd.edu/pipermai<wbr>l/eeglablist/2014/007810.html</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">-Iman<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">------------------------------<wbr>------------------------------<wbr>-<u></u><u></u></span></b></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Iman M.Rezazadeh, Ph.D<u></u><u></u></span></b></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Semel Intitute, UCLA , Los Angeles<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">& Center for Mind and Brain, UC DAVIS, Davis<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><a name="m_6014963115463520678_m_3359925167845382507__MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></a></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <a href="mailto:eeglablist-bounces@sccn.ucsd.edu" target="_blank">eeglablist-bounces@sccn.ucsd.e<wbr>du</a> [mailto:<a href="mailto:eeglablist-bounces@sccn.ucsd.edu" target="_blank">eeglablist-bounces@scc<wbr>n.ucsd.edu</a>]
<b>On Behalf Of </b>Ahmad, Jumana<br>
<b>Sent:</b> Friday, December 9, 2016 10:02 AM<br>
<b>To:</b> Eric HG <<a href="mailto:erichg2013@gmail.com" target="_blank">erichg2013@gmail.com</a>>; eeglablist <<a href="mailto:eeglablist@sccn.ucsd.edu" target="_blank">eeglablist@sccn.ucsd.edu</a>><br>
<b>Subject:</b> Re: [Eeglablist] Artifacts after removal of ICA component<u></u><u></u></span></p>
</div>
</div><div><div class="m_6014963115463520678h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi Eric,<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:6.0pt;margin-left:0in;line-height:18.0pt;background:white">
<span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Did you reduce the rank of your data by 1 before running ICA? I would do Matlab rank(EEG.data(:,:)) and check it is not 1 less than the number of your channels in ICA.
 If it is the same and you are not rank deficient. If you are then you can perform channel rejection to match EEG.nbchan with rank(EEG.data(:,:)).<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:6.0pt;margin-left:0in;line-height:18.0pt;background:white">
<span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Average referencing reduces the rank of the data by 1. When you rereference to average,  the sum of all your channels is 0 at each time point.  One channel is therefore
 a linear combination of the others, which implies statistical dependence, therefore the dimensionality of your data is reduced  by one after averaging. I always average reference after ICA.
<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:6.0pt;margin-left:0in;line-height:18.0pt;background:white">
<span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Average referencing before means you can only extract N-1 independent components after this.  This is fine as long as you remember to extract 1 component less than you
 would have before average reference.<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:6.0pt;margin-left:0in;line-height:18.0pt;background:white">
<span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Best wishes,<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:6.0pt;margin-left:0in;line-height:18.0pt;background:white">
<span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Jumana
</span><span lang="EN-GB" style="font-size:9.5pt;font-family:"Arial",sans-serif;color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
<a href="mailto:eeglablist-bounces@sccn.ucsd.edu" target="_blank">eeglablist-bounces@sccn.ucsd.e<wbr>du</a> [<a href="mailto:eeglablist-bounces@sccn.ucsd.edu" target="_blank">mailto:eeglablist-bounces@scc<wbr>n.ucsd.edu</a>]
<b>On Behalf Of </b>Eric HG<br>
<b>Sent:</b> 08 December 2016 00:39<br>
<b>To:</b> eeglablist <<a href="mailto:eeglablist@sccn.ucsd.edu" target="_blank">eeglablist@sccn.ucsd.edu</a>><br>
<b>Subject:</b> [Eeglablist] Artifacts after removal of ICA component<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:9.5pt">Hi everybody,</span><span lang="EN-GB"><u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:9.5pt"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:9.5pt">I've had some trouble with removal of components using ICA (I'm currently using ICA infomax). After I remove a component there seems to be induced high frequency noise in the dataset. <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:9.5pt"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:9.5pt">The data is referenced to average before applying ICA. <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:9.5pt"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:9.5pt">Does anyone know why that is happening? <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:9.5pt"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:9.5pt">Best,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:9.5pt"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:9.5pt">Eric<u></u><u></u></span></p>
</div>
</div>
</div></div></div>
</div>

</blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/<wbr>eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.<wbr>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.<wbr>edu</a><br></blockquote></div><br></div>