Back to the main page.

Bug 2469 - ft_connectivityanalysis with method='powcorr_ortho' does not work with freq data

Status CLOSED WORKSFORME
Reported 2014-02-10 15:55:00 +0100
Modified 2014-03-06 15:36:06 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Linux
Importance: P5 normal
Assigned to: Jan-Mathijs Schoffelen
URL:
Tags:
Depends on:
Blocks:
See also:

Alexander Backus - 2014-02-10 15:55:47 +0100

Possibly revise ft_connectivityanalysis.m and ft_connectivity_powcorr_ortho.m to make the method robust for various datatypes. Attached is test case freq data. Thanks for the effort. Best, Alexander Backus


Alexander Backus - 2014-02-10 15:56:39 +0100

Created attachment 590 freq data


Jan-Mathijs Schoffelen - 2014-02-11 10:29:34 +0100

It looks like it works, provided the input to the function is OK. The data in the attachment contains only 1 'channel'. The function needs at least 2 channels to work. If I create a dummy second channel and call ft_connectivityanalysis with cfg.method = 'powcorr_ortho', it works for me. Can you confirm this? fdata.label{2,1} = strrep(fdata.label{1},'left','right'); fdata.fourierspctrm(:,2) = fdata.fourierspctrm(:,1).*exp(1i.*rand(8,1)); cfg = []; cfg.method = 'powcorr_ortho'; x = ft_connectivityanalysis(cfg, fdata);


Alexander Backus - 2014-02-11 15:53:15 +0100

(In reply to Jan-Mathijs Schoffelen from comment #2) My bad, I am working with a 20130630 frozen version of FieldTrip and forgot to check the latest working copy of ft_connectivityanalysis. Thread can be closed. Apologies :) Thanks for checking.