xchrom.pl.plot_motif_activity

xchrom.pl.plot_motif_activity(cell_embedding_ad: AnnData, celltype_key: str, tf_act_raw: AnnData, motif_name: str, save_path: str | None = None)[source]

Plot cell type and standardized motif activity on UMAP.

Parameters:
  • cell_embedding_ad (anndata.AnnData) – AnnData object containing the UMAP embedding.

  • celltype_key (str) – Key for cell-type labels in cell_embedding_ad.obs.

  • tf_act_raw (anndata.AnnData) – AnnData object containing raw TF activity (cells × motifs).

  • motif_name (str) – Name of the motif to plot.

  • save_path (str, optional) – Path to save the plot.

Return type:

None