Get the standard deviations for an object

Stdev(object, ...)

# S3 method for DimReduc
Stdev(object, ...)

# S3 method for Seurat
Stdev(object, reduction = "pca", ...)

Arguments

object

An object

...

Arguments passed to other methods

reduction

Name of reduction to use

Value

The standard deviations

Examples

# Get the standard deviations for each PC from the DimReduc object
Stdev(object = pbmc_small[["pca"]])
#>  [1] 2.7868782 1.6145733 1.3162945 1.1241143 1.0347596 0.9876531 0.8501773
#>  [8] 0.8225654 0.7607182 0.7387425 0.6680697 0.6216919 0.5463279 0.4933780
#> [15] 0.4639999 0.4404766 0.3246018 0.2762482 0.1704923

# Get the standard deviations for each PC from the Seurat object
Stdev(object = pbmc_small, reduction = "pca")
#>  [1] 2.7868782 1.6145733 1.3162945 1.1241143 1.0347596 0.9876531 0.8501773
#>  [8] 0.8225654 0.7607182 0.7387425 0.6680697 0.6216919 0.5463279 0.4933780
#> [15] 0.4639999 0.4404766 0.3246018 0.2762482 0.1704923