webinterface.pages.base_pages.tabs.tab3_view_single_result module#
Generic Tab 3: In-Depth Plots
This module provides a unified interface for displaying in-depth analysis plots across all ProteoBench module types (Quant, De Novo, etc.).
- webinterface.pages.base_pages.tabs.tab3_view_single_result.create_pmultiqc_report_section(performance_data: DataFrame) str[source]#
Create a section in the Streamlit app to display the pMultiQC report.
- Parameters:
performance_data (pd.DataFrame) – The performance data to generate the report from.
- Returns:
The HTML content of the generated report.
- Return type:
- webinterface.pages.base_pages.tabs.tab3_view_single_result.display_in_depth_plots_generic(variables, ionmodule, performance_data: DataFrame, **kwargs) None[source]#
Generic function to display in-depth plots for any module type.
This is a simpler alternative to generate_indepth_plots when you already have the performance data loaded.
- webinterface.pages.base_pages.tabs.tab3_view_single_result.display_performance_table(performance_data: DataFrame, variables, user_input: dict, public_id: str, public_hash: str | None = None) None[source]#
Display the performance data table with download option.
- webinterface.pages.base_pages.tabs.tab3_view_single_result.display_plots_with_layout(plots: dict, plot_generator, variables, public_id: str) None[source]#
Display plots using the module’s layout configuration.
- Parameters:
plots (dict) – Dictionary of plot names to plotly figures.
plot_generator (PlotGeneratorBase) – The plot generator instance.
variables (object) – Variables object.
public_id (str) – The dataset identifier for display in titles.
- webinterface.pages.base_pages.tabs.tab3_view_single_result.display_pmultiqc_report(performance_data: DataFrame, sample_name: str, cache_key: str) None[source]#
Display the pMultiQC report section.
- webinterface.pages.base_pages.tabs.tab3_view_single_result.generate_indepth_plots(module, variables, parsesettingsbuilder, user_input, public_id: str | None, public_hash: str | None, metric: str = 'Median', mode: str = 'Species-weighted', colorblind_mode: bool = False) Figure | None[source]#
Generate and display in-depth plots for the selected dataset.
Works generically across all module types by using the plot_generator interface.
- Parameters:
module (object) – The module instance (Quant, De Novo, etc.).
variables (object) – Variables object containing session state keys.
parsesettingsbuilder (ParseSettingsBuilder) – Parse settings builder for the module.
user_input (dict) – User input parameters.
public_id (Optional[str]) – The dataset identifier (“Uploaded dataset” or public run name).
public_hash (Optional[str]) – The hash of the selected public dataset.
metric (str, optional) – The metric to use for plotting (e.g., “Median”, “Mean”). Defaults to “Median”.
mode (str, optional) – The mode for metric calculation (e.g., “Global”, “Species-specific”). Defaults to “Species-specific”.
colorblind_mode (bool, optional) – Whether to use colorblind-friendly colors. Defaults to False.
- Returns:
The first generated plot or None if generation fails.
- Return type:
Optional[go.Figure]
- webinterface.pages.base_pages.tabs.tab3_view_single_result.generate_sample_name(input_format: str) str[source]#
Generate a unique sample name based on input format and timestamp.
- webinterface.pages.base_pages.tabs.tab3_view_single_result.load_public_performance_data(public_hash: str) DataFrame | None[source]#
Load performance data for a public dataset from storage.
- Parameters:
public_hash (str) – The hash identifier of the public dataset.
- Returns:
The loaded performance data or None if loading fails.
- Return type:
Optional[pd.DataFrame]