
Wrapper for PCA specifically designed for single cells
params_sc_pca.RdWrapper for PCA specifically designed for single cells
Usage
params_sc_pca(
mean_center = TRUE,
normalise_variance = TRUE,
clr = FALSE,
size_factor = 10000,
svd_solver = c("auto", "covariance", "randomised", "exact")
)Arguments
- mean_center
Boolean. Shall the data be mean centred Defaults to
TRUE.- normalise_variance
Boolean. Shall the data have normalised variance Defaults to
TRUE.- clr
Boolean. Shall the CLR-type
PFlogPFbe applied, see Booeshaghi, et al. Defaults toFALSE.- size_factor
Numeric. The used size factor during I/O. It needs to be the same as during I/O to have correct results when using the
PFlogPFtransformation. Defaults to10000.0.- svd_solver
String. Which solver to use.
"auto"takes Lanczos on the sparse path and"covariance"on the dense one, the fastest exact option on each."covariance"builds the gene x gene cross-product and eigendecomposes it: its cost grows with the square of the gene number in memory and the cube in time."randomised"is a randomised SVD, approximate in the trailing components."exact"is a full SVD on the dense path and Lanczos on the sparse one. One ofc("auto", "covariance", "randomised", "exact"). Defaults to"auto".
Value
A named list with the following elements:
mean_center - Boolean. Shall the data be mean centred Defaults to
TRUE.normalise_variance - Boolean. Shall the data have normalised variance Defaults to
TRUE.clr - Boolean. Shall the CLR-type
PFlogPFbe applied, see Booeshaghi, et al. Defaults toFALSE.size_factor - Numeric. The used size factor during I/O. It needs to be the same as during I/O to have correct results when using the
PFlogPFtransformation. Defaults to10000.0.svd_solver - String. Which solver to use.
"auto"takes Lanczos on the sparse path and"covariance"on the dense one, the fastest exact option on each."covariance"builds the gene x gene cross-product and eigendecomposes it: its cost grows with the square of the gene number in memory and the cube in time."randomised"is a randomised SVD, approximate in the trailing components."exact"is a full SVD on the dense path and Lanczos on the sparse one. One ofc("auto", "covariance", "randomised", "exact"). Defaults to"auto".