scanpy_plus.pl.splitplot module

scanpy_plus.pl.splitplot.splitplot(adata, split_by='condition', colour_by='celltype', **kwargs)

Plot each factor of an obs column as separate plots.

Params: adata: anndata obj split_by: str. obs column that should be used for splitting colour_by: str. obs column that should be used for colouring within each split. Can be same as split_by size: int. Point size frameon: bool. legend_loc: str. Same as in sc.pl.umap kwargs: Args to be passed to sc.pl.umap

Returns: None

Note: You have to have colours for the obs col defined in anndata.uns