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