[FieldTrip] c61b

Dr. Stephan Frisch stephan.frisch at uni-ulm.de
Sun Feb 12 19:36:14 CET 2023


Guten Tag, 
Hi, 

Ich bin vom 05.02.2023 bis 10.02.2023 nicht im Büro und kann die Emails nur sehr unregelmäßig lesen und beantworten. Die Emails werden auch nicht weitergeleitet.  

I am out of the office from 05.02.2023 to 10.02.2023 and can only read and answer emails very sporadically. The emails are also not being forwarded.  

Viele Grüße / Best regards
Stephan Frisch


Am 12.02.2023 um 08:28 schrieb Dr. Stephan Frisch via fieldtrip <fieldtrip at science.ru.nl>:

> Guten Tag, 
> Hi, 
> 
> Ich bin vom 05.02.2023 bis 10.02.2023 nicht im Büro und kann die Emails nur sehr unregelmäßig lesen und beantworten. Die Emails werden auch nicht weitergeleitet.  
> 
> I am out of the office from 05.02.2023 to 10.02.2023 and can only read and answer emails very sporadically. The emails are also not being forwarded.  
> 
> Viele Grüße / Best regards
> Stephan Frisch
> 
> 
> Am 08.02.2023 um 11:41 schrieb Schoffelen, J.M. (Jan Mathijs) via fieldtrip <fieldtrip at science.ru.nl>:
> 
> Dear Anqi,
> 
> I can imagine indeed that (the rather old code of) ft_freqgrandaverage does not deal elegantly with subject-specific missing channel data. Indeed, when I read the code at https://urldefense.com/v3/__https://github.com/fieldtrip/fieldtrip/blob/master/ft_freqgrandaverage.m__;!!HJOPV4FYYWzcc1jazlU!6pEJ_Z3h2A5uvBdERgyHIq3t1gBOzmXNA2pGGt19lyv9k4CFB9lvqpSHOzKLbZc3AVi9TCeJ9X63YC38VzEvaQDJXwoAhZOCVw$ there is no mention of a cfg.nanmean option in the help documentation of the function, nor can I find anything relating to nans in the code itself. It is still on the to-do list to replace the function’s code by a more up-to-date functionality, possibly using a sequence of calls to ft_appendfreq (using cfg.appenddim = ‘rpt’), and then a call to ft_selectdata (in case cfg.keepindividual=’no’), with cfg.avgoverrpt = ‘yes’, and using an optional cfg.nanmean = ‘yes’. I don’t have time to work on this myself anytime soon, but would be happy to guide you through the process in making the required changes to the code yourself. The best way to get started would be to create a new issue on the fieldtrip github repository, and then start working towards a mergable pull request in an issue branch of your own forked copy of the fieldtrip repo (https://urldefense.com/v3/__https://www.fieldtriptoolbox.org/development/git/__;!!HJOPV4FYYWzcc1jazlU!6pEJ_Z3h2A5uvBdERgyHIq3t1gBOzmXNA2pGGt19lyv9k4CFB9lvqpSHOzKLbZc3AVi9TCeJ9X63YC38VzEvaQDJXwoFtzH9uQ$ ).
> 
> Looking forward to push this forward.
> 
> Best wishes,
> Jan-Mathijs
> 
> 
> On 6 Feb 2023, at 09:12, Lei, A. (Anqi) via fieldtrip <fieldtrip at science.ru.nl> wrote:
> Dear FieldTrip list,
>  
> I have a quick question about using “ft_freqgrandaverage” to calculate a group average of powerspectrum while ignoring missing channels across subjects.
>  
> Some subjects in my dataset have bad channels so I dropped these channels and replaced their values with NaNs instead of doing interpolation. However, “ft_freqgrandaverage” doesn’t seem to ignore these NaNs while calculating the grand mean so I ended up with a lot of missing channels in my group average – is there a way for the function to ignore channels with NaNs? (I tried to use cfg.nanmean = 'yes' but it didn’t work).
>  
> Thank you!
>  
> Best,
> Anqi 
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!66mu5bmMHKtOoPWBY9-mb7-6gEfnMaiO829WRAA8vv14awdcOZ6uFK0h-Ck9yMlzTOaaz5HcOn4_m2ZvwRlYhU_wjp25TPA75_8YGA$
> 
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!6pEJ_Z3h2A5uvBdERgyHIq3t1gBOzmXNA2pGGt19lyv9k4CFB9lvqpSHOzKLbZc3AVi9TCeJ9X63YC38VzEvaQDJXwqQ3wABsA$ 
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!8d_iX7LgjlN2_yLICKwVFMjQUIVoSigx38jAkht3p2F42KlpQ8-Jfzc0avOpgSUtJkCejyZKP87aam1SbTRzy0BiWhXya0EhBg$ 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 4339 bytes
Desc: not available
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20230212/db9fd3ee/attachment.bin>


More information about the fieldtrip mailing list