aboutsummaryrefslogtreecommitdiff
path: root/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'server.py')
-rwxr-xr-xserver.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/server.py b/server.py
index b171c1e..3c124d3 100755
--- a/server.py
+++ b/server.py
@@ -47,9 +47,9 @@ def search():
progress=0
for gene in genes:
nodes+="{ data: { id: '" + gene + "', nodecolor:'#FADBD8', fontweight:700, url:'https://www.ncbi.nlm.nih.gov/gene/?term="+gene+"'} },\n"
- sent0=gene_addiction(gene)
progress+=percent
yield "data:"+str(progress)+"\n\n"
+ sent0=gene_addiction(gene)
e0=generate_edges(sent0, tf_name)
sent1=gene_functional(gene)
progress+=percent
@@ -97,6 +97,5 @@ def shownode():
out="<p>"+node.upper()+"<hr><li>"+ allnodes[node].replace("|", "<li>")
return render_template('sentences.html', sentences=out+"<p>")
-
if __name__ == '__main__':
app.run(debug=True)