dynamo.pp.top_pca_genes

dynamo.pp.top_pca_genes(adata, pc_key='PCs', n_top_genes=100, pc_components=None, adata_store_key='top_pca_genes')[source]

Define top genes as any gene that is n_top_genes in some principle component.

Parameters
  • adata (AnnData) –

  • pc_key (str) – component key stored in adata.uns, by default “PCs”

  • n_top_genes (int, optional) – #top genes as valid top genes in each component, by default 100

  • pc_components (int, optional) – number of top principle components to use, by default None

  • adata_store_key (str, optional) – the key for storing pca genes, by default “top_pca_genes”

Return type

AnnData