plot_gw_vaf: Plot genome-wide VAFs.

View source: R/plot_genome_wide_mutations.R

plot_gw_vafR Documentation

Plot genome-wide VAFs.

Description

@description Plot a genome-wide scatter plot of mutation VAFs. The function can randomly subset the points to show.

Usage

plot_gw_vaf(x, N = 5000, chromosomes = paste0("chr", c(1:22, "X", "Y")))

Arguments

x

A CNAqc object.

N

Mutations to use, randomly sampled.

chromosomes

The chromosomes to use for this plot.

Value

A ggplot2 plot.

Examples

data('example_dataset_CNAqc', package = 'CNAqc')
x = init(mutations = example_dataset_CNAqc$mutations, cna = example_dataset_CNAqc$cna, purity = example_dataset_CNAqc$purity)

plot_gw_vaf(x)

# Downsampling examples
plot_gw_vaf(x, N = 100)
plot_gw_vaf(x, N = 1000)
plot_gw_vaf(x, N = 10000)

caravagnalab/CNAqc documentation built on Oct. 31, 2024, 3:54 a.m.