popari.tl.plot_gene_activations

popari.tl.plot_gene_activations#

popari.tl.plot_gene_activations(trained_model, gene_subset, level=0)[source]#

Plot metagene activation heatmaps for target genes across all groups.

This type of analysis is only valid for runs of Popari in which metagene_mode="differential" was used.

Parameters:
  • trained_model (Popari) – the trained Popari model.

  • gene_subset (Sequence[str]) – names of genes to plot for.

Returns:

The names of genes that are differentially expressed with respect to their group.