<html xmlns:v="urn:schemas-microsoft-com:vml" 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=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Courier;
        panose-1:2 7 4 9 2 2 5 2 4 4;}
@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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi Natalia,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">How are you? I didn’t know you were fieldtripin’, too.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I can’t really tell if your approach is correct, but I have some comments. First, to me it seems that the imaginary part of csd is not enough to
 calculate PLV. But then, I don’t know the details of how you compute it. Second, the 3 orientations issue is commonly tackled by singular value decomposition rather than by averaging (see e.g. beamformer_dics.m). One can use svd to compute the orientation
 of maximum power, and I think one could adapt the code, e.g. to get the orientation of maximum phase difference.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">One straight-forward alternative I know of, is to extract source level time courses using the LCMV beamfomer. You can set cfg.projectmom=’yes’
 to only get the direction of max. power. Then you could use ft_connectivityanalysis with cfg.method=’plv’ to get the phase locking values.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hope this helps,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Jan
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> fieldtrip-bounces@science.ru.nl [mailto:fieldtrip-bounces@science.ru.nl]
<b>Im Auftrag von </b></span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Natalia Zaretskaya<br>
<b>Gesendet:</b> Dienstag, 1. April 2014 09:20<br>
<b>An:</b> fieldtrip@science.ru.nl<br>
<b>Betreff:</b> [FieldTrip] PLV with DICS beamformer<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Dear FieldTrip experts,<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I would like to be able to compute the phase-locking value (<span style="font-family:"Arial","sans-serif";background:white">Lachaux, 1999</span>) using source data derived from disc beamformer.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Right now I perform ft_sourceanalysis with <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">cfg.method = ‘dics’;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">cfg.refdip = [x y z];<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">cfg.rawtrial = ‘yes’; <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">cfg.keepcsd = ‘yes’;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">cfg.grid.filter = source.avg.filter; %  precomputed common filter for two conditions<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">and then use the imaginary part of the single-trial cross-spectral densities to compute PLV “by hand”. Cross-spectra at each position have a 3x3 format, so I compute the PLV for each dipole orientation pair and then average.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I was wondering whether 1) the above procedure is technically correct and 2) whether there is a better, more efficient way to do it (I assume plv can be derived at the same step where source.avg.coh is computed?).<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Many thanks in advance!<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Best regards,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Natalia Zaretskaya<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">---<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Dr. Natalia Zaretskaya<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Centre for Integrative Neuroscience<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Vision and Cognition Lab (AG Bartels) <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">72076 Tübingen, Germany<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="mailto:natalia.zaretskaya@cin.uni-tuebingen.de">natalia.zaretskaya@cin.uni-tuebingen.de</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">phone: +49 7071 2989032<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:Courier;color:#B245F3"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:Courier"><o:p> </o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>