popari.tl.plot_gene_trajectories

popari.tl.plot_gene_trajectories#

popari.tl.plot_gene_trajectories(trained_model, gene_subset, covariate_values, level=0, **subplots_kwargs)[source]#

Plot metagene activation lineplots 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.

  • covariate_values (Sequence[float]) – dependent vairable values against which gene trajectories will be plotted.

Returns:

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