scanpy_plus.pl.umap3dPlotting module¶
- scanpy_plus.pl.umap3dPlotting.umap3dPlotting(adata, color='celltype', cols=['leiden', 'condition'], title='3D UMAP', marker_size=1, hovermode=True, output_html='outpt.html', figshow=False)¶
Plot umap 3d using plotly express. You have to run umap with 3d first. It expects the coordinates in anndata.obsm[‘X_umap’] which is the default. returns a data frame that it plots.
Options: adata: anndata color: str. color umap by which col cols: list. cols to include in the dataframe title: str marker_size: float. Size of points hovermode: boolean. Whether or not to have mouse over display output_html: str. figshow: boolean. Show figure