esi-neuroscience / syncopy

Systems Neuroscience Computing in Python: user-friendly analysis of large-scale electrophysiology data
BSD 3-Clause "New" or "Revised" License
44 stars 13 forks source link

Add `channelcmb` parameter to `connectivityanalysis` frontend #563

Closed tensionhead closed 10 months ago

tensionhead commented 1 year ago

In FT channelcmb takes a matrix with two (mutual exclusive?!) columns encoding the sender and receiver channel combinations for which to compute the connectivity measures. Especially for computational expensive algorithms like the PPC this would also save a lot of time, as only a subset of all possible channel combinations would be computed.

In FT output for coh and ppc is a 1d array, whereas for granger it is a matrix.. we always want a CrossSpectralData output, so for a subset of channel combinations (channel_i=[6,10], channel_j=[15, 16, 17]) this will give a rectangular array as result (tensor product of two unequal lengths vectors).

tensionhead commented 10 months ago

This is long done..