From 2ad607c82756d39749056cf68a6b57cde50d5d3c Mon Sep 17 00:00:00 2001 From: Hao Chen Date: Tue, 21 May 2019 16:36:07 -0500 Subject: url for GWAS nodes --- server.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'server.py') diff --git a/server.py b/server.py index 24476c6..79ab2ca 100755 --- a/server.py +++ b/server.py @@ -63,14 +63,14 @@ def search(): sent0=gene_category(gene, addiction_d, addiction, "addiction") e0=generate_edges(sent0, tf_name) # - function=undic(function_d) - sent1=gene_category(gene, function_d, function, "function") + drug=undic(drug_d) + sent1=gene_category(gene, drug_d, drug, "drug") progress+=percent yield "data:"+str(progress)+"\n\n" e1=generate_edges(sent1, tf_name) # - drug=undic(drug_d) - sent2=gene_category(gene, drug_d, drug, "drug") + function=undic(function_d) + sent2=gene_category(gene, function_d, function, "function") progress+=percent yield "data:"+str(progress)+"\n\n" e2=generate_edges(sent2, tf_name) @@ -224,7 +224,6 @@ def showGeneTopGene (): results=result_f.read() return render_template('sentences.html', sentences=results+"


") - ## generate a page that lists all the top 150 addiction genes with links to cytoscape graph. @app.route("/allTopGenes") def top150genes(): -- cgit v1.2.3