plot_sum_of_intensities#

RAPDOR.plots.plot_sum_of_intensities(rapdordata, colors: Iterable = ('rgb(138, 255, 172)', 'rgb(255, 138, 221)'), normalize: bool = False, show_last: bool = True)#

Plots a heatmap of summed intensities across fractions and replicates from RAPDOR data.

The function sums intensity values across all proteins (or features) for each fraction and replicate, optionally normalizes the sums per replicate, and visualizes the results as a heatmap.

Parameters:
  • rapdordata – An object containing RAPDOR data with the following attributes: - .array: 2D numpy array of intensities with shape (samples, fractions). - .fractions: List or array of fraction identifiers. - .internal_design_matrix: DataFrame with columns “Treatment” and “Replicate”.

  • colors (Iterable, optional) – A color scale iterable for the heatmap (e.g., a Plotly colorscale). Default is COLOR_SCHEMES[“Flamingo”].

  • normalize (bool, optional) – Whether to normalize intensities within each replicate so that sums per replicate equal 1. Defaults to False.

  • show_last (bool, optional) – Whether to include the last fraction in the heatmap. Defaults to True.

Returns:

A Plotly heatmap figure showing summed (or normalized) intensities by fraction and replicate.

Return type:

plotly.graph_objects.Figure

Example

fig = plot_sum_of_intensities(rapdordata, normalize=True) fig.show()