Description Usage Arguments Details Value
Obtains the naive NNLS signature solution and plots the exposures.
1 | plot_nnls_solution(exposures_mcmc_output, signature_trim = "Signature")
|
exposures_mcmc_output |
Non-negative least squares computes the value of x which minimizes the residual sum of squares \lVert Ax = b \rVert^2 given a known matrix A and vector b. This provides a simple solution to the mutation signature problem. However, merely minimizing the residual sum of squares may result in overfitting the solution. This plotting function computes and plots a simple NNLS-based solution to the exposure vector and returns a plot. This can serve as a baseline comparison or sanity check against the MCMC methods featured in SignIT.
A ggplot object showing the NNLS solution for each exposure value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.