Skip to content

Commit fd73c3b

Browse files
committed
Add collapse nodes
1 parent b62356c commit fd73c3b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pathme_viewer/graph_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from flask import abort, Response, jsonify, send_file
99
from flask import current_app
10-
from pybel import to_bel_lines, to_graphml, to_bytes, to_csv, union
10+
from pybel import collapse_to_genes, to_bel_lines, to_graphml, to_bytes, to_csv, union
1111
from pybel.dsl import BaseAbundance
1212
from pybel.constants import *
1313
from pybel.io import from_bytes
@@ -326,6 +326,8 @@ def get_pathway_nodes(pathway):
326326
# Loads the BELGraph
327327
graph = from_bytes(pathway.blob)
328328

329+
collapse_to_genes(graph)
330+
329331
# Return BaseAbundace BEL nodes
330332
return {
331333
node.as_bel()

0 commit comments

Comments
 (0)