Percentage of zeros vs. library depth
Source:R/AllGenerics.R
, R/zerosVsDepth-methods.R
zerosVsDepth.Rd
Calculate and visualize the dropout rate.
Usage
zerosVsDepth(object, ...)
# S4 method for SingleCellExperiment
zerosVsDepth(object, assay = 1L)
# S4 method for SummarizedExperiment
zerosVsDepth(object, assay = 1L)
# S4 method for matrix
zerosVsDepth(object)
# S4 method for sparseMatrix
zerosVsDepth(object)
Examples
data(SingleCellExperiment_splatter, package = "AcidTest")
## SingleCellExperiment ====
object <- SingleCellExperiment_splatter
df <- zerosVsDepth(object)
summary(df)
#> [1] "DataFrame object of length 5 with 0 metadata columns"
colnames(df)
#> [1] "dropout" "depth" "sampleId"
#> [4] "sampleName" "interestingGroups"