forked from satijalab/seurat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDefaultAssay.Rd
63 lines (49 loc) · 1.48 KB
/
DefaultAssay.Rd
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
51
52
53
54
55
56
57
58
59
60
61
62
63
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generics.R, R/objects.R
\name{DefaultAssay}
\alias{DefaultAssay}
\alias{DefaultAssay<-}
\alias{DefaultAssay.Assay}
\alias{DefaultAssay.DimReduc}
\alias{DefaultAssay.Graph}
\alias{DefaultAssay.Seurat}
\alias{DefaultAssay.SeuratCommand}
\alias{DefaultAssay.SpatialImage}
\alias{DefaultAssay<-.Seurat}
\alias{DefaultAssay<-.SpatialImage}
\title{Get and set the default assay}
\usage{
DefaultAssay(object, ...)
DefaultAssay(object, ...) <- value
\method{DefaultAssay}{Assay}(object, ...)
\method{DefaultAssay}{DimReduc}(object, ...)
\method{DefaultAssay}{Graph}(object, ...)
\method{DefaultAssay}{Seurat}(object, ...)
\method{DefaultAssay}{SeuratCommand}(object, ...)
\method{DefaultAssay}{SpatialImage}(object, ...)
\method{DefaultAssay}{Seurat}(object, ...) <- value
\method{DefaultAssay}{SpatialImage}(object, ...) <- value
}
\arguments{
\item{object}{An object}
\item{...}{Arguments passed to other methods}
\item{value}{Name of assay to set as default}
}
\value{
The name of the default assay
An object with the new default assay
}
\description{
Get and set the default assay
}
\examples{
# Get current default assay
DefaultAssay(object = pbmc_small)
# Create dummy new assay to demo switching default assays
new.assay <- pbmc_small[["RNA"]]
Key(object = new.assay) <- "RNA2_"
pbmc_small[["RNA2"]] <- new.assay
# switch default assay to RNA2
DefaultAssay(object = pbmc_small) <- "RNA2"
DefaultAssay(object = pbmc_small)
}