[413088]: / man / annotateSpatialData.Rd

Download this file

51 lines (41 with data), 1.5 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/annotation.R
\name{annotateSpatialData}
\alias{annotateSpatialData}
\title{annotateSpatialData}
\usage{
annotateSpatialData(
object,
label = "annotation",
assay = NULL,
annotation_assay = "ROIAnnotation",
use.image.only = FALSE,
shiny.options = list(launch.browser = getOption("shiny.launch.browser", interactive())),
image_name = NULL,
channel = NULL,
...
)
}
\arguments{
\item{object}{a VoltRon object}
\item{label}{the name of the new metadata column (default: annotation) annotating spatial points by selected polygons}
\item{assay}{assay name (exp: Assay1) or assay class (exp: Visium, Xenium), see \link{SampleMetadata}.
if NULL, the default assay will be used, see \link{vrMainAssay}.}
\item{annotation_assay}{name of the annotation assay ()}
\item{use.image.only}{if TRUE, use only the image}
\item{shiny.options}{a list of shiny options (launch.browser, host, port etc.) passed \code{options} arguement of \link{shinyApp}. For more information, see \link{runApp}}
\item{image_name}{the name/key of the image}
\item{channel}{the name of the main channel}
\item{...}{additional parameters passed to \link{vrSpatialPlot}.}
}
\description{
A mini shiny app to for annotating spatial points
}
\examples{
\dontrun{
# Annotate based on images
visium_data <- annotateSpatialData(visium_data, use.image.only = TRUE)
# Annotate based on spatial plot
xenium_data <- annotateSpatialData(xenium_data, group.by = "clusters")
}
}