[FieldTrip] Using ft_crossfrequencyanalysis
Vivekananda, Umesh
u.vivekananda at ucl.ac.uk
Wed Jun 16 21:32:13 CEST 2021
Hi Jan-Mathijs
Apologies Ill explain a bit more. Im trying to look at hippocampal - prefrontal coupling. I am using intracranial EEG data. The exact error in yellow is this 'Warning: The field cfg.chanlow is forbidden, it will be removed from your configuration
The field cfg.chanhigh is forbidden, it will be removed from your configuration'
It is thrown when i perform the CFC command (in red)
cfg.method = 'plv';
cfg.keeptrials = keepTrials;
cfg.chanlow = cueHPCPower.label; %an individual hippocampal channel
cfg.chanhigh = cuePFCPower.label; %an individual prefrontal channel
cfg.freqlow = phaseBand;
cfg.freqhigh = ampBand;
CFC = ft_crossfrequencyanalysis(cfg,cueHPCPower,cuePFCPower);
As a result the output of the CFC command does not ascribe a channel, and the crsspctrm is not calculated looking a bit like
label 0x1 cell
crsspctrm []
Im currently using fieldtrip-20210413 (which I downloaded for the excellent course Donders did!)
I hope that makes more sense
Many thanks
Umesh
________________________________
From: fieldtrip <fieldtrip-bounces at science.ru.nl> on behalf of Schoffelen, J.M. (Jan Mathijs) via fieldtrip <fieldtrip at science.ru.nl>
Sent: 16 June 2021 19:24
To: FieldTrip discussion list <fieldtrip at science.ru.nl>
Cc: Schoffelen, J.M. (Jan Mathijs) <janmathijs.schoffelen at donders.ru.nl>
Subject: Re: [FieldTrip] Using ft_crossfrequencyanalysis
Hi Umesh,
What was the error? 'cfg.chanlow and cfg.chanhigh were forbidden variables’?
Please paste the complete error as you get it on the screen, as well as the stack (i.e. the line at which the error is thrown).
Also, what is the version of FieldTrip you have been using?
We need a little bit more information to be able to think along.
Good luck,
Jan-Mathijs
On 16 Jun 2021, at 17:38, Vivekananda, Umesh via fieldtrip <fieldtrip at science.ru.nl<mailto:fieldtrip at science.ru.nl>> wrote:
Dear team
I have used this function in the past successfully when considering within channel analysis. However when I used the function again but across channels like so
cfg.method = 'plv';
cfg.keeptrials = keepTrials;
cfg.chanlow = cueHPCPower.label;
cfg.chanhigh = cuePFCPower.label;
cfg.freqlow = phaseBand;
cfg.freqhigh = ampBand;
CFC = ft_crossfrequencyanalysis(cfg,cueHPCPower,cuePFCPower);
I got an error stating cfg.chanlow and cfg.chanhigh were forbidden variables. I had derived a fourier spectrum for HPC and PFC channel separately in order to compute individual channel CFC before averaging. Any help would be much appreciated
Thanks
Umesh
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=04%7C01%7C%7Cb924a92bdd5141e88aeb08d930f4b4af%7C1faf88fea9984c5b93c9210a11d9a5c2%7C0%7C0%7C637594649834203108%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=XWEJuEiZfT4Bz5rt3g24xjjvySsFvQdoYnr8bOMMQjk%3D&reserved=0>
https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!s15pfcIalzeG1LxQnj1prFk9nmTQ0RpcOTqzavjhZrbWASncFoXWoEHBW_40_XhqkcEEGBP2$<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202__%3B!!HJOPV4FYYWzcc1jazlU!s15pfcIalzeG1LxQnj1prFk9nmTQ0RpcOTqzavjhZrbWASncFoXWoEHBW_40_XhqkcEEGBP2%24&data=04%7C01%7C%7Cb924a92bdd5141e88aeb08d930f4b4af%7C1faf88fea9984c5b93c9210a11d9a5c2%7C0%7C0%7C637594649834208089%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=nFXAw5HlhDDT%2BVc24W0gbd7Rj%2FB594SwuryHM0P3ASg%3D&reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210616/6cebefcf/attachment.htm>
More information about the fieldtrip
mailing list