Read a graph from a `SpatialNetwork` result without modifying the Seurat
object. Graphs can be returned as their complete list representation, a
sparse matrix, or a Seurat `Graph` object.
Usage
GetSpatialGraph(
object = NULL,
res = NULL,
graph.name = NULL,
format = c("list", "sparse", "seurat"),
value = c("weight", "distance")
)
Arguments
- object
Optional `Seurat` object containing `SpatialNetwork` results.
- res
Optional `SpatialNetwork` result list.
- graph.name
Stored graph name. The active graph is used when `NULL`.
- format
Output representation.
- value
Edge value used for matrix conversions.
Value
A graph list, `dgCMatrix`, or Seurat `Graph` object.