Create a DimReduc object
A matrix with the cell embeddings
A matrix with the feature loadings
A matrix with the projected feature loadings
Assay used to calculate this dimensional reduction
Standard deviation (if applicable) for the dimensional reduction
A character string to facilitate looking up features from a specific DimReduc
Specify this as a global reduction (useful for visualizations)
Results from the JackStraw function
list for the user to store any additional information associated with the dimensional reduction
A DimReduc
object
Dimensional reduction object, validity, and interaction methods
DimReduc-class
,
DimReduc-validity
,
[.DimReduc()
,
[[.DimReduc()
,
dim.DimReduc()
,
merge.DimReduc()
,
print.DimReduc()
,
subset.DimReduc()
data <- GetAssayData(pbmc_small[["RNA"]], slot = "scale.data")
#> Warning: The `slot` argument of `GetAssayData()` is deprecated as of SeuratObject 5.0.0.
#> ℹ Please use the `layer` argument instead.
pcs <- prcomp(x = data)
pca.dr <- CreateDimReducObject(
embeddings = pcs$rotation,
loadings = pcs$x,
stdev = pcs$sdev,
key = "PC",
assay = "RNA"
)
#> Warning: Keys should be one or more alphanumeric characters followed by an underscore, setting key from PC to PC_