tacco.plots.dotplot

dotplot(adata, genes, group_key, log1p=True, marks=None, marks_colors=None, swap_axes=True)[source]

Dot plot of expression values.

This is similar to scanpy.pl.dotplot() with customizations, e.g. the option to mark selected dots.

Parameters:
  • adata – An AnnData including annotation in .obs.

  • genes – The .var index values to compare use as a list-like.

  • group_key – An .obs key with categorical group information.

  • log1p – Whether to log1p-transform the data prior to plotting.

  • marks – A pandas.DataFrame containing categorical markers for the dots with genes in the rows and groups in the columns.

  • marks_colors – A mapping from the categories in marks to colors; if None, default colors are used.

  • swap_axes – If False, the x axis contains the genes and the y axis the groups. Otherwise the axes are swapped.

Returns:

A Figure.