diff --git a/src/funki/pages/enrichment.py b/src/funki/pages/enrichment.py index e160472..7de397d 100644 --- a/src/funki/pages/enrichment.py +++ b/src/funki/pages/enrichment.py @@ -20,8 +20,7 @@ from utils.style import page_style from utils.style import header_style from funki import _colors -import funki.analysis as fan -import funki.plots as fpl +import funki.pipelines as fppl org_taxid = [ @@ -341,7 +340,7 @@ def plot_enrich(n_clicks, data, gset_data, meth, gset): meth = meth if type(meth) is list else [meth] - fan.enrich( + fig = fppl.enrichment_analysis( dset, net, methods=[m for m in meth], @@ -350,8 +349,6 @@ def plot_enrich(n_clicks, data, gset_data, meth, gset): weight='weight' if 'weight' in net.columns else None, ) - fig = fpl.plot_enrich(dset) - return fig, dataset_to_serial(dset) @callback(