Transforms an SPATA2 object to an object of class SummarizedExperiment. See details for more information.

asSummarizedExperiment(object, ...)

Arguments

object

An object of class SPATA2 or, in case of S4 generics, objects of classes for which a method has been defined.

...

Used to absorb deprecated arguments or functions.

Value

An object of class SummarizedExperiment.

Details

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.