scanpy.pp.PcaResult#

class scanpy.pp.PcaResult[E = ndarray | Array, L = ndarray](embedding, loadings)[source]#

Bases: NamedTuple

Outputs of pca().

Attributes

embedding

PCA representation (coordinates) of the observations, shape (n_obs, n_comps).

loadings

The principal components containing the loadings, shape (n_vars, n_comps).