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.

Examples

data(sce, package = "acidtest") x <- topCellsPerSample(sce) lapply(x, head)
#> $sample1 #> [1] "cell042" "cell063" "cell009" "cell094" "cell057" "cell037" #> #> $sample2 #> [1] "cell005" "cell074" "cell076" "cell067" "cell018" "cell081" #>