Calculate and visualize the dropout rate.

zerosVsDepth(object, ...)

# S4 method for matrix
zerosVsDepth(object)

# S4 method for sparseMatrix
zerosVsDepth(object)

# S4 method for SummarizedExperiment
zerosVsDepth(object, assay = 1L)

# S4 method for SingleCellExperiment
zerosVsDepth(object, assay = 1L)

Arguments

object

Object.

assay

vector(1). Name or index of count matrix slotted in assays(). When passing in a string, the name must be defined in assayNames().

...

Additional arguments.

Value

matrix.

Examples

data(sce, package = "acidtest") x <- zerosVsDepth(sce) summary(x)
#> Length Class Mode #> 5 DataFrame S4
#> [1] "dropout" "depth" "sampleID" #> [4] "sampleName" "interestingGroups"