Skip to contents

Does the object contain quality control metrics?

Usage

hasMetrics(x, colData = c("nCount", "nFeature"))

Arguments

x

SummarizedExperiment.

colData

character. Column names in colData() containing expected quality control metrics.

Value

TRUE on success; FALSE on failure, with cause set.

Note

Updated 2021-01-04.

Examples

if (requireNamespace("SummarizedExperiment", quietly = TRUE)) {
    data(RangedSummarizedExperiment, package = "AcidTest")
    x <- RangedSummarizedExperiment
    hasMetrics(x)
}
#> [1] FALSE