View source: R/readSpatialOverlay.R
readSpatialOverlay | R Documentation |
SpatialOverlay
from tiff file and annotationsCreate an instance of class SpatialOverlay
by reading data from OME-TIFF and annotation sheet.
readSpatialOverlay(
ometiff,
annots,
slideName,
image = FALSE,
res = NULL,
saveFile = FALSE,
outline = TRUE,
...,
segCol = NULL
)
ometiff |
path to OME-TIFF |
annots |
path to annotation file: can be labWorksheet, DA excel file, or delimted file |
slideName |
name of slide |
image |
should image be extracted from OME-TIFF |
res |
resolution of image 1 = largest, higher number = smaller This value will affect the coordinates of the overlays. res = 2, resolution is 1/2 the size as the raw image res = 3, resolution is 1/4 the size as the raw image res = 4, resolution is 1/8 the size as the raw image resolution = 1/2^(res-1) |
saveFile |
should xml & image be saved, file is saved in working directory with same name as OME-TIFF |
outline |
returned coordinates only contain outlinearies, will not work for segmented ROIs |
... |
additional parameters for 'readLabWorksheet' like 'roiCol' and 'slideCol' |
segCol |
additional parameter for ‘annotMatching' if default search doesn’t work. For default search, set to NULL |
SpatialOverlay
of slide
SpatialOverlay-class
muBrain_GxT <- readRDS(unzip(system.file("extdata", "muBrain_GxT.zip",
package = "SpatialOmicsOverlay")))
image <- downloadMouseBrainImage()
muBrain <- readSpatialOverlay(ometiff = image, annots = muBrain_GxT[,1:5],
slideName = "D5761 (3)", image = TRUE, res = 8,
saveFile = FALSE, outline = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.