The function finds the error in a DeCompress-esimated proportion and signature matrix using either known cell-type proportions or the total gene expression matrix

calculateError(estProp, estSig, trueProp = NULL, yref)

Arguments

estProp

matrix, numeric expression matrix of compartment proportions

estSig

matrix, numeric matrix of compartment gene signatures

trueProp

matrix, known proportion matrix, NULL if not known

yref

matrix, numeric matrix of original expression matrix

Value

reconstruction MSE