varianceExplained: Compute the explained variance

View source: R/utils.R

varianceExplainedR Documentation

Compute the explained variance

Description

This function uses the standard deviation and the total variance computed by Seurat when creating a PCA reduction dimension, and computes the explained variance for each of the PCs. It then adds the variance explained to the Seurat object, under Seurat@reductions$pca@misc$variance_explained

Usage

varianceExplained(seur, reduction_name = "pca")

Arguments

seur

The Seurat object

reduction_name

The name of the reduction to use. Default to "pca"

Value

The Seurat object with variance_explained in misc of dimreduc used


LabexCortexBioinformatics/LxCxUtils documentation built on Aug. 2, 2022, 6:23 a.m.