
Title Export data.frame of all interactions from SpatialMap object Includes cell type notation. Output is a data.frame with rows as interactions and columns as metadata Works with FRNN, in addition to other SpatialMap NN formats.
getCellInteractions.Rd
Title Export data.frame of all interactions from SpatialMap object Includes cell type notation. Output is a data.frame with rows as interactions and columns as metadata Works with FRNN, in addition to other SpatialMap NN formats.
Arguments
- object
A SpatialMap or Region object.
- feature
The name of a cellMetadata column (character).
- nn
The name of a
nearestNeighborGraph
fromobject
(character).- directed_edges
Should output contain directed edges (defaults to FALSE, for undirected edges). Useful for a KNN, or other formats where a cell-interaction is one way and not two ways