From b9f3baf7b8e71b371e27049fb891bae61d33457d Mon Sep 17 00:00:00 2001 From: gunturkunhakan Date: Tue, 8 Jun 2021 14:58:12 -0500 Subject: fixed progress bar and corrected gwas sentences --- server.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'server.py') diff --git a/server.py b/server.py index 519eedf..142aaa9 100755 --- a/server.py +++ b/server.py @@ -146,7 +146,6 @@ def login(): else: flash("Invalid username or password!", "inval") return render_template('signup.html') - print(onto_list) return render_template('index.html',onto_len_dir=onto_len_dir, onto_list=onto_list, ontol = 'addiction', dict_onto = dict_onto) @@ -762,7 +761,7 @@ def search(): if(len(genes)==1): percent_ratio=2 timeextension=session['timeextension'] - percent=round(100/percent_ratio,1)-1 # 7 categories + 1 at the beginning + percent=100/percent_ratio-0.00000001 # 7 categories + 1 at the beginning if ('email' in session): sessionpath = session['path_user'] + timeextension @@ -918,7 +917,7 @@ def search(): +str(row['MAPPED_TRAIT'])+"
" gwas_sent.append(gene+"\t"+"GWAS"+"\t"+nd+"_GWAS\t"+str(row['PUBMEDID'])+"\t"+gwas_text) cys, gwas_json, sn_file = searchArchived('GWAS', gene , 'json',gwas_sent, path_user) - with open(path_user+"gwas_results.tab", "w") as gwas_edges: + with open(path_user+"gwas_results.tab", "a") as gwas_edges: gwas_edges.write(sn_file) geneEdges += cys json_edges += gwas_json -- cgit v1.2.3