pcaSCoPE2: PCA plot suggested by SCoPE2

View source: R/utils.R

pcaSCoPE2R Documentation

PCA plot suggested by SCoPE2

Description

The function performs a weighted principal component analysis (PCA) as suggested by Specht et al. The PCA is performed on the correlation matrix where the rows (features) are weighted according to the sum of the correlation with the other rows.

Usage

pcaSCoPE2(object, scale = FALSE, center = FALSE)

Arguments

object

A SingleCellExperiment object

scale

A logical(1) indicating whether the columns of the weighted input matrix should be scaled to unit variance.

center

A logical(1) indicating whether the columns of the weighted input matrix should be mean centered.

Value

An object of class eigen containing the computed eigenvector and eigenvalues.

References

Specht, Harrison, Edward Emmott, Aleksandra A. Petelski, R. Gray Huffman, David H. Perlman, Marco Serra, Peter Kharchenko, Antonius Koller, and Nikolai Slavov. 2021. "Single-Cell Proteomic and Transcriptomic Analysis of Macrophage Heterogeneity Using SCoPE2.” Genome Biology 22 (1): 50. link to article, link to preprint

Examples

data("feat2")
sce <- as(feat2[[3]], "SingleCellExperiment")
pcaSCoPE2(sce)


UCLouvain-CBIO/2021-SCoPE2-replication documentation built on March 29, 2025, 12:10 p.m.