Samples `n_cells` cells from each sample and restricts the forest to their
branches. Top: the forest coloured by species (plot_forest()) and
with the driver branch and the truncal node highlighted
(plot_sticks()). Bottom: pairwise and marginal VAF spectra of the
sorted samples (plot_vaf()), with mutations labelled as truncal,
driver (acquired on the branch from the root to the first cell of
`driver_mutant`) or subclonal.
Usage
plot_data(
forest,
muts,
n_cells = 50,
seed = NULL,
driver_mutant = "B",
vaf_cut = 0.03,
cls = c(subclonal = "gainsboro", driver = "forestgreen", truncal = "darkgoldenrod3")
)Arguments
- forest
Table of forest nodes (see
plot_forest()).- muts
Mutation table with VAF columns and `first_cell_id`.
- n_cells
Number of cells drawn from each sample.
- seed
Optional seed for the cell sampling.
- driver_mutant
Name of the driver mutant.
- vaf_cut
Minimum VAF shown in the marginal histograms.
- cls
Named vector of colors for the labels `subclonal`, `driver`, `truncal`.

