Description Usage Arguments Value References Examples
View source: R/QC_analysis_PCA.R
This function performs PCA on a matrix of metabolic data and returns the results as an object of class "prcomp". When quality control (QC) samples are available, "QC_PCA()" can be used to assess the stability and reproducibility of the dataset.
1 |
metabo_SE |
SummarizedExperiment object. See "MWAS_SummarizedExperiment()". |
scale |
logical constant indicating whether the metabolic variables will be scaled to have unit variance before the analysis. For more details, check "prcomp()". |
center |
logical constant indicating whether the metabolic variables will be shifted to be zero-centered before the analysis. For more details, check "prcomp()". |
... |
other arguments passed to "prcomp()". |
A list with class "prcomp". For more details, check "prcomp()".
Mardia K, et al. (1979). Multivariate Analysis, London: Academic Press.
1 2 3 4 5 6 7 8 9 10 | ## Load data
data(metabo_SE)
data(targetMetabo_SE)
## PCA model using all metabolic data
PCA_model <- QC_PCA (metabo_SE)
## PCA model using target metabolites
PCA_subset <- QC_PCA (targetMetabo_SE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.