Switch to unified view

a b/man/getSpatialNeighbors.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/spatial.R
3
\name{getSpatialNeighbors}
4
\alias{getSpatialNeighbors}
5
\title{Get spatial neighbors}
6
\usage{
7
getSpatialNeighbors(
8
  object,
9
  assay = NULL,
10
  group.by = NULL,
11
  group.ids = NULL,
12
  method = "delaunay",
13
  k = 10,
14
  radius = numeric(0),
15
  graph.key = method,
16
  verbose = TRUE
17
)
18
}
19
\arguments{
20
\item{object}{a VoltRon object}
21
22
\item{assay}{assay name (exp: Assay1) or assay class (exp: Visium, Xenium), see \link{SampleMetadata}. 
23
if NULL, the default assay will be used, see \link{vrMainAssay}.}
24
25
\item{group.by}{a column of metadata from \link{Metadata} used as grouping label for the spatial entities.}
26
27
\item{group.ids}{a subset of categories defined in metadata column from \code{group.by}.}
28
29
\item{method}{the method spatial connectivity: "delaunay", "spatialkNN", "radius".}
30
31
\item{k}{number of neighbors for kNN.}
32
33
\item{radius}{When \code{method = "radius"} selected, determines the radius of a neighborhood ball around each spatial point.}
34
35
\item{graph.key}{the name of the graph.}
36
37
\item{verbose}{verbose}
38
}
39
\description{
40
get neighbors in an assay given spatial coordinates
41
}