[FieldTrip] averaging PLV connectivity across tapers at source level

Schoffelen, J.M. (Jan Mathijs) janmathijs.schoffelen at donders.ru.nl
Mon Dec 19 20:36:37 CET 2022


Hi Wen,

If the spatial dimension of your data is 240, I would expect a plvspctrm of 240x240, not a dimension of 45120x45120. There is something off with your data, analysis code, or with FieldTrip.

Best wishes,
Jan-Mathijs


On 19 Dec 2022, at 17:49, Wen Wen via fieldtrip <fieldtrip at science.ru.nl<mailto:fieldtrip at science.ru.nl>> wrote:

Dear Fieldtrip community,
Following the tutorial Whole brain connectivity and network analysis - FieldTrip toolbox<https://urldefense.com/v3/__https://www.fieldtriptoolbox.org/tutorial/networkanalysis/*connectivity-analysis-and-parcellation__;Iw!!HJOPV4FYYWzcc1jazlU!4TkJDtdBvQGYUtW0rb7OKIJAd4N0e50D3JbnNVbqVKwUjUPm6PVq7uibJh9_S9BAMGWFWXhh86CBS45_YI1-r-lhLnPEpJ7k2CL7lA$>, I calculated PLV connectivity at the source level from  ft_connectivityanalysis. The dimord of  'plvspctrm' is 'pos_pos_freq'. Based on the previous discussion here [FieldTrip] Question about Phase locking value (ru.nl)<https://mailman.science.ru.nl/pipermail/fieldtrip/2018-February/037885.html>, I understood that the 'pos' dimension of 'plvspctrm'  is the repetition of tapers multiplied by the number of dipoles.  In my case, there are 188 tapers and 240 dipoles (a coarse resolution), resulting in a connectivity matrix of 45120*45120.

I'd like to reshape the plvspctrm matrix and average across repetition of taper to obtain a connectivity matrix of ndipole*ndipole. However, I'm not sure how the 'pos' dimension is composed of 'rpttap' and 'ndipole'. Explanations are highly appreciated.

Thanks a lot!
Wen

<image.png>
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!4TkJDtdBvQGYUtW0rb7OKIJAd4N0e50D3JbnNVbqVKwUjUPm6PVq7uibJh9_S9BAMGWFWXhh86CBS45_YI1-r-lhLnPEpJ5NIhUwww$

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20221219/23709fce/attachment.htm>


More information about the fieldtrip mailing list