[FieldTrip] Problem with ft_connectivityanalysis
Schoffelen, J.M. (Jan Mathijs)
jan.schoffelen at donders.ru.nl
Fri Feb 8 12:03:47 CET 2019
Hi Pélagie,
As the error indicates, the data object that goes into ft_connectivityanalysis is not according to the function’s expectations.
In general, data objects need to be according to FieldTrip’s definition, and using a low-level reading function, such as edfread in your example, returns only a matrix, and not the associated metadata. If you want the data properly formatted, you should use ft_preprocessing.
e.g.:
cfg = [];
cfg.dataset = ’s01.edf’;
data = ft_preprocessing(cfg);
Next, if you want to compute the phase locking value (as is suggested by your call to ft_connectivityanalysis), you should first transform your epoched (!) time-domain data into the frequency domain by means of ft_freqanalysis.
Note that there’s a wealth of tutorial and getting started documentation on the website: www.fieldtriptoolbox.org<http://www.fieldtriptoolbox.org>, which should get you started.
Best wishes,
Jan-Mathijs Schoffelen
J.M.Schoffelen, MD PhD
Senior Researcher, VIDI-fellow - PI, language in interaction
Telephone: +31-24-3614793
Physical location: room 00.028
Donders Centre for Cognitive Neuroimaging, Nijmegen, The Netherlands
On 8 Feb 2019, at 11:51, pélagie Temgoua <pelagietemgoua at yahoo.fr<mailto:pelagietemgoua at yahoo.fr>> wrote:
Good morning their all.
i run ft_connectivityanalysis.m script with the following configuration :
[data, header] = edfread("s01.edf")
freq = 250
cfg = [];
cfg.method = 'plv';
stat = ft_connectivityanalysis(cfg, data)
and i get the following error:
Error using ft_checkdata (line 529)
This function requires 'freqmvar', 'freq' or 'source' data as input, see ft_datatype_freq or ft_datatype_source.
Error in ft_connectivityanalysis (line 271)
data = ft_checkdata(data, 'datatype', {'freqmvar' 'freq' 'source'});
need your help please.
Thank you.
Pélagie Flore TEMGOUA NANFACK
Tél : (00237) 675 39 66 33/ 696 20 51 02
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20190208/744ab6a7/attachment-0002.html>
More information about the fieldtrip
mailing list