removeSpatialAnnotations | R Documentation |
Removes spatial annotations from the SPATA2 object.
removeSpatialAnnotations(object, ids)
object |
An object of class |
ids |
Character vector. The IDs of the spatial annotations to remove. |
The updated input object, containing the added, removed or computed results.
library(SPATA2)
data("example_data")
object <- example_data$object_UKF313T_diet
getSpatAnnIds(object)
plotSpatialAnnotations(object)
# get IDs tagged with both 'necrotic' and 'compr'
ids_rm <- getSpatAnnIds(object, tags = c("necrotic", "compr"), test = "all")
print(ids_rm)
object <- removeSpatialAnnotations(object, ids = ids_rm)
plotSpatialAnnotations(object)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.