webinterface.pages.base_pages.metricplot module#

webinterface.pages.base_pages.metricplot.render_metric_plot(data: DataFrame, metric: str, mode: str, label: str, key) 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.

Returns:

ProteoBench ID of the selected data point, if any.

Return type:

str or None