sce_to_spe | R Documentation |
This function converts a spot-level
SingleCellExperiment-class
(SCE) object as generated by fetch_data()
to a
SpatialExperiment-class (SPE)
object.
sce_to_spe(sce = fetch_data("sce"), imageData = NULL)
sce |
Defaults to the output of
|
imageData |
A |
Note that the resulting object is a bit more complex than a regular SPE because it contains the data from the spatialLIBD project which you might otherwise have to generate for your own data.
A a SpatialExperiment-class object.
Brenda Pardo, Leonardo Collado-Torres
if (enough_ram()) {
## Download the sce data
sce <- fetch_data("sce")
## Transform it to a SpatialExperiment object
spe <- sce_to_spe(sce)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.