Mercurial > repos > fabio > btman
comparison query.py @ 8:300e4932bad6 draft
Uploaded 20180405
author | fabio |
---|---|
date | Thu, 05 Apr 2018 06:22:38 -0400 |
parents | 69a3505ac594 |
children | 1af09c5ec0a1 |
comparison
equal
deleted
inserted
replaced
7:2d54890a568f | 8:300e4932bad6 |
---|---|
79 seq_id = block['sequence_id']; | 79 seq_id = block['sequence_id']; |
80 # put response block in the output collection | 80 # put response block in the output collection |
81 output_file_path = os.path.join(output_dir_path, seq_id + "_" + out_file_format); | 81 output_file_path = os.path.join(output_dir_path, seq_id + "_" + out_file_format); |
82 accessions_list = ""; | 82 accessions_list = ""; |
83 hits_block = block['hits']; | 83 hits_block = block['hits']; |
84 accessions_dict = { }; | 84 accessions_dict = { }; |
85 is_sabutan = False; | 85 is_sabutan = False; |
86 for hit in hits_block: | 86 for hit in hits_block: |
87 if type(hit) is dict: # sabutan | 87 if type(hit) is dict: # sabutan |
88 #accessions_list = accessions_list + str(hit['accession_number']) + "\t" + str(hit['score']) + "\n"; | 88 #accessions_list = accessions_list + str(hit['accession_number']) + "\t" + str(hit['score']) + "\n"; |
89 accession_number = hit['accession_number']; | 89 accession_number = hit['accession_number']; |