lecilab-behavior-analysis
  • Getting started
  • Figures
  • API
  • Daily reports
/
  • Getting started
  • Tutorial
  • Gallery
  • Data and its formats
  • Figures
  • Styles
  • Daily reports
  • Online plot
  • API
    • io
      • loading
        • find_setups
        • load_all_events
        • load_example_data
        • load_project_logs
        • load_project_trials
        • load_session_dates
        • load_setup_logs
        • load_subject_trials
        • read_csv_with_specific_number_of_columns
      • server
        • get_animals_in_project
        • get_files_for_animal
        • get_folders_from_server
        • get_idibaps_cluster_credentials
        • get_outpath
        • get_server_projects
        • rsync_cluster_data
        • rsync_specific_file
      • settings
        • changed_settings
        • changing_settings
        • fetch_session_settings_file
        • format_session_settings
        • get_session_settings
        • print_session_settings
        • row_settings
        • session_file_stem
        • session_settings_table
        • settings_for_sessions
    • preprocessing
      • add_day_column_to_df
      • add_trial_of_day_column_to_df
      • analyze_df
      • fill_missing_data
      • prepare
      • reformat_df_columns
    • data_format_changes
      • add_left_right_brightness
      • correct_as_number
      • get_correct_incorrect_brightness
      • get_left_right_brightness
      • normalize_modality
      • normalize_stage
      • normalize_task_names
      • uses_new_task_code
      • visual_stimulus_is_left_right
    • metrics
      • choices
        • add_mouse_first_choice
        • add_mouse_last_choice
        • add_port_where_animal_comes_from
        • add_repeat_or_alternate_numeric
        • add_sound_location_level
        • add_trial_group_column
        • add_visual_stimulus_difference
        • add_win_stay_lose_switch_columns
        • create_transition_matrix
        • get_bias_evolution_df
        • get_choice_before
        • get_choices_by_difficulty_matrix
        • get_left_auditory_stim
        • get_left_choice
        • get_performance_by_difficulty_diff
        • get_performance_by_difficulty_ratio
        • get_time_kernel_impact
        • get_triangle_polar_plot_df
        • get_win_stay_lose_switch_df
        • matrix_row_label
        • parameters_for_fit
        • points_to_lines_for_bias_evolution
        • previous_impact_on_time_kernel
        • two_sided_bin_edges
      • engagement
        • add_engagement_column
        • find_next_end_task_time_in_events
        • get_box_usage_df
        • get_session_box_usage
        • get_session_ends
      • occupancy
        • get_daily_occupancy_percentages
        • get_dates_df
        • get_followers_matrix
        • get_occupancy_heatmap
        • get_occupancy_matrix
        • get_start_and_end_of_sessions_df
        • get_water_df
      • performance
        • get_day_number_of_trials
        • get_day_performance
        • get_evidence_ratio
        • get_performance_by_decision_df
        • get_performance_by_difficulty
        • get_performance_by_trials_in_stage
        • get_performance_through_trials
        • get_repeat_or_alternate_performance
        • get_repeat_or_alternate_series
        • get_session_number_of_trials
        • get_session_performance
        • get_text_from_subject_df
        • get_text_from_subset_df
        • get_training_summary_matrix
        • repeat_or_alternate_series_comparison
      • sound
        • add_auditory_real_statistics
        • analyze_sound_matrix
        • get_decibels_of_cloud_of_tones
        • get_sound_stats
        • get_timebin_evidence
        • sound_evidence_strength
      • timing
        • add_early_pokeouts
        • add_inter_trial_interval_column_to_df
        • add_port_holds
        • add_reaction_time
        • add_time_between_trials
        • add_trial_duration_column_to_df
        • add_trial_initiation_time_to_df
        • add_trial_misses
        • adjust_trials_and_time_of_start_to_first_session
        • calculate_time_between_trials_and_reaction_time
        • get_center_hold_df
        • get_reaction_times_by_date_df
      • trial_events
        • add_time_from_session_start
        • early_pokeout_from_events
        • first_choice_from_events
        • first_poke_after_stimulus_state
        • get_dictionary_event_as_list
        • get_last_poke_before_stimulus_state
        • get_last_poke_of_trial
        • get_previous_row_index
        • get_repeat_or_alternate_to_numeric
        • get_start_and_end_times
        • get_trial_port_hold
        • initiation_time_from_events
        • is_this_a_miss_trial
        • is_this_an_early_pokeout_trial
        • last_choice_before_stimulus_from_events
        • miss_from_events
        • parse_event_column
        • parse_events
        • port_holds_from_events
        • reaction_time_from_events
        • side_and_difficulty_to_numeric
        • transform_side_choice_to_numeric
        • trial_initiation_time
        • trial_reaction_time
        • EventColumns
    • models
      • psychometric
        • fit_lapse_logistic_independent
        • lapse_logistic_independent
        • psychometric_curve_fitting_params
      • regression
        • drop_one_var_contribution
        • filter_variables_for_model
        • hierarchical_partitioning
        • logi_model_fit
        • logi_model_fit_input
        • verify_params_time_kernel
    • plots
      • choices
        • bias_triangle_plot
        • bias_vs_trials_plot
        • choice_by_difficulty_plot
        • plot_decision_evolution_triangle
        • plot_filter_model_variables
        • pointplot_stimulus_dual_dependence
        • psychometric_plot
        • triangle_polar_plot
        • win_stay_lose_switch_plot
      • occupancy
        • plot_percentage_of_occupancy_per_day
        • plot_training_times_clock_heatmap
        • plot_training_times_heatmap
        • plot_transition_matrix
        • plot_transition_network_with_curved_edges
      • online
        • online_trials_table
        • trial_row
        • win_stay_lose_switch
        • OnlineSessionFigure
      • performance
        • correct_left_and_right_plot
        • hue_colors
        • number_of_correct_responses_plot
        • partially_stacked_barplot
        • performance_by_decision_plot
        • performance_vs_trials_plot
        • repeat_or_alternate_performance_plot
        • side_correct_performance_plot
      • timing
        • mean_and_ci_by_day_plot
        • plot_box_usage_by_date
        • plot_mean_and_cis_by_date
        • plot_number_of_pokes_histogram
        • plot_port_holding_time_histogram
        • plot_time_between_trials_and_reaction_time
        • plot_trial_time_of_start
        • time_between_trials_and_reaction_time_plot
      • training
        • calendar_plot
        • format_date_axis
        • plot_table_from_df
        • rasterize_plot
        • setting_change_labels
        • setting_colors
        • setting_values_to_colors
        • summary_matrix_plot
        • summary_text_plot
        • training_calendar_plot
        • training_matrix_plot
        • trials_by_day_plot
        • trials_by_day_stacked_plot
        • trials_by_session_hist
        • trials_by_session_plot
        • water_by_date_plot
        • water_by_day_plot
    • figures
      • layouts
        • session_modalities
        • session_summary
        • session_summary_layout
        • subject_progress
      • panels
        • by_day
        • day_limits
        • performance_df
        • psychometric
        • session_changes
        • with_numeric_correct
      • render
    • reports
      • overview
        • box_occupancy_figure
        • cohort_trials_and_performance_figure
        • daily_trials_and_performance
        • failed_cells
        • group_trials
        • last_days
        • last_days_table
        • last_hours
        • never_raises
        • performance_over_trials_figure
        • problems_table
        • reset_failed_cells
        • stage_performance_figure
        • strategies_figure
        • subject_colors
        • trials_by_stage
        • trials_by_stage_table
        • tv_report_table
      • tables
        • generate_tv_report

On this page

  • get_left_choice()
  1. lecilab-behavior-analysis /
  2. API /
  3. metrics /
  4. choices /
  5. get_left_choice
View Source Open in ChatGPT Open in Claude

get_left_choice#

get_left_choice(df)[source]#
Previous
get_left_auditory_stim
Next
get_performance_by_difficulty_diff

2022, Learning Circuits Lab

Made with Sphinx and Shibuya theme.