CoAxLab / niphlem

NeuroImaging-oriented Physiological Log Extraction for Modeling

Home Page:https://coaxlab.github.io/niphlem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Check sliding time window length in variation regressors

jrasero opened this issue · comments

A new argument time_window has been added to the Variation models, with a default value of 6 s (i.e. a 3*T_R window for a common T_R=2 s). What it does is to take that window length, center at each T_R time tick, to compute both the standard deviation in signal and the differences between events inside the window.

In this way, we have some flexibility and could avoid some problematic scenarios that happened due to the time window being defined in terms of the T_R. For example, for fast acquisitions like the human connectome (T_R=0.72 s) the time window was very narrow, so many times, particularly with variations in heart rate, there was be just one or none events in that window, and therefore non regressors were produced for this case.

Curious to know your thoughts on this @timothyv, @coaxlab0