forked from 10XGenomics/seurat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Loadings.Rd
50 lines (38 loc) · 1.25 KB
/
Loadings.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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generics.R, R/objects.R
\name{Loadings}
\alias{Loadings}
\alias{Loadings<-}
\alias{Loadings.DimReduc}
\alias{Loadings.Seurat}
\alias{Loadings<-.DimReduc}
\title{Get feature loadings}
\usage{
Loadings(object, ...)
Loadings(object, ...) <- value
\method{Loadings}{DimReduc}(object, projected = FALSE, ...)
\method{Loadings}{Seurat}(object, reduction = "pca", projected = FALSE,
...)
\method{Loadings}{DimReduc}(object, projected = TRUE, ...) <- value
}
\arguments{
\item{object}{An object}
\item{...}{Arguments passed to other methods}
\item{value}{Feature loadings to add}
\item{projected}{Pull the projected feature loadings?}
\item{reduction}{Name of reduction to pull feature loadings for}
}
\description{
Get feature loadings
Add feature loadings
}
\examples{
# Get the feature loadings for a given DimReduc
Loadings(object = pbmc_small[["pca"]])[1:5,1:5]
# Get the feature loadings for a specified DimReduc in a Seurat object
Loadings(object = pbmc_small, reduction = "pca")[1:5,1:5]
# Set the feature loadings for a given DimReduc
new.loadings <- Loadings(object = pbmc_small[["pca"]])
new.loadings <- new.loadings + 0.01
Loadings(object = pbmc_small[["pca"]]) <- new.loadings
}