plot_gw_depth: Plot genome-wide coverage.

View source: R/plot_genome_wide_mutations.R

plot_gw_depthR Documentation

Plot genome-wide coverage.

Description

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

Usage

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

Arguments

x

A CNAqc object.

N

Mutations to use, randomly sampled.

chromosomes

The chromosome 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_depth(x)

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

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