[FieldTrip] wPLI analysis pipeline
daniel.strahnen at uni-ulm.de
daniel.strahnen at uni-ulm.de
Thu Jun 13 19:10:21 CEST 2019
Dear Fieldtrippers,
I am a doctoral student and my research fields are local field potentials
(LFPs).
Therefore I wanted to calculate the weighted phase lag index which is
implemented in the Fieldtrip toolbox.
The data I want to analyse has the following structure:
data =
struct with fields:
label: {7×1 cell}
time: {1×5 cell}
trial: {1×5 cell}
fsample: 1000 % Seven channels and five trials
The code I produced for the wPLI is the following:
%% Freqanalysis to obtain the cross spectral density
cfg_freq = [];
cfg_freq.method = 'mtmfft';
cfg_freq.output = 'powandcsd';
cfg_freq.channel = {'CH2' 'CH4'};
cfg_freq.keeptrials = 'yes'; % do not return an average of all trials for
subsequent wpli analysis
cfg_freq.taper = 'dpss';
cfg_freq.tapsmofrq = 1;
cfg_freq.foilim = [0 48];
freq_data = ft_freqanalysis(cfg_freq, data);
%% WPLI analysis
cfg_conn = [];
cfg_conn.method = 'wpli_debiased';
wpli = ft_connectivityanalysis(cfg_conn, freq_data);
wpli = ft_checkdata(wpli, 'cmbrepresentation', 'full','datatype','freq');
I now have two questions:
1. Why are there negative results? I already saw this question in a
previous discussion but Im still not sure about the hundred percent correct
answer.
2. The results I get look rather strange at the first glance because
there are a lot of consecutive One-values which seems unrealistic to me.
Do you think my analysis has a mistake or the data is corrupted?
Thank you very much for your help in advance and best regards
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20190613/d248f9ec/attachment-0001.html>
-------------- next part --------------
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202
More information about the fieldtrip
mailing list