getError: Calculates error

Description Usage Arguments Value

View source: R/internal.scripts.R

Description

Finds error between calculated trinucleotide context fractions and inputted ones

Usage

1
getError(tumor, signatures, w)

Arguments

tumor

Actual trinucleotide context fractions

signatures

Signatures matrix

w

Weights matrix

Value

Returns the sum squared error between calculated and actual trinucleotide context fractions


deconstructSigs documentation built on May 2, 2019, 4:06 a.m.