aboutsummaryrefslogtreecommitdiff
path: root/server.py
diff options
context:
space:
mode:
authorgunturkunhakan2021-06-30 23:23:58 -0500
committergunturkunhakan2021-06-30 23:23:58 -0500
commiteec87541da723543cfafe6f5b7cff1ec5774ba2e (patch)
treedfd6dfef9cee9bf80c8a24af9e9f4cd4da731f96 /server.py
parente4c91a690078535deb3f55cee3e20dcb229dd267 (diff)
downloadgenecup-eec87541da723543cfafe6f5b7cff1ec5774ba2e.tar.gz
fixed a bug in search
Diffstat (limited to 'server.py')
-rwxr-xr-xserver.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/server.py b/server.py
index 142aaa9..1d5f2ce 100755
--- a/server.py
+++ b/server.py
@@ -851,6 +851,7 @@ def search():
yield "data:"+str(progress)+"\n\n"
for gene in genes:
abstracts_raw = getabstracts(gene,all_d)
+ #print(abstracts_raw)
sentences_ls=[]
for row in abstracts_raw.split("\n"):
@@ -890,10 +891,11 @@ def search():
dict_onto=ast.literal_eval(onto_cont)
#ky_d=undic(list(dict_onto[ky].values()))
sent=gene_category(gene,ky,str(ky), sentences_ls, addiction_flag,dict_onto)
-
else:
#ky_d=undic(list(dict_onto[ky].values()))
+ #print(sentences_ls)
sent=gene_category(gene,ky,str(ky), sentences_ls, addiction_flag,dict_onto)
+ #print(sent)
yield "data:"+str(progress)+"\n\n"
geneEdges += generate_edges(sent, tf_name)