plot_replicate_distribution#

RAPDOR.plots.plot_replicate_distribution(subdata: numpy.ndarray, design: pandas.DataFrame, offset: int = 0, colors: Iterable[str] = None, yname: str = 'rel. protein amount')#

Plots the distribution of protein for each replicate

Parameters:
  • subdata (np.ndarray) – an array of shape num samples x num_fractions. Rows need to add up to one

  • design (pd.Dataframe) – the design dataframe to distinguish the groups from the samples dimension

  • offset (int) – adds this offset to the fractions at the x-axis range

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

Returns: go.Figure

A plotly figure containing a scatter-line per replicate.