omicverse.pl.embedding_celltype¶
- omicverse.pl.embedding_celltype(adata, figsize=(6, 4), basis='umap', celltype_key='major_celltype', title=None, celltype_range=(2, 9), embedding_range=(3, 10), xlim=-1000)[source]¶
Plot embedding with celltype color by omicverse.
- Parameters:
adata (
AnnData) – AnnData objectfigsize (
tuple(default:(6, 4))) – tuple, optional (default=(6,4)) Figure sizebasis (
str(default:'umap')) – str, optional (default=’umap’) Embedding methodcelltype_key (
str(default:'major_celltype')) – str, optional (default=’major_celltype’) Celltype key in adata.obstitle (
str(default:None)) – str, optional (default=None) Figure titlecelltype_range (
tuple(default:(2, 9))) – tuple, optional (default=(2,9)) Celltype range to plotembedding_range (
tuple(default:(3, 10))) – tuple, optional (default=(3,10)) Embedding range to plotxlim (
int(default:-1000)) – int, optional (default=-1000) X axis limit
- Returns:
figure and axis ax: axis
- Return type:
fig