Does the input object contain multiple samples?
Source:R/check-scalar-hasMultipleSamples.R
check-scalar-hasMultipleSamples.Rd
Does the input object contain multiple samples?
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