setBulk {dittoSeq} | R Documentation |
Set whether a SingleCellExperiment object should be treated as bulk versus single-cell by dittoSeq
setBulk(object, set = TRUE) ## S4 method for signature 'SingleCellExperiment' setBulk(object, set = TRUE)
object |
A target SingleCellExperiment object |
set |
Logical, whether the object should be considered as bulk (TRUE) or not (FALSE) |
A SingleCellExperiment
object with "bulk" internal metadata set to set
example(importDittoBulk, echo = FALSE) myRNA isBulk(myRNA) scRNA <- setBulk(myRNA, FALSE) isBulk(scRNA) # Now, if we make a heatmap with this data, we will see that single-cell # defaults (ordering by the first 'annot.by' & cell names not shown) are used. dittoHeatmap(scRNA, getGenes(scRNA)[1:30], annot.by = c("clustering", "groups"), main = "isBulk(object) == FALSE")