Extracts all unique tags with which spatial annotations have been tagged.

getSpatAnnTags(object, ...)

# S4 method for class 'SPATA2'
getSpatAnnTags(object, simplify = TRUE)

# S4 method for class 'SpatialData'
getSpatAnnTags(object, simplify = TRUE)

Arguments

object

An object of class SPATA2 or, in case of S4 generics, objects of classes for which a method has been defined.

...

Used to absorb deprecated arguments or functions.

simplify

Logical value. If TRUE, the default, a character vector of unique tags is returned. If FALSE, a list of character vectors is returned named by the spatial annotation to which the tags belong.

Value

Character vector or named list of such.

Examples

library(SPATA2)

data("example_data")

object <- loadExampleObject("LMU_MCI")

getSpatAnnTags(object, simplify = FALSE)
getSpatAnnTags(object)