[x] makes stimulus_response_dfcompatible with behavior timeseries including running_speed, pupil_width, and lick_rate
[x] adds a function to create licks_df, a dataframe with a 0 or 1 for every stimulus timestamp in the session indicating whether there was a lick or not, used to compute time aligned traces for lick_rate
[ ] adds a function to load pupil data, filter out likely blinks, and z-score relative to the 5 min gray screen period at the beginning of the session to account for session to session variability in pupil measurement
[x] adds p_value_gray_screento stimulus_response_dfto compute p-value of cell activity in response to a given stimulus compared to a shuffled distribution from the 5 minute gray screen periods and beginning and end of session
[ ] allows flexible choice of response_window_durationto calculate the mean_responsefor each stimulus (for example, now can compute mean in 0.25s window instead of 0.5s)
[x] adds functions to annotate stimulus_presentations with reward rate, epoch labels, trial information (ex: hit vs miss) engagement state, time from last change
[ ] TBD: time from last lick, time from last omission
[ ] TBD: licks dataframe annotated with lick bouts, consumption licks, etc.
stimulus_response_df
compatible with behavior timeseries includingrunning_speed
,pupil_width
, andlick_rate
lick_rate
p_value_gray_screen
tostimulus_response_df
to compute p-value of cell activity in response to a given stimulus compared to a shuffled distribution from the 5 minute gray screen periods and beginning and end of sessionresponse_window_duration
to calculate themean_response
for each stimulus (for example, now can compute mean in 0.25s window instead of 0.5s)