Skip to content

Commit

Permalink
Updated GUI enrichment page - now using pipeline function
Browse files Browse the repository at this point in the history
  • Loading branch information
npalacioescat committed Nov 17, 2024
1 parent f3dde9f commit 3b6e2c8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/funki/pages/enrichment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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],
Expand All @@ -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(
Expand Down

0 comments on commit 3b6e2c8

Please sign in to comment.