<div dir="ltr"><div>Dear community,<br></div><div><br></div><div>I am trying to use the function "ft_channelrepair", but I can't figure out how to configure the EEG electrodes position.</div><div><br></div><div>The EEG cap I used is the "Acticap 64ch standard".</div><div><br></div><div>I suppose it would work like this:</div><div><br></div><div><pre class="gmail-m_6163067515946380185gmail-highlight" style="white-space:pre-wrap;box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:13.2px;margin-top:0px;margin-bottom:0px;overflow:auto;color:rgb(33,37,41);background:rgb(240,240,240)"><code style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:inherit;color:inherit;word-break:normal"><pre class="gmail-m_6163067515946380185gmail-highlight" style="white-space:pre-wrap;box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:13.2px;margin-top:0px;margin-bottom:0px;overflow:auto;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><code style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:inherit;color:inherit;word-break:normal">cfg.elec                 = </code>ft_read_sens(filename);  </pre></code></pre><pre class="gmail-m_6163067515946380185gmail-highlight" style="white-space:pre-wrap;box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:13.2px;margin-top:0px;margin-bottom:0px;overflow:auto;color:rgb(33,37,41);background:rgb(240,240,240)"><code style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:inherit;color:inherit;word-break:normal">data_after_interpolation = ft_channelrepair(cfg, data_before_interpolation);</code></pre></div><div><br></div><div>in which "filename" = template 3D electrode set available on <<a href="https://github.com/fieldtrip/fieldtrip/tree/master/template/electrode" target="_blank">https://github.com/<span class="gmail-il">fieldtrip</span>/<span class="gmail-il">fieldtrip</span>/tree/master/template/electrode</a>>. There is no template available for the "Acticap 64ch standard" on the mentioned website, though.</div><div><br></div><div>Then, I thought it would be valid editing the "easycap-M1.txt" template (which is available), and transforming it into the "Acticap 64ch standard", which apparently would involve deleting 8 channels and renaming two, as described on <<a href="http://www.fieldtriptoolbox.org/template/layout/#acticap-64ch-standard2mat" target="_blank">http://www.fieldtriptoolbox.org/template/layout/#acticap-64ch-standard2mat</a>>.</div><div><br></div><div>However, I don't know how can I do this and I'm not sure if this would be the proper way to solve this.</div><div><br></div><div>Can someone please tell me:</div><div>1. If this solution would be valid or if there is any other way to solve this?</div><div>2. In case it is valid, do I have do I have to download the "easycap-M1.txt" file, convert it into a ".m" file and then edit it? </div><div><br></div><div><br></div><div>Thank you in advance!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 24, 2019 at 8:02 AM Shephard, Elizabeth <<a href="mailto:elizabeth.1.shephard@kcl.ac.uk">elizabeth.1.shephard@kcl.ac.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div id="gmail-m_-4193349214764970044divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p style="margin-top:0px;margin-bottom:0px">Carol, I think you do have to edit the EasyCap layout - you download it, keep it as a .txt file, and just edit the text file. Then when you call cfg.elec just make sure you are directing fieldtrip to this edited file.
 This is what I did with 64Ch Brain Vision data when I needed to call the electrode positions - you will need to do this again during cluster-based permutation testing so worth having the file ready now</p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="gmail-m_-4193349214764970044divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> fieldtrip <<a href="mailto:fieldtrip-bounces@science.ru.nl" target="_blank">fieldtrip-bounces@science.ru.nl</a>> on behalf of Carolina Ogawa <<a href="mailto:carolyogawa@gmail.com" target="_blank">carolyogawa@gmail.com</a>><br>
<b>Sent:</b> 23 July 2019 22:12<br>
<b>To:</b> <a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.ru.nl</a> <<a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.ru.nl</a>><br>
<b>Subject:</b> [FieldTrip] Template 3D electrode set for Brain Products' acticap 64ch standard</font>
<div> </div>
</div>
<div>
<div dir="ltr">Dear community,
<div><br>
</div>
<div>I am trying to use the function "ft_channelrepair", but I can't figure out how to configure the EEG electrodes position.</div>
<div><br>
</div>
<div>The EEG cap I used is the "Acticap 64ch standard".</div>
<div><br>
</div>
<div>I suppose it would work like this:</div>
<div><br>
</div>
<div>
<pre class="gmail-m_-4193349214764970044x_gmail-highlight" style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:13.2px;margin-top:0px;margin-bottom:0px;overflow:auto;color:rgb(33,37,41);background:rgb(240,240,240)"><code style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:inherit;color:inherit;word-break:normal"><pre class="gmail-m_-4193349214764970044x_gmail-highlight" style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:13.2px;margin-top:0px;margin-bottom:0px;overflow:auto;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><code style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:inherit;color:inherit;word-break:normal">cfg.elec                 = </code>ft_read_sens(filename);  </pre></code></pre>
<pre class="gmail-m_-4193349214764970044x_gmail-highlight" style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:13.2px;margin-top:0px;margin-bottom:0px;overflow:auto;color:rgb(33,37,41);background:rgb(240,240,240)"><code style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:inherit;color:inherit;word-break:normal">data_after_interpolation = ft_channelrepair(cfg, data_before_interpolation);</code></pre>
</div>
<div><br>
</div>
<div>in which "filename" = template 3D electrode set available on <<a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffieldtrip%2Ffieldtrip%2Ftree%2Fmaster%2Ftemplate%2Felectrode&data=01%7C01%7Celizabeth.1.shephard%40kcl.ac.uk%7C884e368c63dd4f5a176b08d70fb9199c%7C8370cf1416f34c16b83c724071654356%7C0&sdata=8twyT5Q71yDZhhPR0AzjWvTeK%2BcEFO0Ev%2FpRJQv6YkM%3D&reserved=0" id="gmail-m_-4193349214764970044LPlnk917308" class="gmail-m_-4193349214764970044OWAAutoLink" target="_blank">https://github.com/fieldtrip/fieldtrip/tree/master/template/electrode</a>>.
 There is no template available for the "Acticap 64ch standard" on the mentioned website, though.</div>
<div><br>
</div>
<div>Then, I thought it would be valid editing the "easycap-M1.txt" template (which is available), and transforming it into the "Acticap 64ch standard", which apparently would involve deleting 8 channels and renaming two, as described on <<a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.fieldtriptoolbox.org%2Ftemplate%2Flayout%2F%23acticap-64ch-standard2mat&data=01%7C01%7Celizabeth.1.shephard%40kcl.ac.uk%7C884e368c63dd4f5a176b08d70fb9199c%7C8370cf1416f34c16b83c724071654356%7C0&sdata=jN2AvJIsXuhjM%2Fi4vSPu%2BmHdVo%2FTxcuUSpR3Gq7YF18%3D&reserved=0" id="gmail-m_-4193349214764970044LPlnk123377" class="gmail-m_-4193349214764970044OWAAutoLink" target="_blank">http://www.fieldtriptoolbox.org/template/layout/#acticap-64ch-standard2mat</a>>.</div>
<div><br>
</div>
<div>However, I don't know how can I do this and I'm not sure if this would be the proper way to solve this.</div>
<div><br>
</div>
<div>Can someone please tell me:</div>
<div>1. If this solution would be valid or if there is any other way to solve this?</div>
<div>2. In case it is valid, do I have do I have to download the "easycap-M1.txt" file, convert it into a ".m" file and then edit it? </div>
<div><br>
</div>
<div><br>
</div>
<div>Thank you in advance!</div>
<div><br>
</div>
<div>Carolina Ogawa</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>

</blockquote></div>