This function calculates the feature loading of an expression matrix using PCA.
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.