tooluniverse.enrichr_tool module¶
- class tooluniverse.enrichr_tool.EnrichrTool[source]¶
Bases:
BaseTool
Tool to perform gene enrichment analysis using Enrichr.
- get_official_gene_name(gene_name)[source]¶
Retrieve the official gene symbol for a given gene name or synonym using the MyGene.info API.
- get_enrichment_results(user_list_id, library)[source]¶
Fetch enrichment results for a specific library.
- build_graph(genes, enrichment_results)[source]¶
Initialize and build the graph with gene nodes and enriched terms.
- rank_paths_by_weight(G, source, target)[source]¶
Find and rank paths between source and target based on total edge weight.