asSingleCellExperiment | R Documentation |
Transforms an SPATA2
object to an object of class
SingleCellExperiment
. See details for more information.
asSingleCellExperiment(
object,
assay_name = activeAssay(object),
bayes_space = FALSE,
verbose = NULL
)
object |
An object of class |
assay_name |
Only relevant if the |
bayes_space |
Logical. If |
verbose |
Logical. If (Warning messages will always be printed.) |
Output object contains the count matrix in slot @assays and feature data.frame combined with coordinates in slot @colData.
Slot @metadata is a list that contains the image object.
An object of class SingleCellExperiment
.
library(SPATA2)
library(SingleCellExperiment)
data("example_data")
object <- example_data$object_UKF275T_diet
sce <- asSingleCellExperiment(object)
class(sce)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.