<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Berry,<div><br></div><div>do you have to remove line 272 as well. This one seems important. Would you mind to test without removing Line 272 and let us know. This part of the code was added by Romain (copied) but I do not know the purpose of it.</div><div>Thanks,</div><div><br></div><div>Arno</div><div><br><div><div>On 20 Feb 2013, at 10:19, berry van den berg wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Dear all, </span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">I did some debugging based on Stefan's advice and it seems indeed that the channel indexes gets messed up. The channel location structure going into the eeg_interp is not ascending with respect to urchan index/ locs file.</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); position: static; z-index: auto; ">
I think the error lies in the CORRMAP.m function and probably around here: I dont really understand the purpose of line 251 through 272 but I assume to fix inconsistencies with respect to channelstructure. I would assume that the channel indexes/location across participants would be consistent with the .loc file and thereby, you should not have to check the channel indexes and can just feed in the .loc information into eeg_interp?.... Or you might want to check if for each participant the eeg.chanlocs.urchan match at the end of interpolation?</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
But in the end I commented out line 251 - 272   which seems to fix the weird looking IC's. and CORRMAP works fine now :)</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Thanks!</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Berry</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><br><div class="gmail_quote">On 20 February 2013 13:03, Makoto Miyakoshi <span dir="ltr"><<a href="mailto:mmiyakoshi@ucsd.edu" target="_blank">mmiyakoshi@ucsd.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear Arno,<div><br></div><div>Here is a question for you asking about CORRMAP. When you have time please help him.</div><div><br></div><div>Makoto<br><div><br><div class="gmail_quote"><div><div class="h5">2013/2/18 berry van den berg <span dir="ltr"><<a href="mailto:berryv.dberg@gmail.com" target="_blank">berryv.dberg@gmail.com</a>></span><br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Dear all,</span><br>
<br style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">


<span><font color="#222222" face="arial, sans-serif">I am trying to use CORRMAP (eeglab12_0_1_0b) on a dataset to acquire a more data driven (and automatic) selection components that I want to remove as artifacts. Unfortunately I am having trouble if channels from certain participants are missing (bad channels removed before running ICA). If I am running CORRMAP on subjects without removed channels it works fine: </font></span><br clear="all">



<div><br></div><div><a href="https://www.dropbox.com/s/0y6718uezamllak/corrmap_works_well.png" target="_blank">https://www.dropbox.com/s/0y6718uezamllak/corrmap_works_well.png</a></div><div><br></div><div><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">However, if I add a subject with removed channels it looks a bit weird.... CORRMAP first interpolates the channels before it runs, and the selected ICs look completely different (also the template which should be the same template as when it works well). The "components" it selects also are not in the data.</span></div>



<div><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br></span></div><div><div><a href="https://www.dropbox.com/s/0kp0cd2exsk6apq/CORRMAP_didnt_work_well.png" target="_blank">https://www.dropbox.com/s/0kp0cd2exsk6apq/CORRMAP_didnt_work_well.png</a></div>



</div><div><br></div><div>Am I doing something wrong?</div><div><br></div><div>Thanks!</div><span><font color="#888888"><div><br></div><div><br></div>-- <br>Berry van den Berg<br><a href="mailto:berryv.dberg@gmail.com" target="_blank">berryv.dberg@gmail.com</a>
</font></span><br></div></div><div class="im">_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" 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" target="_blank">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" target="_blank">eeglablist-request@sccn.ucsd.edu</a><br></div></blockquote></div><span class="HOEnZb"><font color="#888888"><br>
<br clear="all"><div><br></div>

-- <br>Makoto Miyakoshi<br>JSPS Postdoctral Fellow for Research Abroad<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Berry van den Berg<br><a href="mailto:berryv.dberg@gmail.com" target="_blank">berryv.dberg@gmail.com</a>
</blockquote></div><br></div></body></html>