Does the object contain quality control metrics?

hasMetrics(x, colData = c("nCount", "nFeature"), .xname = getNameInParent(x))

Arguments

x

SummarizedExperiment.

colData

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

.xname

Name of object defined in x. Not intended to be used directly.

Value

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

Note

Updated 2019-08-12.

Examples

if (requireNamespace("SummarizedExperiment", quietly = TRUE)) { data(RangedSummarizedExperiment, package = "acidtest") x <- RangedSummarizedExperiment hasMetrics(x) }
#> [1] FALSE #> Cause: 'x' does not contain metrics in 'colData()': nCount, nFeature.