discoPCA: Perform PCA

View source: R/QC.R

discoPCAR Documentation

Perform PCA

Description

Calculates PCA results from prcomp with error handling and outputs suitable for the DiscoRhythm workflow.

Usage

discoPCA(se, scale = TRUE, npcs = 10)

Arguments

se

SummarizedExperiment, the main data object used by DiscoRhythm expected to contain se$ID, se$ReplicateID, se$Time sample metadata and non-null rownames. See the vignette for more details.

scale

logical, whether or not to scale the data prior to PCA, see prcomp for more details.

npcs

numeric, maximum number of principal components to return.

Value

output from prcomp with an added table summary

Examples

se <- discoGetSimu(TRUE)
pca <- discoPCA(se)


matthewcarlucci/DiscoRhythm documentation built on March 24, 2022, 10:22 a.m.