diff query.py @ 14:9ec4acef30ed draft

Uploaded 20180424
author fabio
date Tue, 24 Apr 2018 13:29:11 -0400
parents 19ac771cf32a
children ba9d0fc8657f
line wrap: on
line diff
--- a/query.py	Sat Apr 14 07:34:04 2018 -0400
+++ b/query.py	Tue Apr 24 13:29:11 2018 -0400
@@ -106,7 +106,7 @@
             if is_sabutan:
                 sorted_accessions = sorted(accessions_dict, key=lambda i: float(accessions_dict[i]["score"]), reverse=True);
                 for acc in sorted_accessions:
-                    accessions_list = accessions_list + str(acc) + "\t" + str(accessions_dict[acc]) + "\n";
+                    accessions_list = accessions_list + str(acc) + "\t" + str(accessions_dict[acc]["fraction"]) + "\t" + str(accessions_dict[acc]["score"]) + "\n";
             with open(output_file_path, 'w') as out:
                 out.write(accessions_list.strip());
         return sys.exit(OK_EXIT_CODE);