decoupler.plot_barplot

decoupler.plot_barplot(acts, contrast, top=25, vertical=False, cmap='coolwarm', vmin=None, vcenter=0, vmax=None, figsize=(7, 5), dpi=100, return_fig=False, save=None)

Plot barplots showing the top absolute value activities.

Parameters:
actsDataFrame

Activities obtained from any method.

contraststr

Name of the contrast (row) to plot.

topint

Number of top features to plot.

verticalbool

Whether to plot verticaly or horizontaly.

cmapstr

Colormap to use.

vminfloat, None

The value representing the lower limit of the color scale.

vcenterfloat, None

The value representing the center of the color scale.

vmaxfloat, None

The value representing the upper limit of the color scale.

figsizetuple

Figure size.

dpiint

DPI resolution of 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.