performPCA {escape}R Documentation

Calculate Principal Components for the Enrichment Scores

Description

Using all or selected enrichment scores of individual single-cells, this function will calculate principal components using scaled values and attach to the output columns to use to graph later.

Usage

performPCA(enriched, groups)

Arguments

enriched

The output of enrichIt.

groups

The column headers to use in future graphing functions.

Value

Data frame of principal compoenents

Author(s)

Nick Borcherding

Examples

ES2 <- readRDS(url(
"https://ncborcherding.github.io/vignettes/escape_enrichment_results.rds"))
PCA <- performPCA(enriched = ES2, groups = c("Type", "Cluster"))


[Package escape version 1.4.0 Index]