Calculate spatial score
spatialScore(
seu,
celltypeCenter,
celltypeLeft,
celltypeRight,
anno_col = "celltype",
maxRadius = 1000,
spatialCoordsNames = c("Cell.X", "Cell.Y"),
celldist,
...
)
An seurat object
The celltype for center, left and right.
The annotation column used to define the factors.
Minimal and maximal radius
The column names of coordinates
Output of findNearCellsByRadius
not used.
A data.frame with spatialScore, distance to Right celltype and distance to Left celltype.