<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<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">Hi Karolina, </p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">So you could try this (someone please correct me if I am wrong). </p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">You can get into the data of the EEG file through EEG.data. Then you can specify a channel like this EEG.data(1,:) and then you can replace it with the one that you want. </p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">So, if B4 is number 36 then you can tell the EEG data in the 36th position to be replaced with EXG3, which should be 131st channel. Therefore you should be able to do it like so. </p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><span>EEG.data(36,:) = EEG.data(131,:)</span><br>
</p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span>& </span></p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span><span>EEG.data(52,:) = EEG.data(132,:) % for B20 to EXG4</span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span><span><br>
</span></span></p>
<p style="margin-top:0;margin-bottom:0"><span><span>Kind regards, <br>
<br>
Mark</span></span></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> Karolina Broś <k.bros@uw.edu.pl><br>
<b>Sent:</b> 03 May 2018 17:12:02<br>
<b>To:</b> Crook-Rumsey, Mark<br>
<b>Cc:</b> eeglablist@sccn.ucsd.edu<br>
<b>Subject:</b> Re: [Eeglablist] Biosemi loc file</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="x_gmail_default" style="font-family:georgia,serif; color:#0000ff">Hi Mark, </div>
<div class="x_gmail_default" style="font-family:georgia,serif; color:#0000ff"><br>
</div>
<div class="x_gmail_default" style="font-family:georgia,serif; color:#0000ff">thank you. </div>
<div class="x_gmail_default" style="font-family:georgia,serif; color:#0000ff"><br>
</div>
<div class="x_gmail_default" style="font-family:georgia,serif; color:#0000ff">As for the externals, what I mean is that in the electrode set I was using two electrodes were permanently broken so I was using EXG3 and EXG4 (additional/external electrodes) in
their place. For this reason I do not want to interpolate but just replace the signal from the B4 and B20 electrodes which were bad (and hence the signal is null or just noise) with the signal recorded on the EXG3 and 4. I know that this kind of replacement
is possible in Fieldtrip for instance (I have a code for that), but I am not sure how this is done in EEGLAB.</div>
<div class="x_gmail_default" style="font-family:georgia,serif; color:#0000ff"><br>
</div>
<div class="x_gmail_default" style="font-family:georgia,serif; color:#0000ff">I am thinking that I could just delete the bad electrodes and add those externals with the locations of the ones I am replacing, but this only fixes the locations I suppose....right?
I would have to then just exclude bad electrodes.</div>
<div class="x_gmail_default" style="font-family:georgia,serif; color:#0000ff"><br>
</div>
<div class="x_gmail_default" style="font-family:georgia,serif; color:#0000ff">I would be really grateful if anyone could help on this matter.</div>
<div class="x_gmail_default" style="font-family:georgia,serif; color:#0000ff"><br>
</div>
<div class="x_gmail_default" style="font-family:georgia,serif; color:#0000ff">Thanks again!</div>
<div class="x_gmail_default" style="font-family:georgia,serif; color:#0000ff">Karolina</div>
<div class="x_gmail_default" style="font-family:georgia,serif; color:#0000ff"><br>
</div>
<div class="x_gmail_default" style="font-family:georgia,serif; color:#0000ff"><br>
</div>
<div class="x_gmail_default" style="font-family:georgia,serif; color:#0000ff"><br>
</div>
<div class="x_gmail_default" style="font-family:georgia,serif; color:#0000ff"><br>
</div>
</div>
<div class="x_gmail_extra"><br clear="all">
<div>
<div class="x_gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">Pozdrawiam serdecznie
<div><span style="color:rgb(0,0,0)">dr Karolina Broś</span><br>
</div>
<div><font color="#000000"><br>
</font></div>
<div><span style="color:rgb(153,153,153)"></span></div>
<div><span style="color:rgb(153,153,153)">Institute of Applied Linguistics</span><br>
</div>
<div><font color="#999999">University of Warsaw<br>
ul. Dobra 55<br>
00-312 Warszawa<br>
</font></div>
<div><font color="#999999"><u><a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ils.uw.edu.pl&data=01%7C01%7Cmark.crookrumsey%40ntu.ac.uk%7C684b0a4a0ffb46860a0108d5b1109c7b%7C8acbc2c5c8ed42c78169ba438a0dbe2f%7C1&sdata=baHSPPTv3iSN2jBWyXMMMm3fd8CAjJQkoR4mIr8MiWQ%3D&reserved=0" target="_blank">www.ils.uw.edu.pl</a></u><br>
<br>
</font><span><font color="#000000"><u><a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.karolinabros.eu&data=01%7C01%7Cmark.crookrumsey%40ntu.ac.uk%7C684b0a4a0ffb46860a0108d5b1109c7b%7C8acbc2c5c8ed42c78169ba438a0dbe2f%7C1&sdata=PuY2pTRIRbBniDD%2BLfMnROGDOyD9o7o2ye3QOeo%2BFM4%3D&reserved=0" target="_blank">www.karolinabros.eu</a></u></font></span></div>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="x_gmail_quote">2018-05-03 18:02 GMT+02:00 Crook-Rumsey, Mark <span dir="ltr">
<<a href="mailto:mark.crookrumsey@ntu.ac.uk" target="_blank">mark.crookrumsey@ntu.ac.uk</a>></span>:<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_-1285485835267975697divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top:0; margin-bottom:0"><span style="font-family:Calibri,Helvetica,sans-serif">Hi there, </span></p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0"><span style="font-family:Calibri,Helvetica,sans-serif">I also use a 128 biosemi. </span><span style="font-family:Calibri,Helvetica,sans-serif">For some reason EEGlab is not letting me create a .loc file for you. However
the file that I sent previously should work. If you type the code below into your command line in matlab it should look up the locations from the that .elp file. Do this after you have already imported your files into EEGlab. </span></p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0"></p>
<div><span style="font-family:Calibri,Helvetica,sans-serif">% import channel info</span></div>
<div><span style="font-size:12pt; font-family:Calibri,Helvetica,sans-serif">EEG=pop_chanedit(EEG, 'lookup','G:\\Mark\\EEG Data\\Biosemi_128_sph.elp'); %change the last part in ' ' to where ever the file is saved</span></div>
<div><span style="font-size:12pt"><br>
</span></div>
<div><span style="font-family:Calibri,Helvetica,sans-serif">Alternatively, you could try the following in the command line:</span></div>
<div>
<pre><span style="font-family:Calibri,Helvetica,sans-serif">pop_chanedit(readlocs('<wbr>biosemi_eloc.txt', 'format', { 'labels' 'sph_theta_besa' 'sph_phi_besa' }, 'skiplines', 1)); % change the 'biosemi_eloc.txt' part to whatever your excel file is called with the locations.</span></pre>
<pre><font face="Calibri, Helvetica, sans-serif"><span style="font-family:Calibri,Helvetica,sans-serif">I'm not sure what you mean by externals? If you find that you have bad electrodes you can remove them and leave them out, or you can interpolate them, which will create an artificial average from the surrounding electrodes. </span></font></pre>
<pre><span style="font-family:Calibri,Helvetica,sans-serif"> I hope none of that sounds condescending, I'm not sure what you have or have not already tried. Let me know if this helps.
Kind regards,
Mark</span></pre>
<div><br>
</div>
<br>
</div>
<div><span style="font-family:Calibri,Helvetica,sans-serif"> </span></div>
<br>
<p></p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
</div>
<hr style="display:inline-block; width:98%">
<div id="x_m_-1285485835267975697divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Karolina Broś <<a href="mailto:k.bros@uw.edu.pl" target="_blank">k.bros@uw.edu.pl</a>><br>
<b>Sent:</b> 01 May 2018 19:11:04<br>
<b>To:</b> Crook-Rumsey, Mark<span class=""><br>
<b>Subject:</b> Re: [Eeglablist] Biosemi loc file</span></font>
<div> </div>
</div>
<div>
<div class="x_h5">
<div>
<div dir="auto">Hi!
<div dir="auto"><br>
</div>
<div dir="auto">Thank you very much for the files but I have data recorded in a 128-electrode system. Maybe you have a loc file for that?</div>
<div dir="auto"><br>
</div>
<div dir="auto">Also, I wanted to ask about replacing nad electrodes with the signal fro externals. Should I just delete bad channels and add external electrodes with the locations of the replaced ones or is there some other procedure in EEGLAB for that?</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
</div>
<br>
<div class="x_m_-1285485835267975697x_gmail_quote">
<div dir="ltr">On Tue, 1 May 2018, 19:58 Crook-Rumsey, Mark, <<a href="mailto:mark.crookrumsey@ntu.ac.uk" target="_blank">mark.crookrumsey@ntu.ac.uk</a>> wrote:<br>
</div>
<blockquote class="x_m_-1285485835267975697x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div id="x_m_-1285485835267975697x_m_-5911887960259052016divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top:0; margin-bottom:0">Hi Karolina, </p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">Please let me know if this is of any use to you. </p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">Kind regards, <br>
<br>
Mark Crook-Rumsey</p>
</div>
<hr style="display:inline-block; width:98%">
<div id="x_m_-1285485835267975697x_m_-5911887960259052016divRplyFwdMsg" dir="ltr">
<font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> eeglablist <<a href="mailto:eeglablist-bounces@sccn.ucsd.edu" rel="noreferrer" target="_blank">eeglablist-bounces@sccn.ucsd.<wbr>edu</a>> on behalf of Karolina Broś <<a href="mailto:k.bros@uw.edu.pl" rel="noreferrer" target="_blank">k.bros@uw.edu.pl</a>><br>
<b>Sent:</b> 27 April 2018 17:44:50<br>
<b>To:</b> <a href="mailto:eeglablist@sccn.ucsd.edu" rel="noreferrer" target="_blank">
eeglablist@sccn.ucsd.edu</a><br>
<b>Subject:</b> [Eeglablist] Biosemi loc file</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="x_m_-1285485835267975697x_m_-5911887960259052016x_gmail_default" style="font-family:georgia,serif; color:#0000ff">
Hello, </div>
<div class="x_m_-1285485835267975697x_m_-5911887960259052016x_gmail_default" style="font-family:georgia,serif; color:#0000ff">
<br>
</div>
<div class="x_m_-1285485835267975697x_m_-5911887960259052016x_gmail_default" style="font-family:georgia,serif; color:#0000ff">
I wanted to ask about the Biosemi channel location files. </div>
<div class="x_m_-1285485835267975697x_m_-5911887960259052016x_gmail_default" style="font-family:georgia,serif; color:#0000ff">
I was looking all over the internet but I have not found a loc or othe EEGLAB-accepted channel file for Biosemi 128'channel systems. </div>
<div class="x_m_-1285485835267975697x_m_-5911887960259052016x_gmail_default" style="font-family:georgia,serif; color:#0000ff">
<br>
</div>
<div class="x_m_-1285485835267975697x_m_-5911887960259052016x_gmail_default" style="font-family:georgia,serif; color:#0000ff">
I do have the coordinates in an excel files but I don´t know how to convert them into a loc file or anything accepted by EEGLAB. Besides, I read that it is not straightforward and requires some computations because it´s different from the standard. I am new
to EEGLAB and EEG in general and I am unable to make such computations on my own. I know that people use Biosemi data in EEGLAB so such files do exist. </div>
<div class="x_m_-1285485835267975697x_m_-5911887960259052016x_gmail_default" style="font-family:georgia,serif; color:#0000ff">
<br>
</div>
<div class="x_m_-1285485835267975697x_m_-5911887960259052016x_gmail_default" style="font-family:georgia,serif; color:#0000ff">
Would it be possible for someone to share a loc file? I would be really grateful for your help.</div>
<div class="x_m_-1285485835267975697x_m_-5911887960259052016x_gmail_default" style="font-family:georgia,serif; color:#0000ff">
<br>
</div>
<div class="x_m_-1285485835267975697x_m_-5911887960259052016x_gmail_default" style="font-family:georgia,serif; color:#0000ff">
Best regards, </div>
<div class="x_m_-1285485835267975697x_m_-5911887960259052016x_gmail_default" style="font-family:georgia,serif; color:#0000ff">
Karolina Bros</div>
<div>
<div class="x_m_-1285485835267975697x_m_-5911887960259052016x_gmail_signature">
<div dir="ltr">
<div dir="ltr"><br>
</div>
</div>
</div>
</div>
</div>
</div>
DISCLAIMER: This email is intended solely for the addressee. It may contain private and confidential information. If you are not the intended addressee, please take no action based on it nor show a copy to anyone. In this case, please reply to this email to
highlight the error. Opinions and information in this email that do not relate to the official business of Nottingham Trent University shall be understood as neither given nor endorsed by the University. Nottingham Trent University has taken steps to ensure
that this email and any attachments are virus-free, but we do advise that the recipient should check that the email and its attachments are actually virus free. This is in keeping with good computing practice.
</div>
</blockquote>
</div>
</div>
DISCLAIMER: This email is intended solely for the addressee. It may contain private and confidential information. If you are not the intended addressee, please take no action based on it nor show a copy to anyone. In this case, please reply to this email to
highlight the error. Opinions and information in this email that do not relate to the official business of Nottingham Trent University shall be understood as neither given nor endorsed by the University. Nottingham Trent University has taken steps to ensure
that this email and any attachments are virus-free, but we do advise that the recipient should check that the email and its attachments are actually virus free. This is in keeping with good computing practice.
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
DISCLAIMER: This email is intended solely for the addressee. It may contain private and confidential information. If you are not the intended addressee, please take no action based on it nor show a copy to anyone. In this case, please reply to this email to
highlight the error. Opinions and information in this email that do not relate to the official business of Nottingham Trent University shall be understood as neither given nor endorsed by the University. Nottingham Trent University has taken steps to ensure
that this email and any attachments are virus-free, but we do advise that the recipient should check that the email and its attachments are actually virus free. This is in keeping with good computing practice.
</body>
</html>