cellfish.plot.obs_scatter

Contents

cellfish.plot.obs_scatter#

cellfish.plot.obs_scatter(adata, x, y, hue, cmap, highlight=None, figsize=(6, 5), point_size=5, alpha_other=0.5, alpha_highlight=0.8)#

Scatter plot from AnnData.obs with optional cluster highlighting.

Parameters:
  • adata (AnnData) – AnnData object.

  • x (str) – Column name for x-axis.

  • y (str) – Column name for y-axis.

  • hue (str) – Column name to group points by.

  • cmap (Dict[str, str]) – Mapping from group name to color.

  • highlight (Union[str, List[str]], optional) – Clusters to highlight.

  • figsize (tuple, optional) – Figure size.

  • point_size (int, optional) – Point size.

  • alpha_other (float, optional) – Alpha for background points.

  • alpha_highlight (float, optional) – Alpha for highlighted points.