[FieldTrip] Using ft_crossfrequencyanalysis

Vivekananda, Umesh u.vivekananda at ucl.ac.uk
Wed Jul 14 11:29:02 CEST 2021


Sorry this message went into my clutter, thank you Jan Mathijs I will look to see if the ft_checkconfig is there in the version of FT I use

Best

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: 17 June 2021 06:50
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

Umesh,

Thanks for your message. But unfortunately, things have not been clarified.

What we do know now, is that you get a warning, not an error.

Then my question is still: What function, and what line in the function is throwing the  warning?

I suspect that the version of the function you are using has a call to ft_checkconfig(cfg, ‘forbidden’, {‘chanlow’ ‘chanhigh’})

My (i.e. today’s) version of the function does not have this line. From the revision history I can see that the last change predates the date of the version that you mention (20210413), and even without this change the potential culprit function call was not there. I therefore suspect that you are using an older version, which could contain a bug.

Please ensure that you are using a sufficiently recent version of the code (this might be even already achieved by cleaning your matlab path) and try again.

Best wishes,

Jan-Mathijs




On 16 Jun 2021, at 21:32, Vivekananda, Umesh <u.vivekananda at ucl.ac.uk<mailto:u.vivekananda at ucl.ac.uk>> wrote:

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<mailto:fieldtrip-bounces at science.ru.nl>> on behalf of Schoffelen, J.M. (Jan Mathijs) via fieldtrip <fieldtrip at science.ru.nl<mailto:fieldtrip at science.ru.nl>>
Sent: 16 June 2021 19:24
To: FieldTrip discussion list <fieldtrip at science.ru.nl<mailto:fieldtrip at science.ru.nl>>
Cc: Schoffelen, J.M. (Jan Mathijs) <janmathijs.schoffelen at donders.ru.nl<mailto: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%2Furldefense.com%2Fv3%2F__https%3A%2F%2Feur01.safelinks.protection.outlook.com%2F%3Furl%3Dhttps*3A*2F*2Fmailman.science.ru.nl*2Fmailman*2Flistinfo*2Ffieldtrip%26data%3D04*7C01*7C*7Cb924a92bdd5141e88aeb08d930f4b4af*7C1faf88fea9984c5b93c9210a11d9a5c2*7C0*7C0*7C637594649834203108*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C1000%26sdata%3DXWEJuEiZfT4Bz5rt3g24xjjvySsFvQdoYnr8bOMMQjk*3D%26reserved%3D0__%3BJSUlJSUlJSUlJSUlJSUlJSUl!!HJOPV4FYYWzcc1jazlU!tBqTHEuJNmupcztk3H7hY7hEBO8skHWLWXFXsDYOVyTfG1qZwDoZWI7ROef2L7kc0UOF3gdlsmQtHKs%24&data=04%7C01%7C%7C643b846fe7f24c21f96208d93154ec4a%7C1faf88fea9984c5b93c9210a11d9a5c2%7C0%7C0%7C637595063088398885%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=mw%2BFTaA2GuacPfchNppv8uBoWhSeA909eg%2Ftdrj%2BzOk%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%2Feur01.safelinks.protection.outlook.com%2F%3Furl%3Dhttps*3A*2F*2Furldefense.com*2Fv3*2F__https*3A*2F*2Fdoi.org*2F10.1371*2Fjournal.pcbi.1002202__*3B!!HJOPV4FYYWzcc1jazlU!s15pfcIalzeG1LxQnj1prFk9nmTQ0RpcOTqzavjhZrbWASncFoXWoEHBW_40_XhqkcEEGBP2*24%26data%3D04*7C01*7C*7Cb924a92bdd5141e88aeb08d930f4b4af*7C1faf88fea9984c5b93c9210a11d9a5c2*7C0*7C0*7C637594649834208089*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C1000%26sdata%3DnFXAw5HlhDDT*2BVc24W0gbd7Rj*2FB594SwuryHM0P3ASg*3D%26reserved%3D0__%3BJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSU!!HJOPV4FYYWzcc1jazlU!tBqTHEuJNmupcztk3H7hY7hEBO8skHWLWXFXsDYOVyTfG1qZwDoZWI7ROef2L7kc0UOF3gdlIRlADt4%24&data=04%7C01%7C%7C643b846fe7f24c21f96208d93154ec4a%7C1faf88fea9984c5b93c9210a11d9a5c2%7C0%7C0%7C637595063088408823%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=HLiILef7yELG4BtzfY%2FqqWAMvsUVNmVYYaiVaws11Ik%3D&reserved=0>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210714/91c09b6e/attachment.htm>


More information about the fieldtrip mailing list