SummarizedExperiment
asSummarizedExperiment.Rd
Transforms an SPATA2
object to an object of class
SummarizedExperiment
. See details for more information.
asSummarizedExperiment(object, ...)
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 SummarizedExperiment
.
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 in slot $image.