AllenNeuralDynamics / foraging-behavior-browser

Foraging behavior browser (streamlit)
https://foraging-behavior-browser.streamlit.app/
MIT License
2 stars 2 forks source link

feat: add download button for the filtered dataframe #81

Closed hanhou closed 3 months ago

hanhou commented 3 months ago
- Example downloaded dataframe: [filtered_data_20240815.csv](https://github.com/user-attachments/files/16630836/filtered_data_20240815.csv) - Example downloaded json: [query_params_20240815.json](https://github.com/user-attachments/files/16630837/query_params_20240815.json) - (Optional) for reproducibility, you can always copy the full URL in the browser to recover the filter states. For example, this [URL](https://codeocean.allenneuraldynamics.org/cw/22a48106-53d9-4b8f-afe3-511ad1721251/proxy/8501/?filter_subject_id=736205&session_plot_selected_draw_types=1.+Choice+history&session_plot_selected_draw_types=2.+Lick+analysis&session_plot_selected_draw_types=3.+Logistic+regression+%28Su2022%29&session_plot_selected_draw_types=4.+Logistic+regression+%28Bari2019%29&session_plot_selected_draw_types=5.+Logistic+regression+%28Hattori2019%29&session_plot_selected_draw_types=6.+Logistic+regression+%28Miller2021%29&x_y_plot_if_use_x_quantile_all=False&x_y_plot_selected_color_map=Plotly&filter_session=0.95&filter_session=10.5&x_y_plot_line_width=2.0&auto_training_curriculum_version=1.0&auto_training_curriculum_schema_version=1.0&x_y_plot_if_aggr_all=True&x_y_plot_if_use_x_quantile_group=False&tab_id=tab_auto_train_history&x_y_plot_group_by=h2o&x_y_plot_aggr_method_group=lowess&auto_training_history_x_axis=date&x_y_plot_size_mapper_gamma=1.0&if_load_bpod_sessions=False&auto_training_curriculum_name=Uncoupled+Baiting&x_y_plot_figure_height=900&session_plot_number_cols=3&x_y_plot_smooth_factor=5&x_y_plot_size_mapper_range=3&x_y_plot_size_mapper_range=20&x_y_plot_yname=foraging_performance_random_seed&filter_task=Uncoupled+Baiting&filter_task=Coupled+Baiting&x_y_plot_if_show_diagonal=False&auto_training_history_sort_by=first_date&x_y_plot_q_quantiles_group=20&to_filter_columns=subject_id&to_filter_columns=task&to_filter_columns=session&to_filter_columns=finished_trials&to_filter_columns=foraging_eff&x_y_plot_size_mapper=finished_trials&x_y_plot_xname=session&auto_training_history_sort_order=descending&x_y_plot_dot_size=10&session_plot_mode=sessions+selected+from+table+or+plot&auto_training_history_recent_weeks=8&filter_foraging_eff=0.6189812747313238&filter_foraging_eff=0.8730957614651463&x_y_plot_aggr_method_all=mean+%2B%2F-+sem&x_y_plot_if_show_dots=True&table_height=300&x_y_plot_font_size_scale=1.0&x_y_plot_dot_opacity=0.3&x_y_plot_if_aggr_each_group=True&x_y_plot_figure_width=1300&x_y_plot_q_quantiles_all=20&filter_finished_trials=214.7&filter_finished_trials=655.2) can reproduce the two downloaded files.
hanhou commented 3 months ago

@rachelstephlee