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)A musica_result object generated by
a mutational discovery or prediction tool.
Name of the sample within the
musica_result object.
If TRUE, the the plot will be made interactive
using plotly. Default FALSE.
Generates a ggplot or plotly object
data(res)
plot_sample_reconstruction_error(res, "TCGA-ER-A197-06A-32D-A197-08")
#> Warning: Removed 85 rows containing missing values (`position_stack()`).