<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Dear Myrto,
<div class=""><br class="">
</div>
<div class="">I think that what you ask is ‘how do I create a (set of) virtual channel(s)?’</div>
<div class=""><br class="">
</div>
<div class="">There is no dedicated documentation for this  yet. First of all, I think that you need to look into source reconstruction. After computing the forward model (a.k.a. as the leadfields) you need to use this in order to ’source reconstruct’ the channel
 level data, using some sourceanalysis method. More precisely, you need to compute an 'inverse operator’ which can be used to left multiply your sensor data with, in order to obtain single epoch time course of the ‘virtual channels’.</div>
<div class=""><br class="">
</div>
<div class="">The virtual channels can be computed using the ft_virtualchannel function. Yet, in order to be able to use this, you need to use ft_sourceanalysis first.</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 9 Jun 2021, at 16:38, Myrto Mantziara via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">
<span lang="EN-US" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; line-height: normal;" class="">Dear Fieldtrip Team,</span><span lang="EN-US" class=""><o:p class=""><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; line-height: normal;" class=""><span class="Apple-converted-space"> </span><br class="">
</span></o:p></span>
<p class="MsoNormal" style="margin: 0in 0in 8pt; line-height: 17.1200008392334px; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" class=""><o:p class=""><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; line-height: normal;" class=""><br class="">
</span></o:p></span></p>
<div style="margin: 0px 0in; font-size: 12pt; font-family: "Times New Roman", serif;" class="">
<span style="font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;" class="">I would like to extract epoched EEG data from dipole sources in a Region of Interest (ROI). For the forward solution in the source analysis, I reconstructed the sources using
 the standard BEM headmodel (found in the Fieldtrip directory: fieldtrip-20160814\template\headmodel\standard_bem.mat) and computed the leadfield. Now I would like to apply the dipole leadfield weights to extract epoched time-series from dipoles of interest,
 e.g., all dipoles located in the primary motor cortex. In other words, I would like to examine the epoched data in source space (amplitude for each dipole for MVPA analysis, and time-frequency data averaged across the ROI).</span><span style="font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;" class=""><o:p class=""><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><span class="Apple-converted-space"> </span></span></o:p>Also,
 we are not sure which leadfield weight to include (dipole orientations).<span class="Apple-converted-space"> </span><br class="">
</span></div>
<div style="margin: 0px 0in; font-size: 12pt; font-family: "Times New Roman", serif;" class="">
<span style="font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;" class="">Last, do you have a function that does such weighting correctly to achieve orthogonalization in the contribution of other sources (e.g., nearby to the ROI sources) in order
 to increase specificity.</span><span style="font-size: 10.5pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""> </span></o:p></span></div>
<div style="margin: 0px 0in; font-size: 12pt; font-family: "Times New Roman", serif;" class="">
<span style="font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;" class="">Perhaps there is an example code or other functions which I have not come across.<span class="Apple-converted-space"> </span><br class="">
</span></div>
<div style="margin: 0px 0in; font-size: 12pt; font-family: "Times New Roman", serif;" class="">
<span style="font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;" class=""><br class="">
</span></div>
<div style="margin: 0px 0in; font-size: 12pt; font-family: "Times New Roman", serif;" class="">
<span style="font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;" class="">We would appreciate your help.</span><span style="font-size: 10.5pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><span class="Apple-converted-space"> </span><br class="">
</span></o:p></span></div>
<div style="margin: 0px 0in; font-size: 12pt; font-family: "Times New Roman", serif;" class="">
<span style="font-size: 10.5pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><br class="">
</span></o:p></span></div>
<div style="margin: 0px 0in; font-size: 12pt; font-family: "Times New Roman", serif;" class="">
<span style="font-size: 10.5pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""><br class="">
</span></o:p></span></div>
<p class="MsoNormal" style="margin: 0in 0in 6pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">Regards,</span><span lang="EN-US" class=""><o:p class=""><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""> </span></o:p></span></p>
<p class="MsoNormal" style="margin: 0in 0in 6pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">Myrto Mantziara</span><span lang="EN-US" class=""><o:p class=""><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class=""> </span></o:p></span></p>
<br class="">
</div>
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">
<br class="">
</div>
<div id="Signature" class="">
<div class="">
<div class=""></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">
--------------------<br class="">
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">
<span style="font-size: 11pt; font-family: "Calibri Light", "Helvetica Light", sans-serif;" class="">Myrto Mantziara</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">
<div class=""><span style="font-size: 11pt; font-family: "Calibri Light", "Helvetica Light", sans-serif;" class="">PhD Candidate</span></div>
<div class=""><span style="font-size: 11pt; font-family: "Calibri Light", "Helvetica Light", sans-serif;" class="">School of Psychology</span></div>
<div class=""><span style="font-size: 11pt; font-family: "Calibri Light", "Helvetica Light", sans-serif;" class="">Bangor University</span></div>
<div class=""><span style="font-size: 11pt; font-family: "Calibri Light", "Helvetica Light", sans-serif;" class="">United Kingdom</span></div>
<div class=""><span style="font-size: 11pt; font-family: "Calibri Light", "Helvetica Light", sans-serif;" class="">Email:<span class="Apple-converted-space"> </span><a href="mailto:m.mantziara@bangor.ac.uk" class="">m.mantziara@bangor.ac.uk</a></span></div>
<div class=""><span style="font-size: 11pt; font-family: "Calibri Light", "Helvetica Light", sans-serif;" class="">Lab Website:<span class="Apple-converted-space"> </span><a href="http://sites.google.com/site/kkornysheva/" class="">sites.google.com/site/kkornysheva/</a></span></div>
<div class=""><span style="font-size: 11pt; font-family: "Calibri Light", "Helvetica Light", sans-serif;" class="">School Social Media:<span class="Apple-converted-space"> </span><a href="https://urldefense.com/v3/__https://www.bangor.ac.uk/psychology/social-media.php.en__;!!HJOPV4FYYWzcc1jazlU!spdDU_sPLbu4E_re5ebsxhNIUhlA9vNHlfEoKCqwt9swcj-gpRkjHNMCMdLhTV_S1dNdkGfA$" class="">https://www.bangor.ac.uk/psychology/social-media.php.en</a></span></div>
<br class="">
</div>
</div>
</div>
</div>
<p style="margin-top: 0px; margin-bottom: 0px; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
 </p>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; letter-spacing: normal; orphans: auto; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<tbody class="">
<tr class="">
<td valign="top" style="padding: 15px 0px;" class="">
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><strong class="">Mae croeso i chi gysylltu gyda'r Brifysgol yn Gymraeg neu Saesneg</strong></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><strong class="">You are welcome to contact the University in Welsh or English</strong></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><strong class="">Rhif Elusen Gofrestredig 1141565 - Registered Charity No. 1141565</strong></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn
 y neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar unwaith a dilewch y neges. Os na fwriadwyd anfon y neges atoch chi, rhaid i chi beidio a defnyddio, cadw neu ddatgelu unrhyw wybodaeth a gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo
 i'r sawl a'i hanfonodd yn unig ac nid yw o anghenraid yn cynrychioli barn Prifysgol Bangor. Nid yw Prifysgol Bangor yn gwarantu bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu 100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol
 yn nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa Cyllid Prifysgol Bangor.</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">This email and any attachments may contain confidential material and is solely for the use of the intended recipient(s). If you have received this email in error, please notify the sender immediately
 and delete this email. If you are not the intended recipient(s), you must not use, retain or disclose any information contained in this email. Any views or opinions are solely those of the sender and do not necessarily represent those of Bangor University.
 Bangor University does not guarantee that this email or any attachments are free from viruses or 100% secure. Unless expressly stated in the body of the text of the email, this email is not intended to form a binding contract - a list of authorised signatories
 is available from the Bangor University Finance Office.</div>
</td>
</tr>
</tbody>
</table>
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">fieldtrip
 mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<a href="https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!spdDU_sPLbu4E_re5ebsxhNIUhlA9vNHlfEoKCqwt9swcj-gpRkjHNMCMdLhTV_S1a-VbRy_$" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!spdDU_sPLbu4E_re5ebsxhNIUhlA9vNHlfEoKCqwt9swcj-gpRkjHNMCMdLhTV_S1a-VbRy_$</a><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class=""></span></div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>