View source: R/function_estimateCDirect.R
estimate_direct_c | R Documentation |
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)
estimate_direct_c(X.matrix, Gamma, new.data)
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. |
numeric matrix with ncol(X) rows, and ncol(Y) columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.