vc_heatmap | R Documentation |
Plot a variant-cell heatmap for cell clonal assignment
vc_heatmap(mat, prob, Config, show_legend = FALSE)
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 |
a pheatmap object
a ggplot object
This function makes use of the pheatmap
packages
data(example_donor) assignments <- clone_id(A_clone, D_clone, Config = tree$Z) fig <- vc_heatmap(assignments$prob_variant, assignments$prob, tree$Z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.