plot_data: Function to visualize the input and reconstructed mutation...

View source: R/plot_mutations.R

plot_dataR Documentation

Function to visualize the input and reconstructed mutation counts.

Description

Function to visualize the input and reconstructed mutation counts.

Usage

plot_data(
  x,
  types = get_types(x),
  samples = get_samples(x),
  clusters = get_cluster_labels(x),
  reconstructed = TRUE,
  color_by_sigs = FALSE
)

Arguments

x

bascule object.

types

List of variant types to visualize.

samples

List of samples to visualize.

clusters

List of clusters to visualize.

reconstructed

Logical. If 'TRUE', the reconstructed counts, i.e., computed as alpha x beta, will be visualized.

color_by_sigs

Logical. If 'TRUE', each context will report the number of mutations split by signature.

Value

ggplot object.


caravagnalab/basilica documentation built on June 11, 2025, 10:18 p.m.