Plots heatmap showing individual gene expression of a pathway

plot_heatmap_pathway_genes(
  expr_mat,
  activity_mat = NULL,
  meta = NULL,
  annot_name = NULL,
  modules_list,
  module,
  cluster_cols = T,
  cluster_rows = T,
  clustering_distance = "euclidean",
  clustering_method = "ward.D2",
  fontsize = 5,
  colors_annot = NULL
)

Arguments

expr_mat

Numeric matrix, containing counts, normalized or not.

activity_mat

Numeric matrix, containing activity for each activation mode of each pathway.

meta

Dataframe containing metadata, with cell labels as rownames.

annot_name

Character, name of the column in meta that should be used to compute homogeneity for.

modules_list

List, with module names as list names and character vectors containing genes in module. Output from read_gmt file for example.

module

Character, pathway for which you want to plot expression.

cluster_cols

Boolean, set to TRUE to perform column clustering.

cluster_rows

Boolean, set to TRUE to perform row clustering.

clustering_distance

Character, distance to use to perform clustering, one of "euclidean","correlation".

clustering_method

Character, one of "ward.D", "ward.D2", "single", "complete", "average" (= UPGMA), "mcquitty" (= WPGMA), "median" (= WPGMC) or "centroid" (= UPGMC).

fontsize

Integer, base fontsize for the plot.

colors_annot

Vector of colors to use.

Value

heatmap plot