performPCA {escape} | R Documentation |
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.
performPCA(enriched, groups)
enriched |
The output of |
groups |
The column headers to use in future graphing functions. |
Data frame of principal compoenents
Nick Borcherding
ES2 <- readRDS(url( "https://ncborcherding.github.io/vignettes/escape_enrichment_results.rds")) PCA <- performPCA(enriched = ES2, groups = c("Type", "Cluster"))