Takes the expression matrix of choice and passes it to irlba::prcomp_irlba().

runPca(object, n_pcs = 30, mtr_name = NULL, ...)

runPca2(object, n_pcs = 30, mtr_name = NULL, ...)

Arguments

object

A valid spata-object.

n_pcs

Numeric value. Denotes the number of principal components to be computed.

mtr_name

Character value. The name of the matrix of interest.

...

Additional arguments given to irlba::prcomp_irlba().

Value

  • runPca(): An updated spata-object containing the reduction variables in the pca data.frame.

  • runPca2(): The direct output-object of irlba::prcomp_irlba().