Skip to contents

This function is used to represent CNV on a heatmap.

Usage

cnv_plot_heatmap(table_cnv, chr = NULL, mode = "all", ...)

Arguments

table_cnv

DATAFRAME : dataframe (genes x cells) containing CNV. Genes must be in the transcriptome order, and cells in the expected order (no default).

chr

VECTOR : a vector containing the chromosome for each gene. It must be the same length as rownames(table_cnv). If not provided, there will be no chromosome annotation (default to NULL)

mode

CHARACTER : either "all" or "summary" to plot all cells or a summary of gain and loss for all cells (default to "all")

...

other parameter for ComplexHeatmap::Heatmap

Value

An object of class ComplexHeatmap. Use ComplexHeatmap::draw() to visualize it.