This function calculates the PCA embedding of an expression matrix.
Arguments
- expr_matrix
The gene by cell expression matrix to be used. It is expected that the matrix is already normalized and scaled.
- npcs
The number of principal components to be used. Defaults to 30.
- approx
Logical indicating if deterministic PCA (with
prcomp) or approximate PCA (withirlba) should be used. Defaults to FALSE.- ...
Aditional parameters passed to the PCA function.