mmc.umap_thresh()
-
mmochi.utils.umap_thresh(adata, h, markers=None, batch_key=BATCH_KEY, data_key=DATA_KEY, umap_basis='X_umap', cmap=None, **kwargs) Plots UMAPs for the listed markers with thresholded expression data for the markers overlayed on top. This visualization can be useful to see where protein and genes are expressed in the UMAP.
Parameters: - adata (
AnnData) – Object with .obsm[‘X_umap’] with UMAP representation and thresholds to color the umap - h – hierarchy object to draw classification markers from
- markers (
Optional[List[str]] (default:None)) – Markers to create UMAPs for If None (default), creates UMAP for all markers in h - batch_key (
str(default:BATCH_KEY)) – Name of batch in adata to use for UMAP, uses batch_iterator to find key - data_key (
Optional[str] (default:DATA_KEY)) – Location in the .obsm to look for marker name If None, searches adata.var_names - umap_basis (
str(default:'X_umap')) – Passed to scanpy.pl.embedding as basis - cmap (
Optional[List[str]] (default:None)) – List of colors or color map information used to color the feature expression on the UMAP - kwargs – Arguments to be passed to scanpy.pl.embedding
- adata (