multigedi.tools.top_pathway_genes¶
- multigedi.tools.top_pathway_genes(adata, pathway_idx, *, n_genes=20, key='gedi', modality=None)[source]¶
Get top genes associated with a pathway.
Returns the genes with the highest association scores for a given pathway, based on the pathway association matrix.
- Parameters:
- Return type:
Listofgene names with highest pathway associations.
Examples
>>> import multigedi as gd >>> gd.tl.pathway_associations(adata) >>> top_genes = gd.tl.top_pathway_genes(adata, pathway_idx=0, n_genes=10) >>> print(top_genes)