Skip to contents

Return raw analysis coordinates or display coordinates together with their source and reversible transform. This function does not modify the object.

Usage

SpatialCoordinates(
  object,
  image = NULL,
  coord.cols = c("col", "row"),
  space = c("raw", "display"),
  image_policy = "strict"
)

Arguments

object

A `Seurat` object.

image

Optional Seurat image name.

coord.cols

Metadata columns used when no image is available.

space

Coordinate space to return.

image_policy

Multi-image selection policy. The default requires an explicit image when more than one image is available.

Value

A plain list with `data`, `source`, and `transform` entries.