compute_edgelist.Rd
Compute an edgelist based on the spatial coordinates
compute_edgelist(sys.small, position.x, position.y, k = 4, rad.set = NULL)
sys.small | A filtered Seurat object. The active identity will be used to define populations for connectomic sampling and crossings. |
---|---|
position.x | string. Optional. Default: NULL. The name of the meta.data column specifying location on the spatial x-axis. Only required for spatial omics data. |
position.y | string. Optional. Default: NULL. The name of the meta.data column specifying location on the spatial y-axis. Only required for spatial omics data. |
k | integer. Optional. Default: 4. Number of neighbors in a knn graph. Used to compute a mutual nearest neighbor graph based on the spatial coordinates of the spatial transcriptomic datasets. |
rad.set | numeric. Optional. Default: NULL. The radius threshold to define neighbors based on the spatial coordinates of the spatial transcriptomic datasets. Ignored when 'k' is provided. |