omicverse.pl.marker_heatmap¶
- omicverse.pl.marker_heatmap(adata, marker_genes_dict=None, groupby=None, color_map='RdBu_r', use_raw=True, standard_scale='var', expression_cutoff=0.0, bbox_to_anchor=(5, -0.5), figsize=(8, 4), spines=False, fontsize=12, show_rownames=True, show_colnames=True, save_path=None, ax=None)[source]¶
Create a dot plot heatmap showing marker gene expression using PyComplexHeatmap.
- Parameters:
adata (
AnnData) – Annotated data object with expression datamarker_genes_dict (
dict(default:None)) – Dictionary mapping cell types to marker genesgroupby (
str(default:None)) – Column name for cell type groupingcolor_map (
str(default:'RdBu_r')) – Colormap for expression valuesuse_raw (
bool(default:True)) – Whether to use raw expression datastandard_scale (
str(default:'var')) – Expression standardization methodexpression_cutoff (
float(default:0.0)) – Minimum expression thresholdbbox_to_anchor (
tuple(default:(5, -0.5))) – Legend positionfigsize (
tuple(default:(8, 4))) – Figure dimensionsspines (
bool(default:False)) – Whether to show plot spinesfontsize (
int(default:12)) – Font size for labelsshow_rownames (
bool(default:True)) – Whether to display row namesshow_colnames (
bool(default:True)) – Whether to display column namessave_path (
str(default:None)) – File path for saving plotax (default:
None) – Existing matplotlib axes object
- Returns:
matplotlib.figure.Figure object ax: matplotlib.axes.Axes object
- Return type:
fig