proteobench.plotting.plot_quant module#
Module for plotting quantitative proteomics data.
- class proteobench.plotting.plot_quant.PlotDataPoint[source]#
Bases:
objectClass for plotting data points.
- static plot_CV_violinplot(result_df: DataFrame) Figure[source]#
Plot the coefficient of variation (CV) for A and B groups using a violin plot.
- Parameters:
result_df (pd.DataFrame) – The results DataFrame containing the CV data.
- Returns:
A Plotly figure object representing the violin plot.
- Return type:
go.Figure
- static plot_fold_change_histogram(result_df: DataFrame, species_ratio: Dict[str, Dict[str, str]]) Figure[source]#
Plot a histogram of log2 fold changes using Plotly, color-coded by species.
- static plot_ma_plot(result_df: DataFrame, species_ratio: Dict[str, Dict[str, str]]) Figure[source]#
Plot a MA plot using Plotly.
- static plot_metric(benchmark_metrics_df: DataFrame, metric: str = 'Median', software_colors: Dict[str, str] = {'AlphaDIA': '#4daf4a', 'AlphaPept': '#4daf4a', 'Custom': '#7f7f7f', 'DIA-NN': '#8c564b', 'FragPipe': '#ff7f00', 'FragPipe (DIA-NN quant)': '#ff7f00', 'MSAID': '#afff57', 'MSAngel': '#e41a1c', 'MaxQuant': '#377eb8', 'PEAKS': '#f781bf', 'ProlineStudio': '#5f0f40', 'Proteome Discoverer': '#8c564b', 'Sage': '#a65628', 'Spectronaut': '#bcbd22', 'WOMBAT': '#f781bf', 'i2MassChroQ': '#984ea3', 'quantms': '#03fc39'}, mapping: Dict[str, int] = {'new': 20, 'old': 10}, highlight_color: str = '#d30067', label: str = 'None', legend_name_map: Dict[str, str] = {'AlphaPept': 'AlphaPept (legacy tool)'}) Figure[source]#
Plot mean metrics in a scatter plot with Plotly, highlighting specific data points.
- Parameters:
benchmark_metrics_df (pd.DataFrame) – The DataFrame containing benchmark metrics data.
metric (str, optional) – The metric to plot, either “Median” or “Mean”, by default “Median”.
software_colors (Dict[str, str], optional) – A dictionary mapping software names to their colors, by default predefined colors.
mapping (Dict[str, int], optional) – A dictionary mapping categories to scatter plot sizes, by default {“old”: 10, “new”: 20}.
highlight_color (str, optional) – The color used for highlighting certain points, by default “#d30067”.
label (str, optional) – The column name for labeling data points, by default “None”.
legend_name_map (Dict[str, str], optional) – A dictionary mapping software names to legend names, by default None. If None, the software names will be used as legend names.
- Returns:
A Plotly figure object representing the scatter plot.
- Return type:
go.Figure