sig_contribution: Calculate COSMIC Signature Contribution

Description Usage Arguments Value

View source: R/mutationalpatterns.R

Description

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

1
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.


umccr/gpgr documentation built on Nov. 25, 2021, 1:15 p.m.