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.
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"
#>