scdemon.plotting.plot_heatmap_avgexpr
- scdemon.plotting.plot_heatmap_avgexpr(obj, graph_id, covariate_list=None, attr='leiden', cbar=False, imgdir='./', ext='png')
Plot heatmap of modules’ average expression against each covariate level
- Parameters:
obj (modules) – Object (
modules) with graph and modules to plotcovariate_list (list) – List of covariates to plot
graph_id (str) – Name of graph to plot
attr (str) – Name of modules in graph to plot
cbar (bool) – Whether to show colorbar on side
imgdir (str) – Directory where images will go
ext (str) – Extension for image (
'png'or'pdf')