createSpatialSegmentation.Rd
Gives access to an interactive user interface where barcode-spots can be interactively annotated.
createSpatialSegmentation(
object,
height = 500,
break_add = NULL,
box_widths = c(4, 4, 4)
)
An object of class spata2
.
Segmentation variables are grouping variables that are stored in
the feature data.frame of the SPATA2
object (such as clustering variables).
They differ from clustering variables in so far as that they are not the result
of unsupervised cluster algorithms but from group assignment the researcher
conducts him/herself (e.g. histological classification).
Therefore, all segmentation variables can be extracted via getFeatureNames()
as they are part of those. To specifically extract variables that were created
with createSpatialSegmentation()
use getSegmentationVariableNames()
. To remove
annotations you no longer need use discardSegmentationVariable()
.
The interface allows to zoom in on the sample. This is useful if your
SPATA2
object contains an HE-image as background and you want to classify
barcode spots based on the histology. As these images are displayed by pixels
the resolution decreases the more you zoom in. Many experiments (such as
the Visium output) contain high resolution images. You can use the function
exchangeImage()
to read in images of higher resolution for a better
histological classification.