<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:3.0cm 2.0cm 3.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="DA" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;mso-fareast-language:EN-US">Dear Anna-Marie<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;mso-fareast-language:EN-US">If your EEG layout is standard 10-20, you can use the EEG1020.lay or EEG1010.lay template layout files. When you  plot data, it will only use the channels that are in
 your data. It does not matter that the template has more names. It will include the channels you have in your data, but not the extra channels in the layout.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;mso-fareast-language:EN-US">You create the layout for your data with ft_prepare_layout, like this:<br>
<br>
cfg = []<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;mso-fareast-language:EN-US">cfg.layout = ‘eeg1010.lay’ % for example<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;mso-fareast-language:EN-US">myLayout = ft_prepare_layout(cfg, myData)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;mso-fareast-language:EN-US">The output should be the layout of for your specific setup. However, if the extra channels (AFz, PO9, etc) are channels you want to remove from your data, you need to
 use ft_selectdata to remove them. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;mso-fareast-language:EN-US">To restore the time course of the reference electrode, you need to do this while you re-reference the EEG data. The reference is usually not saved in the EEG files as
 it per definition is zero. But since referencing is a linear operation, it is easy to “restore” the activity at the reference site. It is explained in details in this tutorial:
<a href="https://www.fieldtriptoolbox.org/example/rereference/">https://www.fieldtriptoolbox.org/example/rereference/</a>. You cannot do that for the ground electrode though.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;mso-fareast-language:EN-US">Best regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;mso-fareast-language:EN-US">Mikkel<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">Fra:
</span></b><span style="font-size:12.0pt;color:black">fieldtrip <fieldtrip-bounces@science.ru.nl> på vegne af Anna-Maria via fieldtrip <fieldtrip@science.ru.nl><br>
<b>Dato: </b>onsdag, 27. april 2022 kl. 13.19<br>
<b>Til: </b>fieldtrip@science.ru.nl <fieldtrip@science.ru.nl><br>
<b>Cc: </b>Strinzel@students.uni-marburg.de <Strinzel@students.uni-marburg.de><br>
<b>Emne: </b>[FieldTrip] add channels on an existing template for EEG layout<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><br>
Hello everyone,<br>
<br>
I am using FieldTrip to analyse my EEG data recorded with a Brain  <br>
Products system. I recorded EEG data from 32 electrodes (Fp1, Fp2, F7,  <br>
F3, Fz, F4, F8, FT9, Fc5, Fc1, Fc2, Fc6, FT10, T7, C3, Cz, C4, T8,  <br>
TP9, Cp5, Cp1, Cp2, Cp6, TP10, P7, P3, Pz, P4, P8, and Oz, plus 2  <br>
ocular electrodes (O1 and O2), according to the extended 10/20  <br>
international system) with ground located between Fp1 and Fp2 and  <br>
reference electrode located on FCz.<br>
I can't find a layout like discribed above on the fieldtrip webpage  <br>
<a href="http://fieldtrip.fcdonders.nl/template/layout">http://fieldtrip.fcdonders.nl/template/layout</a> but I know that 
<br>
fieldtrip also provide the possibility to prepare a layout with the  <br>
ft_prepare_layout  function.<br>
<br>
How can I add channels on an already existing template like the  <br>
easycapM23.mat template?<br>
I want to add Oz and the ground, and reference electrode and I want to  <br>
remove the following channels: AFz, PO9, O1, O1, PO10.<br>
<br>
Thanks<br>
Anna-Maria<br>
<br>
<br>
<br>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202">https://doi.org/10.1371/journal.pcbi.1002202</a><o:p></o:p></span></p>
</div>
</div>
</body>
</html>