proteobench.plotting.plot_generator_lfq_PYE module#
Plot generator for LFQ PYE (Plasma-Yeast-Ecoli) quantification modules.
- class proteobench.plotting.plot_generator_lfq_PYE.LFQPYEPlotGenerator[source]#
Bases:
PlotGeneratorBasePlot generator for LFQ PYE (Plasma-Yeast-Ecoli) quantification modules. Used by plasma benchmarking modules that use human plasma, yeast, and E. coli species.
- generate_in_depth_plots(performance_data: DataFrame, parse_settings: any, **kwargs) Dict[str, Figure][source]#
Generate standard LFQ PYE plots from intermediate data.
- Parameters:
performance_data (pd.DataFrame) – The intermediate performance data to plot
parse_settings (ParseSettings) – The parse settings for the module
**kwargs (dict) – Additional module-specific parameters
- Returns:
Dictionary mapping plot names to plotly figures
- Return type:
Dict[str, go.Figure]
- get_in_depth_plot_layout() list[source]#
Define layout for LFQ PYE plots.
- Returns:
List of in-depth plot configurations defining how plots should be displayed
- Return type:
- plot_main_metric(result_df: DataFrame, metric: str = 'Median', mode: str = 'Global', software_colors: Dict[str, str] = {'AlphaDIA': '#1D2732', 'AlphaPept': '#17212b', 'Custom': '#000000', 'DIA-NN': '#d42f2f', 'FragPipe': '#F89008', 'FragPipe (DIA-NN quant)': '#F89008', 'MSAID': '#bfef45', 'MSAngel': '#C0FA7D', 'MaxQuant': '#8bc6fd', 'MetaMorpheus': '#637C7A', 'PEAKS': '#f032e6', 'ProlineStudio': '#8b26ff', 'Proteome Discoverer': '#911eb4', 'Sage': '#E43924', 'Spectronaut': '#007548', 'WOMBAT': '#663200', 'i2MassChroQ': '#108E2E', 'quantms': '#f5e830'}, software_markers: Dict[str, str] = {'AlphaDIA': 'star-triangle-up', 'AlphaPept': 'square', 'Custom': 'star-square', 'DIA-NN': 'star', 'FragPipe': 'x', 'FragPipe (DIA-NN quant)': 'circle-x', 'MSAID': 'square-cross', 'MSAngel': 'cross', 'MaxQuant': 'circle', 'MetaMorpheus': 'asterisk', 'PEAKS': 'diamond-wide', 'ProlineStudio': 'diamond', 'Proteome Discoverer': 'hash', 'Sage': 'triangle-down', 'Spectronaut': 'diamond-tall', 'WOMBAT': 'pentagon', 'i2MassChroQ': 'triangle-up', 'quantms': 'hexagram'}, mapping: Dict[str, str] = {'new': 20, 'old': 10}, highlight_color: str = '#d30067', label: str = '', legend_name_map: Dict[str, str] = {'AlphaPept': 'AlphaPept (legacy tool)'}, hide_annot: bool = False, colorblind_mode: bool = False, default_cutoff_min_prec: int = 3, min_nr_observed: int = None, annotation: str = '', **kwargs) Figure[source]#
Generate the main plasma benchmarking scatterplot.
This method returns the plasma performance scatterplot for comparing multiple methods.
- Parameters:
result_df (pd.DataFrame) – DataFrame containing the results to plot, must have ‘results’ column with metrics.
metric (str, optional) – Metric to use for calculations: “Median” or “Mean”. Defaults to “Median”.
mode (str, optional) – Mode for metric calculation: “Global” or “Species-weighted”. Currently both modes use the same metrics for plasma. Defaults to “Global”.
software_colors (Dict[str, str]) – Mapping of software names to colors.
highlight_color (str) – Color to use for highlighting specific software.
label (str) – Label for plot annotations.
legend_name_map (Dict[str, str]) – Mapping for legend names.
hide_annot (bool) – Whether to hide annotations on the plot.
default_cutoff_min_prec (int) – Default min precursor threshold for extracting metrics.
min_nr_observed (int, optional) – Override the cutoff level with this value if provided.
annotation (str, optional) – Text annotation to display on the plot (e.g., “-Alpha-”, “-Beta-“).
**kwargs (dict) – Additional parameters.
- Returns:
Plotly figure with the plasma scatterplot.
- Return type:
go.Figure