-
Notifications
You must be signed in to change notification settings - Fork 48
Description
Detailed Description
It would be nice to be able to segment runs that are defined by a continuous trigger (see last channel in the figure below). It that case, when the run starts, the value of that channel changes from 0 to 5, and when it ends, it changes from 5 to 0. It would thus be useful if, to be able to segment the physiological signals from when the value of the trigger channel initial change to the point where it change again to 0.
Context / Motivation
Currently there is no support (?) for segmenting runs from recordings containing continuous trigger (ex. physio recordings not acquired with fMRI).
Possible Implementation
If value of tr argument is False, compute the gradient on the trigger channel to find the start/end of the runs. The number of expected timepoints could be based on the expected duration (number of expected timepoints = expected duration * sampling rate) of the run instead of the number of expected triggers. The function check_trigger_amount in physio_obj.py could be changed accordingly. That function will have to be called in slice4phys.py if tr is False.
