fast_pca: Generates the specified number of PCs using RSpectra.

View source: R/reduction_funcs.R

fast_pcaR Documentation

Generates the specified number of PCs using RSpectra.

Description

Generates the specified number of PCs using RSpectra.

Usage

fast_pca(dat.mat, num.pcs = 10)

Arguments

dat.mat

Matrix of data (features X samples).

num.pcs

Number of PCs to be generated. Default of 10.

Value

A list, with with pca matrix (x), a vector of feature sds (sdev), and the rotation matrix (rotation).


califano-lab/PISCES documentation built on Jan. 11, 2023, 5:34 a.m.