Skip to contents

Does the input object contain clusters?

Usage

hasClusters(x)

Arguments

x

Object.

Value

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

Note

Updated 2023-09-29.

Examples

data(SingleCellExperiment_Seurat, package = "AcidTest")

## TRUE ====
if (requireNamespace("AcidSingleCell", quietly = TRUE)) {
    hasClusters(SingleCellExperiment_Seurat)
}
#> [1] TRUE

## FALSE ====
hasClusters(list())
#> [1] FALSE