Skip to content

Commit

Permalink
Implemented new plot_enrich function into GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
npalacioescat committed Nov 16, 2024
1 parent 38ef417 commit a7968fd
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/funki/pages/enrichment.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,16 +350,7 @@ def plot_enrich(n_clicks, data, gset_data, meth, gset):
weight='weight' if 'weight' in net.columns else None,
)

res = dset.obsm['consensus_estimate'].mean(axis=0)
res.sort_values(ascending=False, inplace=True)
res = res.head(10)[::-1] if len(res) > 10 else res[::-1]

fig = px.bar(
res,
orientation='h',
)

fig.update_layout(showlegend=False)
fig = fpl.plot_enrich(dset)

return fig, dataset_to_serial(dset)

Expand Down

0 comments on commit a7968fd

Please sign in to comment.