infercnvpy.pl.chromosome_heatmap_summary#
- infercnvpy.pl.chromosome_heatmap_summary(adata, *, groupby='cnv_leiden', use_rep='cnv', cmap='bwr', figsize=(16, 10), show=None, save=None, **kwargs)#
Plot a heatmap of average of the smoothed gene expression by chromosome per category in groupby.
Wrapper around
scanpy.pl.heatmap().- Parameters:
adata (
AnnData) – annotated data matrixgroupby (
str(default:'cnv_leiden')) – group the cells by a categorical variable from adata.obs. It usually makes sense to either group by unsupervised clustering obtained frominfercnvpy.tl.leiden()(the default) or a cell-type label.use_rep (
str(default:'cnv')) – Key under which the result frominfercnvpy.tl.infercnv()are stored.figsize (
tuple[int,int] (default:(16, 10))) – (width, height) tuple in inchesshow (
Optional[bool] (default:None)) – Whether to show the figure or to return the axes objects.save (
Union[str,bool,None] (default:None)) – IfTrueor astr, save the figure. A string is appended to the default filename. Infer the filetype if ending on{'.pdf', '.png', '.svg'}.**kwargs – Arguments passed on to
scanpy.pl.heatmap().
- Return type:
- Returns:
If
showis False, a dictionary of axes.