decoupler.plot_dotplot

decoupler.plot_dotplot(df, x, y, c, s, scale=5, cmap='viridis_r', title=None, figsize=(3, 5), dpi=100, ax=None, return_fig=False, save=None)

Plot results of enrichment analysis as dots.

Parameters:
dfDataFrame

Results of enrichment analysis.

xstr

Column name of df to use as continous value.

ystr

Column name of df to use as labels.

cstr

Column name of df to use for coloring.

sstr

Column name of df to use for dot size.

scaleint

Parameter to control the size of the dots.

cmapstr

Colormap to use.

titlestr, None

Text to write as title of the plot.

figsizetuple

Figure size.

dpiint

DPI resolution of figure.

axAxes, None

A matplotlib axes object. If None returns new figure.

return_figbool

Whether to return a Figure object or not.

savestr, None

Path to where to save the plot. Infer the filetype if ending on {.pdf, .png, .svg}.

Returns:
figFigure, None

If return_fig, returns Figure object.