Create igraph-compatible graph and save in Seurat object

PrepareGraph(object, reduction, dims, knn)

Arguments

object

Seurat object

reduction

Reduced dimension slot to pull from

dims

Dimensions to use

knn

Number of k-nearest neighbors to use

Value

Seurat object with igraph graph stored in object@misc$westerlund_graph