discoPCA: Perform PCA

Description Usage Arguments Value Examples

View source: R/QC.R

Description

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

Usage

1
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

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

DiscoRhythm documentation built on Nov. 8, 2020, 7:32 p.m.