getVarianceExplained: getVarianceExplained

Description Usage Arguments Value Author(s) Examples

View source: R/utils.R

Description

Compute variance explained by PCA, given a Seurat object for which the PCA dim. reduction has been calculated

Usage

1
getVarianceExplained(seurat, n = 10)

Arguments

seurat

Seurat object

n

Numeric, number of PCs for which variance should be reported. Default: 10

Value

List with two vectors, "percent.var.explained" and "cumulative.var.explained", reported for the first n PCs

Author(s)

Adapted from Yang Yang

Examples

1

fungenomics/cytobox documentation built on Feb. 13, 2020, 10:51 a.m.