estimate_direct_c: Estimating C

View source: R/function_estimateCDirect.R

estimate_direct_cR Documentation

Estimating C

Description

Given a reference matrix X, a matrix of bulks Y and a g-vector, "estimate_c" finds the solution of

arg min || diag(g) (Y - XC) ||_2

over all C using direct analytical solution: (see Goertler et al. 2018)

C(g) = (X^T Γ X )^(-1) X^T Γ Y

with Γ = diag(g)

Usage

estimate_direct_c(X.matrix, Gamma, new.data)

Arguments

X.matrix

numeric matrix, with features/genes as rows, and cell types as column. Each column of X.matrix is a reference expression profile.

Gamma

numeric matrix, with nrow(X) x nrow(X)

new.data

numeric matrix with samples as columns, and features/genes as rows. In the formula above denoated as Y.

Value

numeric matrix with ncol(X) rows, and ncol(Y) columns


MarianSchoen/DTD documentation built on April 29, 2022, 1:59 p.m.