vc_heatmap: Plot a variant-cell heatmap for cell clonal assignment

View source: R/plotting.R

vc_heatmapR Documentation

Plot a variant-cell heatmap for cell clonal assignment

Description

Plot a variant-cell heatmap for cell clonal assignment

Usage

vc_heatmap(mat, prob, Config, show_legend = FALSE)

Arguments

mat

A matrix for heatmap: N variants x M cells. row and column will be sorted automatically.

prob

A matrix of probability of clonal assignment: M cells x K clones

Config

A binary matrix of clonal Configuration: N variants x K clones

show_legend

A bool value: if TRUE, show the legend

Value

a pheatmap object

a ggplot object

References

This function makes use of the pheatmap packages

Examples

data(example_donor)
assignments <- clone_id(A_clone, D_clone, Config = tree$Z)
fig <- vc_heatmap(assignments$prob_variant, assignments$prob, tree$Z)

davismcc/cardelino documentation built on Nov. 19, 2022, 2:44 a.m.