cellToSample | R Documentation |
Cell-to-sample mappings
cellToSample(object, ...)
## S4 method for signature 'SingleCellExperiment'
cellToSample(object, return = c("factor", "DFrame"))
object |
Object. |
return |
|
... |
Additional arguments. |
Sample identifiers must be defined in sampleId
column in colData()
.
"factor"
: Named factor
containing the samples as the levels and cell
identifiers as the names.
"DFrame"
: S4 data frame containing sampleId
column and cell identifiers
as the row names.
Updated 2023-09-26.
data(SingleCellExperiment_splatter, package = "AcidTest")
## SingleCellExperiment ====
object <- SingleCellExperiment_splatter
c2s <- cellToSample(object)
table(c2s)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.