aboutsummaryrefslogtreecommitdiff
path: root/server.py
diff options
context:
space:
mode:
authorHao Chen2020-03-07 22:34:27 -0600
committerHao Chen2020-03-07 22:34:27 -0600
commitff5c5d3aff13f4f81c9b3e9a39a63e7794cb609e (patch)
tree0a0910c6733d2e3695960cbbc1e5efc17a3f488c /server.py
parentcea42615bd0c0c02bad574db42fc7c44c5ca5c66 (diff)
downloadgenecup-ff5c5d3aff13f4f81c9b3e9a39a63e7794cb609e.tar.gz
Hakan fixing the count bug
Diffstat (limited to 'server.py')
-rwxr-xr-xserver.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/server.py b/server.py
index 90e783e..b0ba670 100755
--- a/server.py
+++ b/server.py
@@ -535,7 +535,6 @@ def cytoscape():
@app.route("/sentences")
def sentences():
- pmid_temp=""
pmid_list=[]
edge=request.args.get('edgeID')
(tf_name, gene0, cat0)=edge.split("|")
@@ -547,7 +546,6 @@ def sentences():
(gene,nouse,cat, pmid, text)=sent.split("\t")
if (gene.upper() == gene0.upper() and cat.upper() == cat0.upper() and (pmid+cat0 not in pmid_list)) :
out3+= "<li> "+ text + " <a href=\"https://www.ncbi.nlm.nih.gov/pubmed/?term=" + pmid +"\" target=_new>PMID:"+pmid+"<br></a>"
- pmid_temp = pmid
pmid_list.append(pmid+cat0)
out1="<h3>"+gene0 + " and " + cat0 + "</h3>\n"
if len(pmid_list)>1: