setSpatialAnnotation: Set SpatialAnnotation objects

setSpatialAnnotationR Documentation

Set SpatialAnnotation objects

Description

Sets spatial annotations in the correct slot. Expects a valid spatial annotation and does not conduct any further checks or adjustments.

Usage

setSpatialAnnotation(object, ...)

## S4 method for signature 'SPATA2'
setSpatialAnnotation(object, spat_ann, ...)

setSpatialAnnotations(object, ...)

## S4 method for signature 'SPATA2'
setSpatialAnnotations(object, spat_anns, ...)

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.

spat_ann

An object of class SpatialAnnotation.

spat_anns

A list of objects of class SpatialAnnotation.

Note

GroupAnnotation, NumericAnnotation, ImageAnnotation are derivatives of the SpatialAnnotation class and are valid inputs, too!


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