solveDampenedWLS: Solve overdetermined system of equations, Sx=B, for x, using...

Description Usage Arguments Value Examples

View source: R/functions.R

Description

Dampened weighted least squares involves solving:

min_{x>0} ∑_{i=1}^n w_i(B_i-(Sx)_i)^2

through an iterative approach. S is a gene by cell-type signature matrix, B is a list containing bulk data, and x is the number of cells from each cell type present in the bulk data. x is then normalized:

\tilde{x} = \frac{x}{∑_{j=1}^n x},

where j is the cell-type index.

Usage

1

Arguments

S

Gene by cell-type matrix consisting of averaged expression values across cells from each cell type

B

List containing bulk data values.

Value

List containing proportion of each cell type present in bulk data set.

Examples

1
    prop <- solveDampenedWLS(S,B)

PelzKo/dwls documentation built on Dec. 18, 2021, 6:46 a.m.