check-scalar-hasMetrics: Does the object contain quality control metrics?

check-scalar-hasMetricsR Documentation

Does the object contain quality control metrics?

Description

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)
}

acidgenomics/r-goalie documentation built on Jan. 12, 2024, 4:15 a.m.