diff options
author | gunturkunhakan | 2021-06-30 23:23:58 -0500 |
---|---|---|
committer | gunturkunhakan | 2021-06-30 23:23:58 -0500 |
commit | eec87541da723543cfafe6f5b7cff1ec5774ba2e (patch) | |
tree | dfd6dfef9cee9bf80c8a24af9e9f4cd4da731f96 /server.py | |
parent | e4c91a690078535deb3f55cee3e20dcb229dd267 (diff) | |
download | genecup-eec87541da723543cfafe6f5b7cff1ec5774ba2e.tar.gz |
fixed a bug in search
Diffstat (limited to 'server.py')
-rwxr-xr-x | server.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |