performPCA: Calculate Principal Components for the Enrichment Scores

Description Usage Arguments Value Author(s) Examples

View source: R/processing.R

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

1
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

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

ncborcherding/scone documentation built on Sept. 5, 2020, 1:11 a.m.