do_pca | R Documentation |
Performs a Principal Components Analysis
do_pca(data, sel_assay = 1, cor = FALSE)
data |
SummarizedExperiment or matrix of values to be analyzed. Samples must be represented in the columns. |
sel_assay |
Character or integer, indicating the assay to be normalized in the SummarizedExperiment. Default is 1. |
cor |
A logical value indicating whether the calculation should use the correlation matrix or the covariance matrix. (The correlation matrix can only be used if there are no constant variables.) |
do_pca
returns a list with class princomp
.
data(path_vals) pca_model <- do_pca(path_vals[seq_len(ncol(path_vals)),])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.