The number of PCs and the selection strategy is controlled:
For single-sample analysis, via
PCA_SELECTION_METHODandPCA_FORCED_PCSparameters in02_norm_clustering.yaml.For integration analysis, via
pca_selection_methodandpca_forced_pcssubparameters ofINTEGRATION_METHODSparameter in01_integration.yaml.
Usage
get_pca_selected_pcs(
sce_pca,
pca_elbow_pcs,
pca_gene_var_pcs,
pca_selection_method = c("elbow", "technical_noise", "forced"),
pca_forced_pcs = NULL
)Arguments
- sce_pca
A
SingleCellExperimentobject with calculated PCA.- pca_elbow_pcs
A numeric scalar: number of PCs selected by elbow point strategy.
- pca_gene_var_pcs
A numeric scalar: number of PCs selected by technical noise strategy.
- pca_selection_method
A character scalar: final selection strategy.
- pca_forced_pcs
A numeric scalar: constant number of PCs defined in config file.