diff --git a/src/funki/pages/enrichment.py b/src/funki/pages/enrichment.py index e160472..b678418 100644 --- a/src/funki/pages/enrichment.py +++ b/src/funki/pages/enrichment.py @@ -22,6 +22,7 @@ from funki import _colors import funki.analysis as fan import funki.plots as fpl +import funki.pipelines as fppl org_taxid = [ @@ -341,7 +342,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 +351,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(