Skip to contents

Obtain the top cellular barcodes, based on counts.

Usage

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 sample identifier.

Note

Updated 2022-03-02.

Examples

data(SingleCellExperiment_splatter, package = "AcidTest")

## SingleCellExperiment ====
object <- SingleCellExperiment_splatter
x <- topCellsPerSample(object)
lapply(x, head)
#> $sample1
#> [1] "cell006" "cell378" "cell180" "cell150" "cell384" "cell095"
#> 
#> $sample2
#> [1] "cell286" "cell292" "cell285" "cell202" "cell335" "cell309"
#> 
#> $sample3
#> [1] "cell074" "cell262" "cell026" "cell103" "cell275" "cell002"
#> 
#> $sample4
#> [1] "cell295" "cell242" "cell155" "cell065" "cell105" "cell151"
#>