GetSpatNet | R Documentation |
Create spatial networks based on spot center to center distances from a Seurat object.
GetSpatNet(object, nNeighbours = NULL, maxdist = NULL, minK = 0)
object |
Seurat object |
nNeighbours |
Number of nearest neighbours to calculate for each spot. The default number of neighbours is 6 for the 'Visium' platform and 4 for the '1k' and '2k' platforms. |
maxdist |
Distance cut-off for nearest neighbours to consider. The default is 1.5 for the 'Visium' and '2k' platforms and 2 for the '1k' platform. |
minK |
Minimum nearest neigbhours if maxdist is not provided [default: 0] |
## Not run: spatial.networks <- GetSpatNet(se) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.