Skip to contents

Finds the linear combination of COSMIC (2015 and 2020) mutation signatures that most closely reconstructs the SNV mutation matrix by solving the nonnegative least-squares constraints problem.

Usage

sig_contribution(mut_mat, signatures)

Arguments

mut_mat

Mutation count matrix (dimensions: m rows (mutation types) X 1 column (sample)).

signatures

Signature matrix (dimensions: m rows (mutation types) X n columns (signatures))

Value

A list with the COSMIC 2015 and 2020 signature contributions to the sample's signature.