[FieldTrip] ft_connectivity_laggedcoherence

Schoffelen, J.M. (Jan Mathijs) jan.schoffelen at donders.ru.nl
Thu May 17 09:26:00 CEST 2018

Dear Jose,
As far as I know, this code is not functional. The first author of the paper started the implementation in fieldtrip-style, but never finished it.
Also, note that the method itself is not strictly speaking a ‘connectivity’ measure, but it was intended to identify rhythmicity within signals.

Best wishes,
Jan Mathijs

J.M.Schoffelen, MD PhD
Associate PI, VIDI-fellow
Telephone: +31-24-3614793
Physical location: room 00.028
Donders Centre for Cognitive Neuroimaging, Nijmegen, The Netherlands

On 16 May 2018, at 18:17, Jose Herrero <jose.herrero66 at gmail.com<mailto:jose.herrero66 at gmail.com>> wrote:

dear Fieldtrippers,

I'm comparing different coherence methods including the fieldtrip method of lagged coherence.

running the code with...
cfg.method      = 'laggedcoherence';

lcoh                 = ft_connectivityanalysis(cfg, freq)
results on...
Error using ft_connectivityanalysis (line 375)

unknown method laggedcoherence

running the code with...
lcoh = ft_connectivity_laggedcoherence(cfg, freq)
results on:
In an assignment  A(:) = B, the number of elements in A and B must be the same.
Error in ft_connectivity_laggedcoherence (line 213)
      lagwidth(lagindx) = cfg.lag*cyclelength*lagindx;
as 'cfg.lag' is assigned a length equal to the length of the trial (1x15000, single trial).

if this method works, is it possible to use it to compute lagged coherence between an external signal (which oscillates at a freq <0.5Hz) and the iEEG brain signal?


fieldtrip mailing list
fieldtrip at donders.ru.nl<mailto:fieldtrip at donders.ru.nl>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20180517/8821407c/attachment-0002.html>

More information about the fieldtrip mailing list