TenxPheatmap: Function for plotting heatmap from seurat 10x object

View source: R/TenxPheatmap.R

TenxPheatmapR Documentation

Function for plotting heatmap from seurat 10x object

Description

col_order is a single element or a vector element. By default cells are ordered by the first element of the metadata variable. User can specify col_order as a vector, with cell order prioritised based on the order of the col_order variable.

Usage

TenxPheatmap(
  data,
  metadata,
  col_order = metadata,
  custom_order = NULL,
  custom_order_column = NULL,
  assay = "RNA",
  slot = "scale.data",
  selected_genes,
  main = "",
  hide_annotation = NULL,
  show_rownames = TRUE,
  hclust_rows = FALSE,
  hclust_cols = FALSE,
  gaps_col = NULL,
  cell_subset = NULL,
  treeheight_row = 0,
  use_seurat_colours = TRUE,
  colour_scheme = c("PRGn", "RdYlBu", "Greys"),
  col_ann_order = rev(metadata)
)

Details

A custom_order can be provided, however if so the custom_order_column must also be specified.

By default cells are coloured based on the default ggplot colours (to match seurat cluster colours). This behaviour can be changed by changing use_seurat_colours and colour_scheme (RColourBrewer)

col_ann_order can be specified to change the order in which the column annotations appear on the heatmap


alexthiery/scHelper documentation built on Aug. 26, 2023, 3:42 p.m.