QC_PCA: Principal Component Analysis

Description Usage Arguments Value References Examples

View source: R/QC_analysis_PCA.R

Description

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.

Usage

1
QC_PCA (metabo_SE, scale = FALSE, center = TRUE,...)

Arguments

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()".

Value

A list with class "prcomp". For more details, check "prcomp()".

References

Mardia K, et al. (1979). Multivariate Analysis, London: Academic Press.

Examples

 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)

MWASTools documentation built on Nov. 8, 2020, 5:07 p.m.

Related to QC_PCA in MWASTools...