## ----echo=FALSE--------------------------------------------------------------- knitr::opts_chunk$set(error=FALSE, warning=FALSE, message=FALSE) library(BiocStyle) self <- Biocpkg("alabaster.spatial") ## ----------------------------------------------------------------------------- library(SpatialExperiment) example(read10xVisium, echo=FALSE) # Making the column names unique. colnames(spe) <- make.unique(colnames(spe)) spe ## ----------------------------------------------------------------------------- library(alabaster.spatial) tmp <- tempfile() saveObject(spe, tmp) list.files(tmp, recursive=TRUE) ## ----------------------------------------------------------------------------- roundtrip <- readObject(tmp) plot(imgRaster(getImg(roundtrip, "section1"))) ## ----------------------------------------------------------------------------- sessionInfo()