decoupler.plot_filter_by_prop

decoupler.plot_filter_by_prop(adata, min_prop=0.2, min_smpls=2, cmap='viridis', figsize=(5, 4), dpi=100, ax=None, return_fig=False, save=None, **kwargs)

Plot to help determining the thresholds of the decoupler.filter_by_prop function.

Parameters:
adataAnnData

AnnData obtained after running decoupler.get_pseudobulk. It requieres .layer['psbulk_props'].

min_propfloat

Minimum proportion of cells that express a gene in a sample.

min_smplsint

Minimum number of samples with bigger or equal proportion of cells with expression than min_prop.

cmapstr

Colormap to use.

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}.

kwargsdict

Other keyword arguments are passed through to matplotlib.pyplot.hist.

Returns:
figFigure, None

If return_fig, returns Figure object.