Calculate spatial score

spatialScore(
  seu,
  celltypeCenter,
  celltypeLeft,
  celltypeRight,
  anno_col = "celltype",
  maxRadius = 1000,
  spatialCoordsNames = c("Cell.X", "Cell.Y"),
  celldist,
  ...
)

Arguments

seu

An seurat object

celltypeCenter, celltypeLeft, celltypeRight

The celltype for center, left and right.

anno_col

The annotation column used to define the factors.

maxRadius

Minimal and maximal radius

spatialCoordsNames

The column names of coordinates

celldist

Output of findNearCellsByRadius

...

not used.

Value

A data.frame with spatialScore, distance to Right celltype and distance to Left celltype.