Skip to contents

Does the input object contain multiple samples?

Usage

hasMultipleSamples(x)

Arguments

x

Object.

Value

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

Note

Updated 2022-03-04.

See also

sampleNames.

Examples

data(SingleCellExperiment_splatter, package = "AcidTest")

## TRUE ====
if (requireNamespace("AcidSingleCell", quietly = TRUE)) {
    (SingleCellExperiment_splatter)
}
#> class: SingleCellExperiment 
#> dim: 100 400 
#> metadata(1): date
#> assays(1): counts
#> rownames(100): gene001 gene002 ... gene099 gene100
#> rowData names(10): broadClass description ... ncbiGeneId seqCoordSystem
#> colnames(400): cell001 cell002 ... cell399 cell400
#> colData names(1): sampleId
#> reducedDimNames(0):
#> mainExpName: NULL
#> altExpNames(0):

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