prot.pca | R Documentation |
This function performs principal component analysis (PCA) on a given matrix.
prot.pca(
mat,
metadata = NULL,
center = TRUE,
scale = FALSE,
rank = NULL,
removeVar = NULL,
transposed = FALSE,
BSPARAM = BiocSingular::ExactParam(),
in_workflow = FALSE
)
mat |
A numeric matrix. |
metadata |
An optional data frame with rownames matching 'colnames(mat)'. |
center |
A logical indicating whether to center the data before PCA. |
scale |
A logical indicating whether to scale the data before PCA. |
rank |
An integer indicating the number of principal components to calculate. |
removeVar |
A numeric value between 0 and 1 indicating the fraction of variables to remove based on variance. |
transposed |
A logical indicating whether the matrix is transposed. |
BSPARAM |
An object of class |
in_workflow |
Indicated whether this function is called from within |
A list with components rotated
, loadings
, variance
, sdev
, metadata
, xvars
, yvars
, and components
.
BiocSingular (https://bioconductor.org/packages/release/bioc/html/BiocSingular.html)
mat <- matrix(rnorm(1000), nrow = 100, ncol = 10)
prot.pca(mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.