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,
  ...
)

Arguments

seu

An seurat object

anno_col

The annotation column used to define the factors.

minRadius, maxRadius

Minimal and maximal radius

bins

The number of the bins

spatialCoordsNames

The column names of coordinates

celldist

Output of findNearCellsByRadius

...

not used.

Value

A data matrix contain the cell proportion and co-occurrence for each bin.

Examples

# example code