Calculate co-occurrence for each bin given range.
coOccurrence(
seu,
anno_col = "celltype",
minRadius = 0,
maxRadius = 1000,
bins = 100,
spatialCoordsNames = c("Cell.X", "Cell.Y"),
celldist,
...
)
An seurat object
The annotation column used to define the factors.
Minimal and maximal radius
The number of the bins
The column names of coordinates
Output of findNearCellsByRadius
not used.
A data matrix contain the cell proportion and co-occurrence for each bin.
# example code