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

Description Usage Arguments Value References Examples

View source: R/plotting.R

Description

Plot a variant-cell heatmap for cell clonal assignment

Usage

1
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

1
2
3
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 Aug. 21, 2019, 3:31 p.m.