View source: R/function_gradient.R
gradient_cor_trace | R Documentation |
This function returns the value of the gradient of our Loss-function L.
For the mathematical theory see Goertler et al, 2018.
For examples see code of train_deconvolution_model
gradient_cor_trace(X, Y, C, tweak, estimate.c.type)
Y |
numeric matrix with samples as columns, and features/genes as rows. Holding bulk gene expressions |
C |
numeric matrix with reference samples as rows, and samples as columns. Holding cellular composionts |
tweak |
numeric vector with length of nrow(X). In the Loss function above tweak is named "g" |
estimate.c.type |
string, either "non_negative", or "direct". Indicates how the algorithm finds the solution of arg min_C ||diag(g)(Y - XC)||_2.
|
X.matrix |
numeric matrix, with features/genes as rows, and cell types as column. Each column of X.matrix is a reference expression profile |
numeric list, same length as "tweak"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.