<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Dear FT community,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I'm in the process of doing an ICA on my EEG data, but run into the following error using ft_icabrowser:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(200, 38, 19);">Error using topoplot_common (line 529)</span>
<div><span style="color: rgb(200, 38, 19);">labels in data and labels in layout do not match</span></div>
<div><br>
</div>
<div><span style="color: rgb(200, 38, 19);">Error in ft_topoplotIC (line 185)</span></div>
<div><span style="color: rgb(200, 38, 19);">  [cfg] = topoplot_common(cfg, comp);</span></div>
<div><br>
</div>
<div><span style="color: rgb(200, 38, 19);">Error in ft_icabrowser (line 151)</span></div>
<span style="color: rgb(200, 38, 19);">        ft_topoplotIC(cfgtopo, comp); </span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I tried to step through the code and debug it and noticed that when ft_icabrowser calls ft_topoplotIC (on line 151) the cfg.layout.label changes.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
It removes all my channel labels and only leaves:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">'COMNT'</span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
'SCALE'<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
These configuration settings are then used for calling topoplot_common.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I assume that this is the reason why I get the error that labels in data and labels in layout do not match.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Does anyone know why this happens and how to solve it?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
My code:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
    cfg = [];
<div>    cfg.method         = 'runica';</div>
<div>    cfg.runica.pca     = 32; </div>
<div>    comps{subject}  = ft_componentanalysis(cfg, data_repaired_channels); </div>
<div>   <br>
</div>
<div>    % visualise components and decide which to keep/reject</div>
<div>    cfg = [];</div>
<div>    cfg.elec         = elec;</div>
<div>    cfg.layout     = ft_prepare_layout(cfg,elec);</div>
<div>    cfg.path        = Path2Save;</div>
<div>    cfg.prefix      = ( ['component_' num2str(subject)] );</div>
<div>    ft_databrowser(cfg,comps{subject}); </div>
<div>    rejcomp        = ft_icabrowser(cfg,comps{subject}); </div>
<br>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Best regards,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Martin</div>
<div id="Signature">
<div>
<div></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<p style="color:rgb(32,31,30); font-family:Tahoma; font-size:13px; text-align:start; background-color:rgb(255,255,255); margin-top:0px; margin-bottom:0px">
<font color="#333333" size="1"><span lang="en-US" style="margin:0px"><span style="color:rgb(118,113,113); font-family:Calibri,sans-serif; font-size:12px; text-align:left; background-color:rgb(255,255,255); display:inline!important">------------</span><br>
</span></font></p>
<p style="color:rgb(32,31,30); font-family:Tahoma; font-size:13px; text-align:start; background-color:rgb(255,255,255); margin-top:0px; margin-bottom:0px">
<font color="#333333" size="1"><span lang="en-US" style="margin:0px"><b>Martin Schaefer | </b></span></font><span style="font-family:Tahoma; font-size:x-small">PhD Student</span></p>
<p style="color:rgb(32,31,30); font-family:Tahoma; font-size:13px; text-align:start; background-color:rgb(255,255,255); margin-top:0px; margin-bottom:0px">
<font color="#333333" size="1"><span style="font-family:Tahoma; font-size:x-small; background-color:rgb(255,255,255); display:inline!important"><a href="https://www.perceptionlab.se/">https://www.perceptionlab.se/</a><br>
</span></font></p>
<p style="color:rgb(32,31,30); font-family:Tahoma; font-size:13px; text-align:start; background-color:rgb(255,255,255); margin-top:0px; margin-bottom:0px">
<font color="#333333" size="1">Department of Clinical Neuroscience (CNS), K8</font></p>
<p style="color:rgb(32,31,30); font-family:Tahoma; font-size:13px; text-align:start; background-color:rgb(255,255,255); margin-top:0px; margin-bottom:0px">
<font color="#333333" size="1">Karolinska Institutet | 17 177 Stockholm | Nobels väg 9</font></p>
<p style="color:rgb(32,31,30); font-family:Tahoma; font-size:13px; text-align:start; background-color:rgb(255,255,255); margin-top:0px; margin-bottom:0px">
<span lang="en-US" style="margin:0px"><font color="gray" size="1"><a href="mailto:artin.arshamian@ki.se" target="_blank" rel="noopener noreferrer" style="margin:0px">martin.schaefer@ki.se</a></font></span></p>
<p style="color:rgb(32,31,30); font-family:Tahoma; font-size:13px; text-align:start; background-color:rgb(255,255,255); margin-top:0px; margin-bottom:0px">
<span lang="en-US" style="margin:0px"><font color="gray" size="1">______________________________________<br>
Karolinska Institutet – a Medical University</font></span></p>
<br>
</div>
</div>
</div>
</div>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="1561.6">
<style type="text/css">
    p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 14.0px; font: 12.0px Times; color: #000000; -webkit-text-stroke: #000000; min-height: 14.0px}
    p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 14.0px; font: 12.0px Times; color: #000000; -webkit-text-stroke: #000000}
    span.s1 {font-kerning: none}
    span.s2 {text-decoration: underline ; font-kerning: none; color: #0000ee; -webkit-text-stroke: 0px #0000ee}
  </style>
<p class="p1"><span class="s1"></span><br>
</p>
<p class="p1"><span class="s1"></span><br>
</p>
<p class="p2"><span class="s1"><i>När du skickar e-post till Karolinska Institutet (KI) innebär detta att KI kommer att behandla dina personuppgifter.
</i><a href="https://ki.se/medarbetare/integritetsskyddspolicy"><span class="s2">Här finns information om hur KI behandlar personuppgifter</span></a>.<span class="Apple-converted-space"> </span></span></p>
<p class="p1"><span class="s1"></span><br>
</p>
<p class="p2"><span class="s1"><i>Sending email to Karolinska Institutet (KI) will result in KI processing your personal data.</i>
<a href="https://ki.se/en/staff/data-protection-policy"><span class="s2">You can read more about KI’s processing of personal data here</span></a>.<span class="Apple-converted-space"> </span></span></p>
</body>
</html>