ChoosePCs | R Documentation |
This function uses the eigenvalues of the principal component matrix to determine the best number of PCs. The default can be chosen automatically, or given by the user. It is intended to be run after RunPCA
.
ChoosePCs(seurat.obj = NULL, cutoff = 0.15)
seurat.obj |
The object containing our single cell counts and principal component matrix. Defaults to NULL. |
cutoff |
The cutoff value for cumulative proportion of variance explained. Can be set by the user, or can be determine automatically. Defaults to 15%. |
An integer specifying the number of PCs to use.
Jack Leary
## Not run:
ChoosePCs(seurat.obj = pbmc, cutoff = .3)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.