forked from satijalab/seurat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCreateDimReducObject.Rd
55 lines (46 loc) · 1.36 KB
/
CreateDimReducObject.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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/objects.R
\name{CreateDimReducObject}
\alias{CreateDimReducObject}
\alias{SetDimReduction}
\title{Create a DimReduc object}
\usage{
CreateDimReducObject(
embeddings = new(Class = "matrix"),
loadings = new(Class = "matrix"),
projected = new(Class = "matrix"),
assay = NULL,
stdev = numeric(),
key = NULL,
global = FALSE,
jackstraw = NULL,
misc = list()
)
}
\arguments{
\item{embeddings}{A matrix with the cell embeddings}
\item{loadings}{A matrix with the feature loadings}
\item{projected}{A matrix with the projected feature loadings}
\item{assay}{Assay used to calculate this dimensional reduction}
\item{stdev}{Standard deviation (if applicable) for the dimensional reduction}
\item{key}{A character string to facilitate looking up features from a
specific DimReduc}
\item{global}{Specify this as a global reduction (useful for visualizations)}
\item{jackstraw}{Results from the JackStraw function}
\item{misc}{list for the user to store any additional information associated
with the dimensional reduction}
}
\description{
Create a DimReduc object
}
\examples{
data <- GetAssayData(pbmc_small[["RNA"]], slot = "scale.data")
pcs <- prcomp(x = data)
pca.dr <- CreateDimReducObject(
embeddings = pcs$rotation,
loadings = pcs$x,
stdev = pcs$sdev,
key = "PC",
assay = "RNA"
)
}