Obtain the top cellular barcodes, based on counts.

topCellsPerSample(object, ...)

# S4 method for SingleCellExperiment
topCellsPerSample(object, n = 100L)

Arguments

object

Object.

n

integer(1). Number of barcodes to return per sample.

...

Additional arguments.

Value

list. Top barcodes as character, split by sampleID.

Note

Updated 2019-07-28.

Examples

data(SingleCellExperiment, package = "acidtest") sce <- SingleCellExperiment ## SingleCellExperiment ==== x <- topCellsPerSample(sce) lapply(x, head)
#> $sample1 #> [1] "cell074" "cell015" "cell095" "cell099" "cell040" "cell060" #> #> $sample2 #> [1] "cell039" "cell036" "cell059" "cell027" "cell045" "cell004" #>