Plot single-cell CNV calls along with the clonal phylogeny
plot_phylo_heatmap(
gtree,
joint_post,
segs_consensus,
clone_post = NULL,
p_min = 0.9,
annot = NULL,
pal_annot = NULL,
annot_title = "Annotation",
annot_scale = NULL,
clone_dict = NULL,
clone_bar = TRUE,
clone_stack = TRUE,
pal_clone = NULL,
clone_title = "Genotype",
clone_legend = TRUE,
line_width = 0.1,
tree_height = 1,
branch_width = 0.2,
tip_length = 0.2,
annot_bar_width = 0.25,
clone_bar_width = 0.25,
bar_label_size = 7,
tvn_line = TRUE,
clone_line = FALSE,
exclude_gap = FALSE,
root_edge = TRUE,
raster = FALSE,
show_phylo = TRUE
)
ggplot panel
tbl_graph The single-cell phylogeny
dataframe Joint single cell CNV posteriors
datatframe Consensus segment dataframe
dataframe Clone assignment posteriors
numeric Probability threshold to display CNV calls
dataframe Cell annotations, dataframe with 'cell' and additional annotation columns
named vector Colors for cell annotations
character Legend title for the annotation bar
ggplot scale Color scale for the annotation bar
named vector Clone annotations, mapping from cell name to clones
logical Whether to display clone bar plot
character Whether to plot clone assignment probabilities as stacked bar
named vector Clone colors
character Legend title for the clone bar
logical Whether to display the clone legend
numeric Line width for CNV heatmap
numeric Relative height of the phylogeny plot
numeric Line width in the phylogeny
numeric Length of tips in the phylogeny
numeric Width of annotation bar
numeric Width of clone genotype bar
numeric Size of sidebar text labels
logical Whether to draw line separating tumor and normal cells
logical Whether to display borders for clones in the heatmap
logical Whether to mark gap regions
logical Whether to plot root edge
logical Whether to raster images
logical Whether to display phylogeny on y axis
p = plot_phylo_heatmap(
gtree = phylogeny_example,
joint_post = joint_post_example,
segs_consensus = segs_example)
Run the code above in your browser using DataLab