plot_protein_distributions#

RAPDOR.plots.plot_protein_distributions(rapdorids, rapdordata: RAPDORData, colors, title_col: str = 'RAPDORid', mode: str = 'line', plot_type: str = 'normalized', zoom_fractions: int = 2, **kwargs)#

Plots a figure containing distributions of proteins using mean, median, min and max values of replicates

Parameters:
  • rapdorids (List[any]) – RAPDORids that should be plotted

  • rapdordata (RAPDORData) – a RAPDORData object containing the IDs from rapdorids

  • colors (Iterable[str]) – An iterable of color strings to use for plotting

  • title_col (str) – Name of a column that is present of the dataframe in rapdordata. Will add this column as a subtitle in the plot (Default: RAPDORid)

  • mode (str) – One of line or bar. Will result in a line plot or a bar plot.

  • plot_type (str) – One of (“normalized”, “raw”, “mixed”) will use normalized data as default. “mixed” will plot one column of relative measure and one for the raw data. Note that mulitple columns are not supported when plotting mixed data.

Returns: go.Figure

A plotly figure containing a plot of the protein distribution for each protein identified via the rapdorids.