View source: R/Seurat.Utils.Visualization.R
scCalcPCAVarExplained | R Documentation |
This function calculates the percentage of variation each principal component (PC)
accounts for in a Seurat object. It's specifically tailored for Seurat objects and provides a
convenient way to understand the variance distribution across PCs. For similar calculations on
standard PCA objects, refer to github.com/vertesy/Rocinante PCA.percent.var.explained()
.
scCalcPCAVarExplained(obj = combined.obj)
obj |
A Seurat object from which to calculate the percentage of variation explained by each
PC. Default: |
A named vector with the percentage of variation explained by each principal component.
## Not run:
if (interactive()) {
data("combined.obj") # Example Seurat object
var_explained <- scCalcPCAVarExplained(combined.obj)
print(var_explained)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.