runPCA | R Documentation |
Perform PCA on sections or genes in a SummarizedExperiment
object for dimensionality reduction.
runPCA(object, genes = NA, matrix = "auto", scree = FALSE, ...)
object |
A |
genes |
|
matrix |
Character, must be one of |
scree |
Logical, plot the scree plot for PCs if it is |
... |
Other parameters passed to |
A SummarizedExperiment
object. The PC embeddings are saved in slot meta
if PCA is performed on sections, or saved in slot gene_embedding
if PCA is performed on genes.
prcomp
for performing PCA on a matrix.
data(zh.data) zh <- createTomo(zh.data) # Perform PCA on sections. zh <- runPCA(zh) # Plot the scree plot. zh <- runPCA(zh, scree=TRUE) # Perform PCA on some genes. zh <- runPCA(zh, genes=rownames(zh)[1:100])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.