[FieldTrip] Freq baseline correction to separately recorded resting state file

Schoffelen, J.M. (Jan Mathijs) janmathijs.schoffelen at donders.ru.nl
Fri Apr 26 13:33:12 CEST 2024


Hi Matthew,

FieldTrip does not provide a ready-made function to do this. Yet, with a little bit of coding it can be done. You would need to make an estimate of the power (using ft_freqanalysis) of your baseline segments (ideally using the same parametrization of the (time-)frequency spectrum as you use for the data of interest. Then you’d need to average the baseline estimate across time (use ft_selectdata with cfg.avgovertime = ‘yes’) for that, and then you could use ft_math to do the baseline correction (after you have expanded the chanxfreq baseline powerspctrm back into a chanxfreqxtime matrix (repmat(freq.powspctrm, [1 1 numel(otherfreq.time)]);), either by subtracting the baseline power estimate, or do something more fancy.

Best wishes,
Jan-Mathijs




> On 22 Apr 2024, at 23:36, Matthew Mitchell via fieldtrip <fieldtrip at science.ru.nl> wrote:
>
> Dear Fieldtrip experts
> I am new to Fieldtrip and would very much appreciate insight on the below
>
> Instead of using the pre-stimulus interval for baseline correction after ft_freqanalysis, I would like to correct the post-stimulus segment to a separately recorded 2min resting state file (Biosemi) (recorded before an experiment).
> I am currently correcting the post stimulus segment to a [-2 -0.5] pre-stimulus period but I want to ascertain if this baseline period is 'clean' from the influence of the previous trial.
> any help is appreciated, thank you
>
> Matthew
>
>
>
>
> _______________________________________________
> fieldtrip mailing list
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C02%7Cfieldtrip%40science.ru.nl%7Ca071f2050c344709a7e908dc65e4a7eb%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638497279938970640%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=YtG0Ow9W5%2FCaNaWYkGi6Y5DWNNhv4GakpvovyvW8sws%3D&reserved=0
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=05%7C02%7Cfieldtrip%40science.ru.nl%7Ca071f2050c344709a7e908dc65e4a7eb%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638497279944908217%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=UHG6U4Nb53dve4EsnxwX2iBYcLomcGs5Bd6eEEphVPg%3D&reserved=0




More information about the fieldtrip mailing list