Skip to contents

Plot gene expression programs (GEPs) heatmap

Usage

plotGEPs(x, name = "cNMF", k = NULL, programs = NULL, n_genes = 20)

Arguments

x

A SingleCellExperiment object with cNMF results

name

Character, name of the cNMF result (default "cNMF")

k

Integer, which k value to plot. If NULL, uses optimal k

programs

Integer vector, which programs to plot (default all)

n_genes

Integer, number of top genes per program to show (default 20)

Value

ggplot2 object

Examples

# sce <- runConsensusNMF(sce, k_range = 5:10)
# plotGEPs(sce, programs = 1:3, n_genes = 15)