Skip to contents

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.

Usage

getCellInteractions(object, feature, nn, directed_edges = F)

Arguments

object

A SpatialMap or Region object.

feature

The name of a cellMetadata column (character).

nn

The name of a nearestNeighborGraph from object (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

Value

A data.frame with the following columns: interaction_name, Cell ID A, Cell ID B, Cell type A, Cell type B, Region name

Scroll to top