Obtain the top cellular barcodes, based on counts.

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

Arguments

object

Object.

n

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

Value

list. Top barcodes as character, split by sampleID.

Examples

data(sce) x <- topCellsPerSample(sce) lapply(x, head)
#> $sample1 #> [1] "cell028" "cell100" "cell095" "cell046" "cell043" "cell068" #> #> $sample2 #> [1] "cell044" "cell066" "cell072" "cell010" "cell084" "cell047" #>