estimate_nn_c: Estimating non negative C

View source: R/function_estimateCNN.R

estimate_nn_cR Documentation

Estimating non negative C

Description

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

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

with non negative constraint over C, using the package 'nnls' (non-negative least squares)

Usage

estimate_nn_c(X.matrix = NA, new.data, Gamma)

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

new.data

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

Gamma

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

Value

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


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