peach.pl.fate_probabilities

peach.pl.fate_probabilities#

peach.pl.fate_probabilities(adata, lineages=None, basis='X_umap', same_plot=False, ncols=3, figsize=None, **kwargs)[source]#

Plot fate probabilities on embedding.

Visualizes the probability of cells committing to each lineage/archetype using CellRank’s plotting functionality.

Parameters:
  • adata (AnnData) – Annotated data matrix with fate probabilities computed.

  • lineages (list of str, optional) – Specific lineages to plot. If None, plots all lineages.

  • basis (str, default: 'X_umap') – Embedding to use (‘X_umap’, ‘X_pca’, etc.).

  • same_plot (bool, default: False) – If True, plots all lineages on same axes (pie chart style). If False, creates separate panel per lineage.

  • ncols (int, default: 3) – Number of columns for multi-panel plot (if same_plot=False).

  • figsize (tuple, optional) – Figure size. If None, automatically determined.

  • **kwargs – Additional arguments passed to CellRank’s plot function.

Returns:

Displays matplotlib figure. CellRank’s plotting functions display directly rather than returning figure objects.

Return type:

None

Raises:

Examples

>>> pc.pl.fate_probabilities(adata, same_plot=False, ncols=3)
>>> pc.pl.fate_probabilities(adata, lineages=["archetype_3", "archetype_5"], same_plot=True)