Extracts residuals from a deconvolution model. As the model uses a reduced
signature gene set for deconvolution, in order to extract residuals for all
genes, these need to recalculated by supplying the bulk count matrix test.
# S3 method for deconv
residuals(object, test = NULL, arith_mean = FALSE, use_filter = FALSE, ...)Matrix of residuals.
a 'deconv' class object
bulk gene expression matrix assumed to be in raw counts
logical, whether to use arithmetic mean as gene signature
logical, whether to use denoised signature matrix
retained for class compatibility