Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

major updates to stimulus presentations data formatting #5

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

matchings
Copy link
Collaborator

@matchings matchings commented Aug 30, 2022

  • modified functions to add trials_id to stimulus_presentations - one adds info just for the change and sham change (go/catch) trials, such as whether it was a hit or miss, another adds info across all stimuli that belong to a behavioral trial, such as whether it was aborted or autorewarded
  • adds function to label the stimulus count within each trial
  • modified function to add could_change column which indicates whether a stimulus presentation could have been a change based on known change trial distribution and whether there had already been a change or lick on that trial
  • add functions to get time from last change / omission / lick / reward, or the number of stimuli since the last event
  • add columns for whether a stimulus is pre / post change or omission
  • add functions to implement multiple of the above annotations: add_timing_info_to_stimulus_presentations and add_behavior_info_to_stimulus_presentations

TODO: add notebook demonstrating use and validation of each function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant