snapatac2.pl.umap#
- snapatac2.pl.umap(adata, color=None, use_rep='X_umap', marker_size=None, marker_opacity=1, sample_size=None, **kwargs)[source]#
Plot the UMAP embedding.
- Parameters:
adata (AnnData | np.ndarray) – Annotated data matrix.
color (str | np.ndarray | None) – If the input is a string, it will be used the key to retrieve values from
obs.use_rep (str) – Use the indicated representation in
.obsm.marker_size (float) – Size of the dots.
marker_opacity (float) – Opacity of the dots.
sample_size (int | None) – If the number of cells is larger than
sample_size, a random sample ofsample_sizecells will be used for plotting.kwargs – Additional arguments passed to
render_plotto control the final plot output. Please seerender_plotfor details.
- Returns:
If
show=Falseandout_file=None, anplotly.graph_objects.Figurewill be returned, which can then be further customized using the plotly API.- Return type:
‘plotly.graph_objects.Figure’ | None