Learn R Programming

cellGeometry (version 0.5.7)

residuals.deconv: Extract Deconvolution Residuals

Description

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.

Usage

# S3 method for deconv
residuals(object, test = NULL, arith_mean = FALSE, use_filter = FALSE, ...)

Value

Matrix of residuals.

Arguments

object

a 'deconv' class object

test

bulk gene expression matrix assumed to be in raw counts

arith_mean

logical, whether to use arithmetic mean as gene signature

use_filter

logical, whether to use denoised signature matrix

...

retained for class compatibility