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.

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")