Description Usage Arguments Value Author(s) See Also Examples
Obtain the top cellular barcodes based on UMI counts.
1 2 3 4 5 6 7 8 9 | topBarcodes(object, ...)
## S4 method for signature 'SingleCellExperiment'
topBarcodes(object, n = 1000L,
return = c("data.frame", "list"))
## S4 method for signature 'seurat'
topBarcodes(object, n = 1000L, return = c("data.frame",
"list"))
|
object |
Object. |
... |
Additional arguments. |
n |
Number of barcodes to return per sample. |
return |
Return type. Uses |
"list
": list
containing top barcodes as a character
vector, split by
sampleID
.
"data.frame
": tibble
grouped by sampleID
and arranged by nUMI
column in descending order. Cellular barcodes are in the cellID
column.
Michael Steinbaugh
Other Data Functions: aggregateReplicates
,
cell2sample
, fetchGeneData
,
mapCellsToSamples
,
metricsPerSample
, sampleData
,
selectSamples
,
subsetPerSample
1 2 3 4 5 6 7 8 | # SingleCellExperiment ====
# list
x <- topBarcodes(cellranger_small, return = "list")
lapply(x, class)
# data.frame
x <- topBarcodes(cellranger_small, return = "data.frame")
glimpse(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.