omicverse.metabol.pathway_bar#
- omicverse.metabol.pathway_bar(enrichment, *, term_col=None, score_col='pvalue', top_n=15, ax=None, figsize=(6.0, 5.0))[source]#
Horizontal bar chart of pathway enrichment p-values.
Works for both
msea_oraoutput (pathway/pvalue) andlion_enrichmentoutput (term/pvalue); auto-detects the term column ifterm_colisn’t given.- Parameters:
enrichment (
DataFrame) – DataFrame returned bymsea_ora(),msea_gsea(), orlion_enrichment().term_col (
Optional[str] (default:None)) – Column holding the pathway / term name. Auto-picks frompathway/term/Term/ the index if None.score_col (
str(default:'pvalue')) – Column to plot."pvalue"(default) →-log10(pvalue)bars;"padj"for FDR-adjusted;"nes"for GSEA normalized enrichment score (plotted as-is, signed).top_n (
int(default:15)) – Show the top-top_nterms by the score.