Skip to contents

Generate a heatmap using pheatmap with sensible defaults for RNA-seq.

Usage

quickmap(x, metadata = NULL, remove_var = NULL, ...)

Arguments

x

numeric matrix to be passed onto pheatmap function

metadata

column metadata to add to heatmap annotation. Default NULL

remove_var

Remove this proportion of features based on variance across rows. Default NULL.

...

args to be passed to pheatmap() function

Value

pheatmap object. See ?pheatmap::pheatmap() for details

Details

The default arguments to pheatmap::pheatmap() are:

  • scale = "row"

  • show_rownames = FALSE

  • border_col = NA

  • cluster_rows = TRUE

  • cluster_cols = TRUE

  • color = colorRampPalette(c("dodgerblue3", "grey99", "firebrick3"))(30)

  • treeheight_row = 0

  • clustering_distance_rows = "correlation"

  • clustering_distance_cols = "euclidean"

  • clustering_method = "ward.D2"

  • angle_col = 315

Examples


# Display heatmap of the 10\% most variable features and add a title
quickmap(GSE161650_lc, remove_var = 0.9, main = "THZ1 vs DMSO")
#> Removing 90% lowest variance features...


# Override quickmap defaults by supplying additional args
quickmap(GSE161650_lc, remove_var = 0.9, cluster_rows = FALSE, cluster_cols = FALSE)
#> Removing 90% lowest variance features...