plot_sample_reconstruction_error: Plot reconstruction error for a sample

View source: R/plotting.R

plot_sample_reconstruction_errorR Documentation

Plot reconstruction error for a sample

Description

Displays the observed distribution of counts for each mutation type, the distribution of reconstructed counts for each mutation type using the inferred mutational signatures, and the difference between the two distributions.

Usage

plot_sample_reconstruction_error(result, sample, plotly = FALSE)

Arguments

result

A musica_result object generated by a mutational discovery or prediction tool.

sample

Name of the sample within the musica_result object.

plotly

If TRUE, the the plot will be made interactive using plotly. Default FALSE.

Value

Generates a ggplot or plotly object

Examples

data(res)
plot_sample_reconstruction_error(res, "TCGA-ER-A197-06A-32D-A197-08")

campbio/musicatk documentation built on July 14, 2024, 8:28 a.m.