Calculate Jaccard Index

JaccardIndex(
  seu,
  anno_col,
  maxRadius,
  spatialCoordsNames = c("Cell.X", "Cell.Y"),
  celldist,
  ...
)

Arguments

seu

An object of Seurat.

anno_col

The annotation column used to define the factors.

maxRadius

Maximal Euclidean distance of the neighbors.

spatialCoordsNames

The column names of coordinates

celldist

Output of findNearCellsByRadius

...

not used.

Value

A data.frame with column names of 'A', 'B' and 'JaccardIndex'