run_pca: Run PCA

View source: R/init_clust.R

run_pcaR Documentation

Run PCA

Description

Get PCs from normalized counts.

Usage

run_pca(x, n_pcs = 30, seedn = 1)

Arguments

x

An SCE object. many genes detected.

n_pcs

Number of PCs to calculate.

seedn

The seed to set for irlba PCA calculation. It is set to 1 for reproducibility but can be set to NULL for a random initialization.

Value

An SCE object with PCs


marcalva/diem documentation built on Jan. 1, 2023, 2:33 a.m.