[FieldTrip] Compute Time-Frequency Granger Causality with ft_connectivityanalysis

Hähnke, Daniel daniel.haehnke at tum.de
Mon Aug 8 11:51:08 CEST 2016


Dear Laetitia,

I think I had this issue before and it was caused by a bug in the fieldtrip version I was using. What version are you using?

Best,

Daniel
--
Daniel Hähnke
PhD student

Technische Universität München
Institute of Neuroscience
Translational NeuroCognition Laboratory
Biedersteiner Straße 29, Bau 601
80802 Munich
Germany

Email: daniel.haehnke at tum.de<mailto:daniel.haehnke at tum.de>
Phone: +49 89 4140 3356

On 08.08.2016, at 11:36, laetitia.lalla at inserm.fr<mailto:laetitia.lalla at inserm.fr> wrote:

Hello fieldtrippers,
first of all, thanks a lot for this collaborative mailing list. It helped me a lot in the past and i hope you will be able to help me today !

I succesfully implemented the spectral granger causality thanks to this FieldTrip tutorial : http://www.fieldtriptoolbox.org/tutorial/connectivityextended. Now I'd like to compute a Time-Frequency Map of my granger causality. Hence, I used ft_freqanalysis with cfg.method  = 'mtmconvol' and cfg.output  = 'powandcsd' and the minimal code
>cfg=[];
>cfg.method='granger';
>granger=ft_connectivityanalysis(cfg, freq);
to compute the granger causality.
However, when I run this code, Matlab bugs and stays "busy" for a while until I terminate it, with the following error message :

Operation terminated by user during ft_checkdata>fixcsd (line 1255)

In ft_checkdata (line 797)
    data = fixcsd(data, cmbrepresentation, channelcmb);

In ft_checkdata>fixcsd (line 1351)
  data = ft_checkdata(data, 'cmbrepresentation', 'full');

In ft_checkdata (line 797)
    data = fixcsd(data, cmbrepresentation, channelcmb);

In ft_connectivityanalysis (line 392)
          data = ft_checkdata(data, 'cmbrepresentation', 'full');

I can see in the help of the function checkdata the following :  "cmbrepresentation  = sparse, full (applies to covariance and cross-spectral density)". But I don't really understand what "cmbrepresentation" do ... Maybe someone who had a similar problem in the past can help me ? I think I'm missing some optional arguments that I should add.

Thanks a lot for your help.

Regards,

Laetitia Lalla
PhD student in INMED, Marseille, France
_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl<mailto:fieldtrip at donders.ru.nl>
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20160808/4e19b208/attachment.html>


More information about the fieldtrip mailing list