get_bold#
- snake.core.handlers.activations.bold.get_bold(tr_ms, max_time, event_condition, hrf_model, oversampling, min_onset, bold_strength)[source]#
Convolve the HRF with the event condition to generate the BOLD signal.
- Parameters:
frame_times – array-like of shape (n_times,) The timing of the acquisition
event_condition (DataFrame) – array-like of shape (3, n_events) yields description of events for this condition as a (onsets, durations, amplitudes) triplet
hrf_model (str) – Choice for the HRF, FIR is not
oversampling (int) – Oversampling factor to perform the convolution. Default=50.
min_onset (float) – Minimal onset relative to frame_times[0] (in seconds) events that start before frame_times[0] + min_onset are not considered. Default=-24.
duration – Duration of the event in seconds.
offset – Offset of the event in seconds.
bold_strength (float) – Strength of the BOLD signal.
tr_ms (float)
max_time (float)
- Returns:
The convolved HRF with the event condition.
- Return type:
np.ndarray