varianceExplained | R Documentation |
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
varianceExplained(seur, reduction_name = "pca")
seur |
The Seurat object |
reduction_name |
The name of the reduction to use. Default to "pca" |
The Seurat object with variance_explained in misc of dimreduc used
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.