getSpatAnnCenterBcsp: Obtain center data point

getSpatAnnCenterBcspR Documentation

Obtain center data point

Description

Extracts the barcode spot (data point) that lies closest to the center of the spatial annotation.

Usage

getSpatAnnCenterBcsp(object, id)

Arguments

object

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

id

Character value specifying the ID of the spatial annotation of interest. If there is only one spatial annotation in the object, the function will default to using it. However, if there are multiple annotations, this argument must be explicitly specified to identify the target annotation.

Value

Data.frame as returned by getCoordsDf() with one row.


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