webinterface.pages.base_pages.metricplot module#

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

metricstr

Metric to plot (“Median” or “Mean”).

labelstr

The label for the data points.

keystr

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