Export spatial coordinates to a JSON file
export_coordinates.Rd
Utility function to prepare data for FeatureViewer
.
The exported JSON file should be exported to the same directory as
the H&E image tiles generated with TileImage
Examples
library(semla)
se_mbrain <- readRDS(system.file("extdata/mousebrain",
"se_mbrain",
package = "semla"))
export_coordinates(se_mbrain, outdir = tempdir(), overwrite = TRUE)
#> ℹ Fetching coordinates for sample 1
#> ℹ Exporting Visium coordinates to <DATADIR>/coords_Visium_1.json