SingleCellExperiment
asSingleCellExperiment.Rd
Transforms an SPATA2
object to an object of class
SingleCellExperiment
. See details for more information.
asSingleCellExperiment(object, type = "none", ...)
An object of class spata2
.
The features to be renamed specified according to the following syntax: 'new_feature_name' = 'old_feature_name'. This applies to coordinates, too. E.g. ... ~ 'image_col' = 'x', 'image_row' = 'y' renames the coordinate variables to 'image_col' and 'image_row'.
An object of class SingleCellExperiment
.
Output object contains the count matrix in slot @assays and feature data.frame combined with barcode-spot coordinates in slot @colData.
Slot @metadata is a list that contains the image object.