tomodrgn.analysis.run_pca#

run_pca(z: ndarray, verbose: bool = True) tuple[ndarray, PCA][source]#

Run principal component analysis on the latent embeddings.

Parameters:
  • z – array of latent embeddings, shape (nptcls, zdim)

  • verbose – if True, log additional information to STDOUT

Returns:

tuple of principal-component-transformed latent embeddings and the fit sklearn PCA object