metalsinglecell.pp.pca#

metalsinglecell.pp.pca(adata, n_comps=50, layer=None, use_highly_variable=None, zero_center=True, svd_solver='randomized', random_state=0, copy=False)[source]#

PCA (sc.pp.pca); writes obsm['X_pca'], varm['PCs'], uns['pca'].

Sparse input → the sparse-aware randomized PCA (no densify). use_highly_variable restricts to adata.var['highly_variable'] (default True if that column exists).

Parameters:
  • n_comps (int)

  • use_highly_variable (bool | None)

  • zero_center (bool)

  • svd_solver (str)

  • random_state (int)

  • copy (bool)