<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Hello,</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">I’m trying to import raw biosemi data with the function ‘pop_biosig’ but I’d like to only import 64 channels and the 4 EOGs with P9 and P10 as linked mastoid references. Due to a bad config file for the biosemi system 234 channels were saved while only 64+6 channels were actually recording.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">When I import using the line:</div><div id="bloop_customfont" style="font-family: Helvetica, Arial; font-size: 13px; margin: 0px;"><p style="color: rgb(0, 0, 0); margin: 0px; font-size: 9px; font-family: Courier;">  EEG = pop_biosig(file, <span style="color: #b245f3">'channels'</span>,[1:64 227:230] ,<span style="color: #b245f3">'ref'</span>,[24 61] ,<span style="color: #b245f3">'refoptions'</span>,{<span style="color: #b245f3">'keepref'</span> <span style="color: #b245f3">'on'</span>});</p><div style="color: rgb(0, 0, 0);">and later edit the channel locations with:</div><div style="color: rgb(0, 0, 0);"><p style="margin: 0px; font-size: 9px; font-family: Courier; color: rgb(178, 69, 243);"><span style="color: #000000">EEG=pop_chanedit(EEG, </span>'load'<span style="color: #000000">,{</span>'cap64_new.loc'<span style="color: #000000"> </span>'filetype'<span style="color: #000000"> </span>'loc'<span style="color: #000000">},</span>'setref'<span style="color: #000000">,{</span>'24  61'<span style="color: #000000"> </span>'P9  P10'<span style="color: #000000">});</span></p></div><div style="color: rgb(0, 0, 0);"><br></div><div style="color: rgb(0, 0, 0);">The last line produces the warning: </div><div><div><font color="#ff9300">Warning: channel labels should not be empty, creating unique labels </font></div><div style="color: rgb(0, 0, 0);">Warning: the size of the channel location structure does not match with</div><div style="color: rgb(0, 0, 0);">         number of channels. Channel information have been removed.</div></div><div style="color: rgb(0, 0, 0);"><br></div><div style="color: rgb(0, 0, 0);">and the EEG.chanlocs structure is changed to a default template ( .labels: Ch1 , Ch2 …)</div><div style="color: rgb(0, 0, 0);"><br></div><div style="color: rgb(0, 0, 0);">I tried first importing all the channels and then use pop_select but unfortunately many of the 234 channels have the same name which either selects empty channels or deletes actually recording ones.</div><div style="color: rgb(0, 0, 0);"><br></div><div style="color: rgb(0, 0, 0);">Is there a way to import only certain channels without discrepancies between the .data and .chanlocs? </div><div style="color: rgb(0, 0, 0);">Or can channels be targeted by pop_select in a different way than with the name of the channels, or possibly rename the channels according to a 10-20 channel template?</div><div style="color: rgb(0, 0, 0);"><br></div><div style="color: rgb(0, 0, 0);">Any help would be much appreciated!</div><div style="color: rgb(0, 0, 0);">Adrien Martel</div></div></body></html>