plot_nnls_solution: Plots a simple NNLS solution

Description Usage Arguments Details Value

Description

Obtains the naive NNLS signature solution and plots the exposures.

Usage

1
plot_nnls_solution(exposures_mcmc_output, signature_trim = "Signature")

Arguments

exposures_mcmc_output

Details

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.

Value

A ggplot object showing the NNLS solution for each exposure value.


eyzhao/SignIT documentation built on Dec. 6, 2019, 11:45 a.m.