- cellrank.pl.lineages(adata, lineages=None, backward=False, color=None, mode='embedding', time_key='latent_time', **kwargs)
Plot lineages that were uncovered using
For each lineage, we show all cells in an embedding (default is UMAP) and color them by their probability of belonging to this lineage. For cells that are already committed, this probability will be one for their respective lineage and zero otherwise. For naive cells, these probabilities will be more balanced, reflecting the fact that naive cells have the potential to develop towards multiple endpoints.
anndata.AnnData) – Annotated data object.
bool) – Direction of the process.
Literal[‘embedding’, ‘time’]) –
Valid options are:
’embedding’ - plot the embedding while coloring in continuous or categorical observations.
’time’ - plot the pseudotime on x-axis and the probabilities/memberships on y-axis.
str) – Key in
adata.obswhere the pseudotime is stored.
basis – Basis to use when
mode = 'embedding'. If None, use ‘umap’.
Any) – Keyword arguments for
- Return type
Nothing, just plots the figure. Optionally saves it based on