lsqnonneg: Non-negative least squares fitting

lsqnonnegR Documentation

Non-negative least squares fitting

Description

Ripped least squares fitting function from pracma

Usage

lsqnonneg(x, ...)

## Default S3 method:
lsqnonneg(mut.context.counts, signature.profiles)

## S3 method for class 'matrix'
lsqnonneg(mut.context.counts, signature.profiles, verbose = F)

## S3 method for class 'data.frame'
lsqnonneg(mut.context.counts, signature.profiles, verbose = F)

Arguments

mut.context.counts

A numeric vector of mutation context counts

signature.profiles

A matrix containing the mutational signature profiles, where rows are the mutation contexts and the columns are the mutational signatures.

Value

A vector returned containing the the absolute contribution of each signature


UMCUGenetics/mutSigExtractor documentation built on Aug. 30, 2024, 2:12 p.m.