Run partial singular value decomposition using irlba
RunSVD(object, ...)
# S3 method for default
RunSVD(
object,
assay = NULL,
n = 50,
scale.embeddings = TRUE,
reduction.key = "LSI_",
scale.max = NULL,
verbose = TRUE,
irlba.work = n * 3,
tol = 1e-05,
...
)
# S3 method for Assay
RunSVD(
object,
assay = NULL,
features = NULL,
n = 50,
reduction.key = "LSI_",
scale.max = NULL,
verbose = TRUE,
...
)
# S3 method for StdAssay
RunSVD(
object,
assay = NULL,
features = NULL,
n = 50,
reduction.key = "LSI_",
scale.max = NULL,
verbose = TRUE,
...
)
# S3 method for Seurat
RunSVD(
object,
assay = NULL,
features = NULL,
n = 50,
reduction.key = "LSI_",
reduction.name = "lsi",
scale.max = NULL,
verbose = TRUE,
...
)
A Seurat object
Arguments passed to other methods
Which assay to use. If NULL, use the default assay
Number of singular values to compute
Scale cell embeddings within each component to mean 0 and SD 1 (default TRUE).
Key for dimension reduction object
Clipping value for cell embeddings. Default (NULL) is no clipping.
Print messages
work parameter for irlba
.
Working subspace dimension, larger values can speed convergence at the
cost of more memory use.
Tolerance (tol) parameter for irlba
. Larger
values speed up convergence due to greater amount of allowed error.
Which features to use. If NULL, use variable features
Name for stored dimension reduction object. Default 'svd'
Returns a Seurat
object
x <- matrix(data = rnorm(100), ncol = 10)
RunSVD(x)
#> Running SVD
#> Warning: You're computing too large a percentage of total singular values, use a standard svd instead.
#> Warning: did not converge--results might be invalid!; try increasing work or maxit
#> Scaling cell embeddings
#> Warning: No assay specified, setting assay as RNA by default.
#> Warning: Requested number is larger than the number of available items (10). Setting to 10.
#> LSI_ 1
#> Positive: 1, 9, 8, 6, 7
#> Negative: 3, 5, 10, 2, 4
#> Warning: Requested number is larger than the number of available items (10). Setting to 10.
#> LSI_ 2
#> Positive: 4, 7, 3, 8, 1
#> Negative: 6, 5, 9, 2, 10
#> Warning: Requested number is larger than the number of available items (10). Setting to 10.
#> LSI_ 3
#> Positive: 10, 6, 7, 9, 4
#> Negative: 8, 3, 1, 2, 5
#> Warning: Requested number is larger than the number of available items (10). Setting to 10.
#> LSI_ 4
#> Positive: 7, 5, 2, 1, 9
#> Negative: 4, 10, 6, 8, 3
#> Warning: Requested number is larger than the number of available items (10). Setting to 10.
#> LSI_ 5
#> Positive: 5, 1, 10, 8, 6
#> Negative: 2, 9, 7, 3, 4
if (FALSE) {
RunSVD(atac_small[['peaks']])
}
if (FALSE) {
RunSVD(atac_small[['peaks']])
}
if (FALSE) {
RunSVD(atac_small)
}