stereo.plots.PlotCollection.batches_umap

PlotCollection.batches_umap(res_key, title='umap of each batch', x_label='umap1', y_label='umap2', main_title='batches', sub_titles=None, dot_size=3, palette='stereo_30', width=None, height=None, sub_cols=2, **kwargs)[source]

Plot the umap of batches, the leftmost is the umap for all batches while the others are for each batch.

Parameters:
  • res_key (str) – the result key of UMAP.

  • title (Optional[str]) – the plot titles.

  • x_label (Optional[str]) – the x label.

  • y_label (Optional[str]) – the y label.

  • main_title (Optional[str]) – the title of the leftmost plot.

  • sub_titles (Optional[list]) – a list of titles of the plots except the leftmost one.

  • dot_size (Optional[int]) – the dot size.

  • palette (Union[str, list, dict, None]) – a palette name, a list of colors whose length is equal to the batches, or a dict whose keys are batch numbers and values are colors.

  • width (Optional[int]) – the figure width in pixels.

  • height (Optional[int]) – the figure height in pixels.

  • sub_cols (Optional[int]) – the number of columns for the plots except the leftmost one.

  • out_path – the path to save the figure.

  • out_dpi – the dpi when the figure is saved.