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.

Parameters:
  • variables (VariablesClass) – Variables object containing selector UUIDs

  • use_submitted (bool, optional) – If True, use the submitted selector UUID, by default False

Returns:

Current state of the colorblind mode toggle

Return type:

bool

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.

Parameters:
  • variables (object) – Variables object containing session state keys.

  • sort_by (str, optional) – Column to sort the download options by.

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 = 'dataframe', column_config: Dict | None = None) None[source]#

Main orchestration function for displaying benchmark results.

This is the primary entry point for Tab 1, working across all module types.

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 (label, metric, level, etc.).

  • use_slider (bool, optional) – Whether to use slider-based filtering (default True for Quant).

  • table_style (str, optional) – Table rendering style (“dataframe” or “aggrid”).

  • column_config (Optional[Dict], optional) – Streamlit column configuration for dataframe display.

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:
  • variables (object) – Variables object containing session state keys.

  • ionmodule (object) – The module instance with filter_data_point method.

  • use_slider (bool, optional) – Whether to use slider-based filtering (Quant) or return all data (De Novo).

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.

Parameters:
  • slider_id_uuid (str) – UUID for the slider state key

  • description_slider_md (str) – Path to markdown file with slider description

  • default_val_slider (float) – Default value for the slider

  • max_nr_observed (int, optional) – Maximum value for the slider range (default 6)

webinterface.pages.base_pages.tabs.tab1_view_public_results.initialize_main_data_points(variables, ionmodule: Callable) None[source]#

Initialize the all_datapoints variable in the session state.

Parameters:
  • variables (object) – Variables object containing session state keys.

  • ionmodule (Callable) – The module instance with obtain_all_data_points method.

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.).

webinterface.pages.base_pages.tabs.tab1_view_public_results.render_results_table(data: DataFrame, table_style: str = 'dataframe', column_config: Dict | None = None) None[source]#

Render the results table with configurable styling.

Parameters:
  • data (pd.DataFrame) – The data to display.

  • table_style (str, optional) – The table rendering style (“dataframe” or “aggrid”).

  • column_config (Optional[Dict], optional) – Streamlit column configuration for enhanced display.