<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Thanks for the clarification--I'll be sure to do that. I sometimes get confused about which functions belong to which package!</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Ramón Martinez <nucleuscub@gmail.com><br>
<b>Sent:</b> Friday, March 2, 2018 5:21:27 PM<br>
<b>To:</b> lmm226<br>
<b>Cc:</b> eeglablist@sccn.ucsd.edu<br>
<b>Subject:</b> Re: [Eeglablist] Channel locations lost after re-referencing</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>Dear Laura,</div>
<div><i>pop_eegchanoperator</i> is not an EEGLAB function. This function belongs to ERPLAB, which we do not develop at the SCCN. You may want to ask directly to ERPLAB developers regarding this problem.</div>
<div> Hope this helps,</div>
<div>Ramon</div>
</div>
<div class="x_gmail_extra"><br>
<div class="x_gmail_quote">On Thu, Mar 1, 2018 at 2:54 PM, lmm226 <span dir="ltr">
<<a href="mailto:laura.morett@yale.edu" target="_blank">laura.morett@yale.edu</a>></span> wrote:<br>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div id="x_m_-3905873048036539291divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top:0; margin-bottom:0">As the title of this message suggests, for some reason, the channel locations for some subjects are lost when I re-reference. This is not the case for all subjects, and I'm unsure of what differentiates subjects for
whom channels are lost during re-referencing from subjects for whom they aren't. I checked the channels being used for the re-referencing as well as new channels created during these steps, but they all look fine to me. Below is the code I'm using to re-reference:</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin:0px; font-style:normal; font-variant:normal; font-weight:normal; font-size:10px; line-height:normal; font-family:Courier; color:rgb(178,69,243)">
<span style="color:rgb(0,0,0)"></span></p>
<p style="margin:0px; font-style:normal; font-variant:normal; font-weight:normal; font-size:10px; line-height:normal; font-family:Courier">
<span class="x_m_-3905873048036539291Apple-converted-space"> </span>EEG = pop_eegchanoperator( EEG, [home_path
<span style="color:rgb(178,69,243)">'chan_averaging_combined.txt'</span>]<wbr>, <span style="color:rgb(178,69,243)">
'ErrorMsg'</span>, <span style="color:rgb(178,69,243)">'popup'</span>, <span style="color:rgb(178,69,243)">
'Warning'</span>, <span style="color:rgb(178,69,243)">'off'</span> );</p>
<p style="margin:0px; font-style:normal; font-variant:normal; font-weight:normal; font-size:10px; line-height:normal; font-family:Courier">
<span class="x_m_-3905873048036539291Apple-converted-space"> </span>EEG.setname = [EEG.setname
<span style="color:rgb(178,69,243)">'_reref'</span>];</p>
<p style="margin:0px; font-style:normal; font-variant:normal; font-weight:normal; font-size:10px; line-height:normal; font-family:Courier">
<span class="x_m_-3905873048036539291Apple-converted-space"> </span><span style="color:rgb(4,51,255)">if</span> (save_files)</p>
<p style="margin:0px; font-style:normal; font-variant:normal; font-weight:normal; font-size:10px; line-height:normal; font-family:Courier">
<span class="x_m_-3905873048036539291Apple-converted-space"> </span>EEG = pop_saveset(EEG,
<span style="color:rgb(178,69,243)">'filename'</span>, [EEG.setname <span style="color:rgb(178,69,243)">
'.set'</span>], <span style="color:rgb(178,69,243)">'filepath'</span>, data_path);</p>
<p style="margin:0px; font-style:normal; font-variant:normal; font-weight:normal; font-size:10px; line-height:normal; font-family:Courier">
<span class="x_m_-3905873048036539291Apple-converted-space"> </span><span style="color:rgb(4,51,255)">end</span></p>
<br>
<p></p>
<p style="margin-top:0; margin-bottom:0">Below are the contents of chan_averaging_combined.txt. Any suggestions as to what may be causing this problem and how to fix it would be greatly appreciated. TIA!</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0"></p>
<div><span style="font-size:8pt">nch1 = ch1 - ( (ch57+ch101)/2 ) Label E1 </span></div>
<div><span style="font-size:8pt">nch2 = ch2 - ( (ch57+ch101)/2 ) Label E2 </span></div>
<div><span style="font-size:8pt">nch3 = ch3 - ( (ch57+ch101)/2 ) Label E3 </span></div>
<div><span style="font-size:8pt">nch4 = ch4 - ( (ch57+ch101)/2 ) Label E4 </span></div>
<div><span style="font-size:8pt">nch5 = ch5 - ( (ch57+ch101)/2 ) Label E5 </span></div>
<div><span style="font-size:8pt">nch6 = ch6 - ( (ch57+ch101)/2 ) Label E6 </span></div>
<div><span style="font-size:8pt">nch7 = ch7 - ( (ch57+ch101)/2 ) Label E7 </span></div>
<div><span style="font-size:8pt">nch8 = ch8 - ( (ch57+ch101)/2 ) Label E8 </span></div>
<div><span style="font-size:8pt">nch9 = ch9 - ( (ch57+ch101)/2 ) Label E9 </span></div>
<div><span style="font-size:8pt">nch10 = ch10 - ( (ch57+ch101)/2 ) Label E10 </span></div>
<div><span style="font-size:8pt">nch11 = ch11 - ( (ch57+ch101)/2 ) Label E11 </span></div>
<div><span style="font-size:8pt">nch12 = ch12 - ( (ch57+ch101)/2 ) Label E12 </span></div>
<div><span style="font-size:8pt">nch13 = ch13 - ( (ch57+ch101)/2 ) Label E13 </span></div>
<div><span style="font-size:8pt">nch14 = ch14 - ( (ch57+ch101)/2 ) Label E14 </span></div>
<div><span style="font-size:8pt">nch15 = ch15 - ( (ch57+ch101)/2 ) Label E15 </span></div>
<div><span style="font-size:8pt">nch16 = ch16 - ( (ch57+ch101)/2 ) Label E16 </span></div>
<div><span style="font-size:8pt">nch17 = ch17 - ( (ch57+ch101)/2 ) Label E17 </span></div>
<div><span style="font-size:8pt">nch18 = ch18 - ( (ch57+ch101)/2 ) Label E18 </span></div>
<div><span style="font-size:8pt">nch19 = ch19 - ( (ch57+ch101)/2 ) Label E19 </span></div>
<div><span style="font-size:8pt">nch20 = ch20 - ( (ch57+ch101)/2 ) Label E20 </span></div>
<div><span style="font-size:8pt">nch21 = ch21 - ( (ch57+ch101)/2 ) Label E21 </span></div>
<div><span style="font-size:8pt">nch22 = ch22 - ( (ch57+ch101)/2 ) Label E22 </span></div>
<div><span style="font-size:8pt">nch23 = ch23 - ( (ch57+ch101)/2 ) Label E23 </span></div>
<div><span style="font-size:8pt">nch24 = ch24 - ( (ch57+ch101)/2 ) Label E24 </span></div>
<div><span style="font-size:8pt">nch25 = ch25 - ( (ch57+ch101)/2 ) Label E25 </span></div>
<div><span style="font-size:8pt">nch26 = ch26 - ( (ch57+ch101)/2 ) Label E26 </span></div>
<div><span style="font-size:8pt">nch27 = ch27 - ( (ch57+ch101)/2 ) Label E27 </span></div>
<div><span style="font-size:8pt">nch28 = ch28 - ( (ch57+ch101)/2 ) Label E28 </span></div>
<div><span style="font-size:8pt">nch29 = ch29 - ( (ch57+ch101)/2 ) Label E29 </span></div>
<div><span style="font-size:8pt">nch30 = ch30 - ( (ch57+ch101)/2 ) Label E30 </span></div>
<div><span style="font-size:8pt">nch31 = ch31 - ( (ch57+ch101)/2 ) Label E31 </span></div>
<div><span style="font-size:8pt">nch32 = ch32 - ( (ch57+ch101)/2 ) Label E32 </span></div>
<div><span style="font-size:8pt">nch33 = ch33 - ( (ch57+ch101)/2 ) Label E33 </span></div>
<div><span style="font-size:8pt">nch34 = ch34 - ( (ch57+ch101)/2 ) Label E34 </span></div>
<div><span style="font-size:8pt">nch35 = ch35 - ( (ch57+ch101)/2 ) Label E35 </span></div>
<div><span style="font-size:8pt">nch36 = ch36 - ( (ch57+ch101)/2 ) Label E36 </span></div>
<div><span style="font-size:8pt">nch37 = ch37 - ( (ch57+ch101)/2 ) Label E37 </span></div>
<div><span style="font-size:8pt">nch38 = ch38 - ( (ch57+ch101)/2 ) Label E38 </span></div>
<div><span style="font-size:8pt">nch39 = ch39 - ( (ch57+ch101)/2 ) Label E39 </span></div>
<div><span style="font-size:8pt">nch40 = ch40 - ( (ch57+ch101)/2 ) Label E40 </span></div>
<div><span style="font-size:8pt">nch41 = ch41 - ( (ch57+ch101)/2 ) Label E41 </span></div>
<div><span style="font-size:8pt">nch42 = ch42 - ( (ch57+ch101)/2 ) Label E42 </span></div>
<div><span style="font-size:8pt">nch43 = ch43 - ( (ch57+ch101)/2 ) Label E43 </span></div>
<div><span style="font-size:8pt">nch44 = ch44 - ( (ch57+ch101)/2 ) Label E44 </span></div>
<div><span style="font-size:8pt">nch45 = ch45 - ( (ch57+ch101)/2 ) Label E45 </span></div>
<div><span style="font-size:8pt">nch46 = ch46 - ( (ch57+ch101)/2 ) Label E46 </span></div>
<div><span style="font-size:8pt">nch47 = ch47 - ( (ch57+ch101)/2 ) Label E47 </span></div>
<div><span style="font-size:8pt">nch48 = ch48 - ( (ch57+ch101)/2 ) Label E48 </span></div>
<div><span style="font-size:8pt">nch49 = ch49 - ( (ch57+ch101)/2 ) Label E49 </span></div>
<div><span style="font-size:8pt">nch50 = ch50 - ( (ch57+ch101)/2 ) Label E50 </span></div>
<div><span style="font-size:8pt">nch51 = ch51 - ( (ch57+ch101)/2 ) Label E51 </span></div>
<div><span style="font-size:8pt">nch52 = ch52 - ( (ch57+ch101)/2 ) Label E52 </span></div>
<div><span style="font-size:8pt">nch53 = ch53 - ( (ch57+ch101)/2 ) Label E53 </span></div>
<div><span style="font-size:8pt">nch54 = ch54 - ( (ch57+ch101)/2 ) Label E54 </span></div>
<div><span style="font-size:8pt">nch55 = ch55 - ( (ch57+ch101)/2 ) Label E55 </span></div>
<div><span style="font-size:8pt">nch56 = ch56 - ( (ch57+ch101)/2 ) Label E56</span></div>
<div><span style="font-size:8pt">nch57 = ch57 Label E57 </span></div>
<div><span style="font-size:8pt">nch58 = ch58 - ( (ch57+ch101)/2 ) Label E58 </span></div>
<div><span style="font-size:8pt">nch59 = ch59 - ( (ch57+ch101)/2 ) Label E59 </span></div>
<div><span style="font-size:8pt">nch60 = ch60 - ( (ch57+ch101)/2 ) Label E60 </span></div>
<div><span style="font-size:8pt">nch61 = ch61 - ( (ch57+ch101)/2 ) Label E61 </span></div>
<div><span style="font-size:8pt">nch62 = ch62 - ( (ch57+ch101)/2 ) Label E62 </span></div>
<div><span style="font-size:8pt">nch63 = ch63 - ( (ch57+ch101)/2 ) Label E63 </span></div>
<div><span style="font-size:8pt">nch64 = ch64 - ( (ch57+ch101)/2 ) Label E64 </span></div>
<div><span style="font-size:8pt">nch65 = ch65 - ( (ch57+ch101)/2 ) Label E65 </span></div>
<div><span style="font-size:8pt">nch66 = ch66 - ( (ch57+ch101)/2 ) Label E66 </span></div>
<div><span style="font-size:8pt">nch67 = ch67 - ( (ch57+ch101)/2 ) Label E67 </span></div>
<div><span style="font-size:8pt">nch68 = ch68 - ( (ch57+ch101)/2 ) Label E68 </span></div>
<div><span style="font-size:8pt">nch69 = ch69 - ( (ch57+ch101)/2 ) Label E69 </span></div>
<div><span style="font-size:8pt">nch70 = ch70 - ( (ch57+ch101)/2 ) Label E70 </span></div>
<div><span style="font-size:8pt">nch71 = ch71 - ( (ch57+ch101)/2 ) Label E71 </span></div>
<div><span style="font-size:8pt">nch72 = ch72 - ( (ch57+ch101)/2 ) Label E72 </span></div>
<div><span style="font-size:8pt">nch73 = ch73 - ( (ch57+ch101)/2 ) Label E73 </span></div>
<div><span style="font-size:8pt">nch74 = ch74 - ( (ch57+ch101)/2 ) Label E74 </span></div>
<div><span style="font-size:8pt">nch75 = ch75 - ( (ch57+ch101)/2 ) Label E75 </span></div>
<div><span style="font-size:8pt">nch76 = ch76 - ( (ch57+ch101)/2 ) Label E76 </span></div>
<div><span style="font-size:8pt">nch77 = ch77 - ( (ch57+ch101)/2 ) Label E77 </span></div>
<div><span style="font-size:8pt">nch78 = ch78 - ( (ch57+ch101)/2 ) Label E78 </span></div>
<div><span style="font-size:8pt">nch79 = ch79 - ( (ch57+ch101)/2 ) Label E79 </span></div>
<div><span style="font-size:8pt">nch80 = ch80 - ( (ch57+ch101)/2 ) Label E80 </span></div>
<div><span style="font-size:8pt">nch81 = ch81 - ( (ch57+ch101)/2 ) Label E81 </span></div>
<div><span style="font-size:8pt">nch82 = ch82 - ( (ch57+ch101)/2 ) Label E82 </span></div>
<div><span style="font-size:8pt">nch83 = ch83 - ( (ch57+ch101)/2 ) Label E83 </span></div>
<div><span style="font-size:8pt">nch84 = ch84 - ( (ch57+ch101)/2 ) Label E84 </span></div>
<div><span style="font-size:8pt">nch85 = ch85 - ( (ch57+ch101)/2 ) Label E85 </span></div>
<div><span style="font-size:8pt">nch86 = ch86 - ( (ch57+ch101)/2 ) Label E86 </span></div>
<div><span style="font-size:8pt">nch87 = ch87 - ( (ch57+ch101)/2 ) Label E87 </span></div>
<div><span style="font-size:8pt">nch88 = ch88 - ( (ch57+ch101)/2 ) Label E88 </span></div>
<div><span style="font-size:8pt">nch89 = ch89 - ( (ch57+ch101)/2 ) Label E89 </span></div>
<div><span style="font-size:8pt">nch90 = ch90 - ( (ch57+ch101)/2 ) Label E90 </span></div>
<div><span style="font-size:8pt">nch91 = ch91 - ( (ch57+ch101)/2 ) Label E91 </span></div>
<div><span style="font-size:8pt">nch92 = ch92 - ( (ch57+ch101)/2 ) Label E92 </span></div>
<div><span style="font-size:8pt">nch93 = ch93 - ( (ch57+ch101)/2 ) Label E93 </span></div>
<div><span style="font-size:8pt">nch94 = ch94 - ( (ch57+ch101)/2 ) Label E94 </span></div>
<div><span style="font-size:8pt">nch95 = ch95 - ( (ch57+ch101)/2 ) Label E95 </span></div>
<div><span style="font-size:8pt">nch96 = ch96 - ( (ch57+ch101)/2 ) Label E96 </span></div>
<div><span style="font-size:8pt">nch97 = ch97 - ( (ch57+ch101)/2 ) Label E97 </span></div>
<div><span style="font-size:8pt">nch98 = ch98 - ( (ch57+ch101)/2 ) Label E98 </span></div>
<div><span style="font-size:8pt">nch99 = ch99 - ( (ch57+ch101)/2 ) Label E99 </span></div>
<div><span style="font-size:8pt">nch100 = ch100 - ( (ch57+ch101)/2 ) Label E100</span></div>
<div><span style="font-size:8pt">nch101 = ch101 Label E101 </span></div>
<div><span style="font-size:8pt">nch102 = ch102 - ( (ch57+ch101)/2 ) Label E102</span></div>
<div><span style="font-size:8pt">nch103 = ch103 - ( (ch57+ch101)/2 ) Label E103</span></div>
<div><span style="font-size:8pt">nch104 = ch104 - ( (ch57+ch101)/2 ) Label E104</span></div>
<div><span style="font-size:8pt">nch105 = ch105 - ( (ch57+ch101)/2 ) Label E105</span></div>
<div><span style="font-size:8pt">nch106 = ch106 - ( (ch57+ch101)/2 ) Label E106</span></div>
<div><span style="font-size:8pt">nch107 = ch107 - ( (ch57+ch101)/2 ) Label E107</span></div>
<div><span style="font-size:8pt">nch108 = ch108 - ( (ch57+ch101)/2 ) Label E108</span></div>
<div><span style="font-size:8pt">nch109 = ch109 - ( (ch57+ch101)/2 ) Label E109</span></div>
<div><span style="font-size:8pt">nch110 = ch110 - ( (ch57+ch101)/2 ) Label E110</span></div>
<div><span style="font-size:8pt">nch111 = ch111 - ( (ch57+ch101)/2 ) Label E111</span></div>
<div><span style="font-size:8pt">nch112 = ch112 - ( (ch57+ch101)/2 ) Label E112</span></div>
<div><span style="font-size:8pt">nch113 = ch113 - ( (ch57+ch101)/2 ) Label E113</span></div>
<div><span style="font-size:8pt">nch114 = ch114 - ( (ch57+ch101)/2 ) Label E114</span></div>
<div><span style="font-size:8pt">nch115 = ch115 - ( (ch57+ch101)/2 ) Label E115</span></div>
<div><span style="font-size:8pt">nch116 = ch116 - ( (ch57+ch101)/2 ) Label E116</span></div>
<div><span style="font-size:8pt">nch117 = ch117 - ( (ch57+ch101)/2 ) Label E117</span></div>
<div><span style="font-size:8pt">nch118 = ch118 - ( (ch57+ch101)/2 ) Label E118</span></div>
<div><span style="font-size:8pt">nch119 = ch119 - ( (ch57+ch101)/2 ) Label E119</span></div>
<div><span style="font-size:8pt">nch120 = ch120 - ( (ch57+ch101)/2 ) Label E120</span></div>
<div><span style="font-size:8pt">nch121 = ch121 - ( (ch57+ch101)/2 ) Label E121</span></div>
<div><span style="font-size:8pt">nch122 = ch122 - ( (ch57+ch101)/2 ) Label E122</span></div>
<div><span style="font-size:8pt">nch123 = ch123 - ( (ch57+ch101)/2 ) Label E123</span></div>
<div><span style="font-size:8pt">nch124 = ch124 - ( (ch57+ch101)/2 ) Label E124</span></div>
<div><span style="font-size:8pt">nch125 = ch125 - ( (ch57+ch101)/2 ) Label E125</span></div>
<div><span style="font-size:8pt">nch126 = ch126 - ( (ch57+ch101)/2 ) Label E126</span></div>
<div><span style="font-size:8pt">nch127 = ch127 - ( (ch57+ch101)/2 ) Label E127</span></div>
<div><span style="font-size:8pt">nch128 = ch128 - ( (ch57+ch101)/2 ) Label E128</span></div>
<div><span style="font-size:8pt">nch129 = ch128 - ch17 Label HEOG-R</span></div>
<div><span style="font-size:8pt">nch130 = ch17 - ch125 Label HEOG-L</span></div>
<div><span style="font-size:8pt">nch131 = ch127 + ch126 - (((ch21+ch25)/2) + ((ch14+ch8)/2)) Label biVEOG</span></div>
<br>
<p></p>
<div id="x_m_-3905873048036539291Signature">
<div id="x_m_-3905873048036539291divtagdefaultwrapper" style="font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255); font-family:Calibri,Arial,Helvetica,sans-serif,Helvetica,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p class="x_m_-3905873048036539291p4"><span class="x_m_-3905873048036539291s3"><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lauramorettphd.wix.com_home&d=DwMFaQ&c=cjytLXgP8ixuoHflwc-poQ&r=XV-05fTN-85K6rXjXm7HZKkgIX_M0vmiltOj_jK4w4w&m=eglPxs_1gJ1QSU3vSA9qde9S0GnGK0lVQWAp2-zdZRM&s=2j90cuaB0tLASbPgVBdSPwERNAczVf3d9TQvrZBqMnE&e=" id="x_m_-3905873048036539291LPNoLP" target="_blank"><span class="x_m_-3905873048036539291s4"></span></a></span></p>
<p></p>
<p class="x_m_-3905873048036539291p1"><span class="x_m_-3905873048036539291s1"></span></p>
<p></p>
</div>
</div>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
Eeglablist page: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__sccn.ucsd.edu_eeglab_eeglabmail.html&d=DwMFaQ&c=cjytLXgP8ixuoHflwc-poQ&r=XV-05fTN-85K6rXjXm7HZKkgIX_M0vmiltOj_jK4w4w&m=eglPxs_1gJ1QSU3vSA9qde9S0GnGK0lVQWAp2-zdZRM&s=5wXpp-W4xTmlcxHLIQ9W-Qy3Mpvb8L6Iybs4-XSLX4k&e=" 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>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="x_gmail_signature">
<div dir="ltr">
<div><span style="color:rgb(136,136,136)">_____________________________________________________</span><br>
</div>
<div><span style="color:rgb(136,136,136)">Ramon Martinez-Cancino</span></div>
<span style="color:rgb(136,136,136)">Swartz Center for Computational Neuroscience</span><br style="color:rgb(136,136,136)">
<span style="color:rgb(136,136,136)">Institute for Neural Computation, University of California San Diego</span><br>
</div>
</div>
</div>
</div>
</body>
</html>