pegasus.heatmap¶
-
pegasus.
heatmap
(adata, keys, by, reduce_function=<function mean>, use_raw=None, cmap='Reds', **kwds)[source]¶ Generate a heatmap.
- Parameters
adata (
AnnData
) – Annotated data matrix.keys (
Union
[str
,List
[str
],Tuple
[str
]]) – Keys for accessing variables of adata.var_namesby (
str
) – Group plot by specified observation.cmap (
Union
[str
,List
[str
],Tuple
[str
]]) – Color map name (hv.plotting.list_cmaps()) or a list of hex colors. See http://holoviews.org/user_guide/Styling_Plots.html for more information.reduce_function (
Callable
[[ndarray
],float
]) – Function to summarize an element in the heatmapuse_raw (
Optional
[bool
]) – Use raw attribute of adata if present.
- Return type
Element