choices#
Choices of the animal: first / last choice, where it comes from, bias, psychometric data (visual and cloud of tones) and model regressors.
Functions
Add the first choice made by the mouse in each trial. |
|
Add the last choice made by the mouse in each trial. |
|
The previous side port can come from two sources. |
|
Adds roa_choice_numeric: 0 if the animal alternated, -1 if it repeated to the left, 1 if it repeated to the right (NaN otherwise). |
|
Adds sound_location_db: loudness of the sound of a sound location trial (auditory-local-wn), positive if it came from the left and negative if from the right (the side in auditory_output_side, or the correct side, as the sound plays on the side of the reward). |
|
Adds trial_group: the trials of each subject split, in order, into n_groups groups with the same number of trials (the number of the first trial of the group, from total_trial). |
|
Adds, to each trial, what happened in the trial before (of the same subject and session) and whether the mouse chose the same side again: |
|
Gets how the bias of the animals (alternating, right bias, or left bias) evolves over time. |
|
The proportion of left choices (first choice) by correct side and difficulty in each session: a psychometric curve per session, to show as colours (see MATRIX_ROWS). |
|
Win-stay and lose-switch probabilities of each group of trials. |
|
Get the parameters for the fit |
|
Bin edges for a signed stimulus with a gap around 0 (e.g. sound levels, never close to 0 dB): per_side bins of equal width over the range of the negative values and per_side over the range of the positive ones, so that no bin falls in the gap. |