complex_heatmap_unique: Plot gene expression across groups using ComplexHeatmap

View source: R/plot_heatmap.R

complex_heatmap_uniqueR Documentation

Plot gene expression across groups using ComplexHeatmap

Description

This function is for identifying the group-specific genes in a selected celltype and plot the expression of those genes in heatmap.

Usage

complex_heatmap_unique(
  seu_obj,
  celltype,
  group,
  gene_highlight = NULL,
  logfc = 0.5,
  return_marker = FALSE,
  col_fun = colorRamp2(c(-2, -1, 0, 1, 2), rev(c("#BF0080", "#CE6EAE", "#dddddd",
    "#6EAE6E", "#008000")))
)

Arguments

seu_obj

A complete Seurat object

celltype

Cell types selected for gene plot.

group

The group to show on x axis. One of the column names in meta.data.

gene_highlight

Gene names showing on the rows. Default: all genes

logfc

Fold change to select the genes

return_marker

If TRUE, a list of specific gene will be returned.

col_fun

Heatmap color key.

Value

A ComplexHeatmap object or/and a gene list


HaojiaWu/plot1cell documentation built on Nov. 13, 2023, 9:20 a.m.