regvelo.plotting.cellfate_perturbation

regvelo.plotting.cellfate_perturbation(adata, df, color_label='celltype_cluster', **kwargs)[source]

Plot depletion likelihood or score for transcription factors across terminal states.

Parameters:
  • adata (AnnData) – Annotated data matrix of the unperturbed system, used to extract color palette info.

  • df (DataFrame) –

    DataFrame containing perturbation results. Must include columns:

    • "TF",

    • "Terminal state",

    • and either "Depletion likelihood" or "Depletion score".

  • color_label (str) – Key in adata.obs used to extract categorical color palette from adata.uns.

  • **kwargs (Any) –

    Additional optional parameters:

    • fontsize : Font size for axis labels and title (default: 14).

    • figsize : Size of the plot (default: (12, 6)).

    • legend_loc : Location of the legend (default: "center left").

    • legend_bbox : Positioning of the legend bounding box (default: (1.02, 0.5)).

    • xlabel : Label for the x-axis (default: "TF").

    • ylabel : Label for the y-axis (default is determined by the score type).

Return type:

None

Returns:

: Nothing, just plots the figure.