diffExpPerCluster | R Documentation |
Differential expression per cluster
diffExpPerCluster(object, ...)
## S4 method for signature 'SingleCellExperiment'
diffExpPerCluster(object, group, numerator, denominator, ...)
object |
Object. |
group |
|
numerator |
|
denominator |
|
... |
Passthrough arguments to |
list
containing:
caller = "edgeR"
: DGELRT
.
caller = "DESeq2"
: DESeqResults
.
Updated 2022-10-25.
Cluster identity (ident
) must be defined in colData()
for this
function to work.
data(SingleCellExperiment_Seurat, package = "AcidTest")
## SingleCellExperiment ====
if (goalie::isInstalled("edgeR")) {
object <- SingleCellExperiment_Seurat
group <- factor(c("group1", "group2"))
SummarizedExperiment::colData(object)$group <- group
suppressMessages({
x <- diffExpPerCluster(
object = object,
group = "group",
numerator = "group2",
denominator = "group1",
caller = "edgeR"
)
})
class(x)
lapply(x, class)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.