tirank.Visualization.Pathway_Enrichment
- tirank.Visualization.Pathway_Enrichment(savePath, database='KEGG_2016')[source]
Performs and plots pathway enrichment analysis on DEGs.
This function loads the filtered ‘Differentially expressed genes data frame.csv’, separates genes into up-regulated and down-regulated lists, and runs ‘gseapy.enrichr’ on the up, down, and all DEG lists using the specified database. It saves the enrichment tables and dot plots.
- Parameters:
savePath (str) – The base directory containing the ‘3_Analysis’ subfolder.
database (str or list, optional) – The gene set library or libraries to use for enrichment (e.g., “KEGG_2016”, [“GO_Biological_Process_2021”]). Defaults to “KEGG_2016”.
- Returns:
None