[FieldTrip] About connectivity and ft_topoplotCC
Christian Mista
cmista at bioingenieria.edu.ar
Wed Dec 13 14:16:17 CET 2017
Hi all,
I'm starting with EEG analysis and Fiedltrip, and I'll would like to plot
topographical maps of the connectivity (using imaginary part of
coherence). I tried ft_topoplotCC to make a connection line/arrow graph,
but I think I'm doing something wrong because the graph at 10 hz seems to
be the same at 50 hz (attached some images). In addition, I was wondering
if there is any way to set a threshold, so only fewer lines are plotted in
the connection map. Below the code I'm using in matlab.
%CODE
%calculate coherence
cfg = [];
cfg.method = 'mtmfft';
cfg.taper = 'hanning';
%connectivity analysis needs power and phase -> 'pownadcsd'
cfg.output = 'powandcsd';
% windows of frequency of interest foilim
cfg.foilim = [1 60];
freq1 = ft_freqanalysis(cfg, data);
%calculating the imaginary part of the coherence
cfg = [];
cfg.method = 'coh';
cfg.complex = 'absimag';
conn1 = ft_connectivityanalysis(cfg, freq1);
%The conectome
%figure;imagesc(conn1.cohspctrm);
cfg = [];
%my layout
cfg.layout = layout;
cfg.foi = 10;
ft_topoplotCC(cfg, conn1)
cfg = [];
cfg.layout = layout;
cfg.foi = 50;
ft_topoplotCC(cfg, conn1)
Best regards / Cordiales saludos
Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20171213/1e25f1a0/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: connections10Hz.jpg
Type: image/jpeg
Size: 35441 bytes
Desc: not available
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20171213/1e25f1a0/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: connections50Hz.jpg
Type: image/jpeg
Size: 37955 bytes
Desc: not available
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20171213/1e25f1a0/attachment-0003.jpg>
More information about the fieldtrip
mailing list