<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
------------------------------<br>
<br>
Message: 2<br>
Date: Fri, 16 Dec 2016 12:13:39 +0000<br>
From: "Bastiaansen, Marcel" <<a href="mailto:Bastiaansen4.M@nhtv.nl">Bastiaansen4.M@nhtv.nl</a>><br>
To: "'<a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a>'" <<a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a>><br>
Subject: [FieldTrip] phase distribution<br>
Message-ID:<br>
        <<a href="mailto:AE9D26956CEFAE42A45BC46C51E0C6655C560E3F@Exch-Db01.dom1.nhtv.nl">AE9D26956CEFAE42A45BC46C51E0C<wbr>6655C560E3F@Exch-Db01.dom1.<wbr>nhtv.nl</a>><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Dear Fieldtrippers,<br>
<br>
I want to analyze data from an EEG experiment in which I split trials from one participant in two sets based on some response criterion.<br>
I want to know how (absolute) phase at a particular point in time (say t=0) is distributed within each set of trials, and whether there is (on average) a difference in absolute phase between the two sets of trials.<br>
I have found a matlab toolbox (circ_stats) that allows me to plot circular phase data, do tests on phase distributions, and to compare two distributions, but I would like to use Fieldtrip to extract the instantaneous phase angles (radians or degrees) from the single trials for a given point in time using multitapers (which I believe is the preferred method for this, right?).<br>
Browsing through the Fieldtrip discussion archive, I haven't been able to find a dedicated Fieldtrip function for that, but I am sure that functions such as  ft_mtmconvol do compute absolute phase at some point...<br>
Can anyone give me advise on how to achieve my goal?<br>
<br>
Thanks,<br>
Marcel.<br>
<br>
<br>
***<br>
Dr Marcel C.M. Bastiaansen<br>
Lecturer and researcher in quantitative research methods<br>
Academy for Leisure & Academy for Tourism<br>
NHTV Breda University of Applied Sciences<br>
Visiting adress:<br>
Room C1.011, Academy for Leisure<br>
Archimedesstraat 17,<br>
4816 BA, Breda<br>
Phone: <a href="tel:%2B31%2076%20533%202869" value="+31765332869">+31 76 533 2869</a><br>
Email: <a href="mailto:bastiaansen4.m@nhtv.nl">bastiaansen4.m@nhtv.nl</a><mailto:<a href="mailto:bastiaansen4.m@nhtv.nl"><wbr>bastiaansen4.m@nhtv.nl</a>><br>
<br>
And<br>
<br>
Department of Cognitive Neuropsychology<br>
Tilburg School of Social and Behavioral Sciences<br>
Tilburg University<br>
Visiting address:<br>
Room S217, Simon building<br>
Warandelaan 2<br>
5000 LE Tilburg<br>
Email: <a href="mailto:M.C.M.Bastiaansen@uvt.nl">M.C.M.Bastiaansen@uvt.nl</a><<wbr>mailto:<a href="mailto:M.C.M.Bastiaansen@uvt.nl">M.C.M.Bastiaansen@uvt.<wbr>nl</a>><br>
<br>
publications<<a href="https://scholar.google.nl/citations?hl=en&view_op=list_works&gmla=AJsN-F5MJ8q_0925xM3GL1HwKMWkGTQGnfGN0OfdskoTXoB9cHMSkWFYZRW6Bp8iwksfnsTgAKylZkZ6NqoYRJj6skmxruDP8Q&user=u4iWSLoAAAAJ" rel="noreferrer" target="_blank">https://scholar.<wbr>google.nl/citations?hl=en&<wbr>view_op=list_works&gmla=AJsN-<wbr>F5MJ8q_<wbr>0925xM3GL1HwKMWkGTQGnfGN0Ofdsk<wbr>oTXoB9cHMSkWFYZRW6Bp8iwksfnsTg<wbr>AKylZkZ6NqoYRJj6skmxruDP8Q&<wbr>user=u4iWSLoAAAAJ</a>><br>
linked-in<<a href="https://www.linkedin.com/profile/view?id=AAMAAAHu0sABfdcxLjPvTgFyfucAZvQQcwfJXi0&trk=hp-identity-name" rel="noreferrer" target="_blank">https://www.<wbr>linkedin.com/profile/view?id=<wbr>AAMAAAHu0sABfdcxLjPvTgFyfucAZv<wbr>QQcwfJXi0&trk=hp-identity-name</a><wbr>><br>
***<br>
</blockquote></div><br>hi Marcel,<br><br>It seems you want to compute the clustering of phases across trials (a.k.a. inter-trial phase clustering, ITPC). From what I've seen in Fieldtrip there is no direct way to compute the ITPC, but it can be easily done with abs(mean(exp(1i*phaseTimeSeries))) once you have the phase time series. You can apply the function 'angle' to your analytic signal which is obtained with any of the method that Fieldtrip has to decompose your signal (see <a href="http://www.fieldtriptoolbox.org/tutorial/timefrequencyanalysis">http://www.fieldtriptoolbox.org/tutorial/timefrequencyanalysis</a>) and by setting the parameter cfg.output = 'fourier' when you call the ft_freqanalysis function (see <a href="http://www.fieldtriptoolbox.org/reference/ft_freqanalysis">http://www.fieldtriptoolbox.org/reference/ft_freqanalysis</a>),<br><br>From what I know, please correct if I'm wrong, there is no preferred method to do this. Multitaper is the preferred method to analyse fast oscillations like gamma, but for ITPC any method that allow you to have phase time series is enough,<br><br>Finalize for the statistical analysis, this can be done using non-parametric methods, and these functions are indeed implemented in Fieldtrip (see <a href="http://www.fieldtriptoolbox.org/tutorial/eventrelatedstatistics">http://www.fieldtriptoolbox.org/tutorial/eventrelatedstatistics</a>) so there must be a way to do this, otherwise you can implement your own permutation tests in Matlab,<br><br>The book (chapter 19 and 34) and web of Mike Cohen (<a href="http://mikexcohen.com/">http://mikexcohen.com/</a>) are excellent resources to implement all these calculations,<br><br>best,<br>Jose<br></div></div>