omicverse.single.plot_metacells¶
- omicverse.single.plot_metacells(ax, metacells_ad, use_rep='X_umap', color='#1f77b4', size=15, edgecolors='b', linewidths=0.6, alpha=1, **kwargs)[source]¶
Plot metacell centroids on a given embedding axis.
- Parameters:
ax (matplotlib.axes.Axes) – Target axis used for plotting.
metacells_ad (anndata.AnnData) – Metacell-level AnnData containing
SEACellassignments.use_rep (str, default='X_umap') – Embedding key in
metacells_ad.obsmfor coordinates.color (str, default='#1f77b4') – Marker face color.
size (int, default=15) – Marker size.
edgecolors (str, default='b') – Marker edge color.
linewidths (float, default=0.6) – Marker edge width.
alpha (float, default=1) – Marker transparency.
**kwargs – Additional keyword arguments passed to
Axes.scatter.
- Returns:
Axis with metacell points overlaid.
- Return type: