getSpatAnnTags: Obtain spatial annotation tags

getSpatAnnTagsR Documentation

Obtain spatial annotation tags

Description

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

Usage

getSpatAnnTags(object, ...)

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

## S4 method for signature '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)


theMILOlab/SPATA2 documentation built on Feb. 8, 2025, 11:41 p.m.