webinterface.pages.base_pages.tabs.tab1_view_public_results module#
Generic Tab 1: Results Display (All Data)
This module provides a unified interface for displaying benchmark results across all ProteoBench module types (Quant, De Novo, etc.).
- webinterface.pages.base_pages.tabs.tab1_view_public_results.display_colorblindmode_selector(variables, use_submitted: bool = False) str[source]#
Display colorblind mode selector toggle.
- webinterface.pages.base_pages.tabs.tab1_view_public_results.display_download_section(variables, sort_by: str = 'id') None[source]#
Render the download section for raw datasets.
- webinterface.pages.base_pages.tabs.tab1_view_public_results.display_existing_results(variables, ionmodule, plot_params: Dict[str, Any], use_slider: bool = True, table_style: str = 'aggrid', column_config: Dict | None = None) None[source]#
Main orchestration function for Tab 1: plot + interactive table with bidirectional highlight synchronisation.
Clicking a point in the scatter plot highlights the matching row in the table. Clicking a row in the table highlights the matching point in the scatter plot.
- Parameters:
variables (object) – Variables object containing session state keys and configuration.
ionmodule (object) – The module instance (Quant, De Novo, etc.).
plot_params (Dict[str, Any]) – Module-specific plotting parameters passed straight through to render_metric_plot (and on to plot_main_metric). alpha_warning and beta_warning are consumed here.
use_slider (bool, optional) – Whether to use slider-based filtering (default True for Quant).
table_style (str, optional) – Reserved; AgGrid is always used.
column_config (Optional[Dict], optional) – Reserved for future st.dataframe column configuration.
- webinterface.pages.base_pages.tabs.tab1_view_public_results.display_metric_calc_approach_selector(variables) str[source]#
Display metric calculation approach selector and return selected mode.
- webinterface.pages.base_pages.tabs.tab1_view_public_results.display_metric_selector(variables) str[source]#
Display metric selector and return selected metric.
- webinterface.pages.base_pages.tabs.tab1_view_public_results.filter_data_if_applicable(variables, ionmodule, use_slider: bool = True) DataFrame[source]#
Filter data using module-specific filtering logic.
- Parameters:
- Returns:
Filtered or unfiltered data points.
- Return type:
pd.DataFrame
- webinterface.pages.base_pages.tabs.tab1_view_public_results.generate_main_radio(radio_id_uuid: str, description: str, options: list, help: str = None) None[source]#
Generate a radio button selector.
- webinterface.pages.base_pages.tabs.tab1_view_public_results.generate_main_selectbox(variables, selectbox_id_uuid: str) None[source]#
Generate the main selectbox for label selection.
- webinterface.pages.base_pages.tabs.tab1_view_public_results.generate_main_slider(slider_id_uuid: str, description_slider_md: str, default_val_slider: float, max_nr_observed: int = 6) None[source]#
Create a slider input.
- webinterface.pages.base_pages.tabs.tab1_view_public_results.initialize_main_data_points(variables, ionmodule) None[source]#
Initialize the all_datapoints variable in the session state.
- webinterface.pages.base_pages.tabs.tab1_view_public_results.initialize_main_selectbox(selectbox_id_uuid: str, default_value: str = 'None') None[source]#
Initialize the selectbox state with UUID and default value.
- webinterface.pages.base_pages.tabs.tab1_view_public_results.initialize_main_slider(slider_id_uuid: str, default_val_slider: int) None[source]#
Initialize the slider state with UUID and default value.
- webinterface.pages.base_pages.tabs.tab1_view_public_results.initialize_radio(radio_id_uuid: str, default_value: str) None[source]#
Initialize radio button state with UUID and default value.
- webinterface.pages.base_pages.tabs.tab1_view_public_results.initialize_uuid_state(key: str, default_value: Any = None) None[source]#
Initialize a UUID-based state key with an optional default value.
- Parameters:
key (str) – The session state key to initialize.
default_value (Any, optional) – The default value to associate with the generated UUID.
- webinterface.pages.base_pages.tabs.tab1_view_public_results.render_main_plot(plot_generator, data: DataFrame, variables, plot_params: Dict[str, Any]) None[source]#
Render the main metric plot using the module’s plot generator.
- Parameters:
plot_generator (PlotGeneratorBase) – The plot generator instance from the module.
data (pd.DataFrame) – The data to plot.
variables (object) – Variables object containing session state keys.
plot_params (Dict[str, Any]) – Module-specific parameters for plotting (label, metric, mode, etc.).