webinterface.pages.base_pages.quant_tabs.metricplot module#
- webinterface.pages.base_pages.quant_tabs.metricplot.render_metric_plot(data: DataFrame, metric: str, mode: str, label: str, colorblind_mode: bool, key, plot_generator, annotation: str = '') str | None[source]#
Displays the metric plot and returns the ProteoBench ID of the selected point (if any).
- Parameters:
data (pd.DataFrame) – The filtered dataset to plot.
metric (str) – Metric to plot (“Median” or “Mean”).
mode (str) – Mode to plot (“Species-weighted” or “Global”).
label (str) – The label for the data points.
key (str) – Unique key for the plot in the Streamlit session state.
plot_generator (PlotGeneratorBase) – The plot generator instance for the module.
- Returns:
ProteoBench ID of the selected data point, if any.
- Return type:
str or None