imputeZeros: Impute the zeros using the estimated parameters from the ZINB...

View source: R/zinbwave.R

imputeZerosR Documentation

Impute the zeros using the estimated parameters from the ZINB model.

Description

Given a matrix of counts and a zinb model, this function computes the imputed counts under a zero-inflated negative binomial (ZINB) model.

Usage

imputeZeros(model, x)

Arguments

model

the zinb model

x

the matrix of counts n cells by J genes

Value

the matrix of imputed counts.

Examples

se <- SummarizedExperiment(matrix(rpois(60, lambda=5), nrow=10, ncol=6),
    colData = data.frame(bio = gl(2, 3)))
m <- zinbFit(se, X=model.matrix(~bio, data=colData(se)),
    BPPARAM=BiocParallel::SerialParam())
imputeZeros(m, t(assay(se)))

drisso/zinbwave documentation built on March 18, 2024, 5:13 p.m.