plot_sample_correlation#

RAPDOR.plots.plot_sample_correlation(rapdordata: RAPDORData, ntop: int | float = None, use_raw: bool = False, summarize_fractions: bool = True, method: str = 'pearson', colors: Iterable[str] = None, highlight_replicates: bool = False, show_values: bool = False)#

Creates a heatmap of correlations of different samples. If summarize_fractions is True it will flatten the fraction dimension. If it is set to false it will treat each replicate, treatment, fraction combination as a separate sample.

Parameters:
  • rapdordata (RAPDORData) – A RAPDORData object

  • ntop (int or float) – use the n top entries regarding their variance if it is an int. If it is a float it uses that percentage of the data.

  • use_raw (bool) – uses raw values instead of normalized values.

  • summarize_fractions (bool) – Creates correlation heatmap using only samples and flattens the fractions if True.

  • method (str) – One of spearman or pearson

  • colors (Iterable[str]) – Iterable of color values

  • highlight_replicates – if True will but a box around replicates belonging to the same treatment. Only works with summarize_fractions set to false

Returns: go.Figure()