comparison query.py @ 21:c619ad82600e draft default tip

Uploaded 20190304
author fabio
date Mon, 04 Mar 2019 09:25:16 -0500
parents 7f712cc0d3d5
children
comparison
equal deleted inserted replaced
20:1dc3f0c61817 21:c619ad82600e
79 printLog( outlogfile, 'Querying the tree' ) 79 printLog( outlogfile, 'Querying the tree' )
80 query_res_file_path = os.path.abspath( 'answer.txt' ) 80 query_res_file_path = os.path.abspath( 'answer.txt' )
81 sort_param = '--sort' 81 sort_param = '--sort'
82 if options.sort == 0: 82 if options.sort == 0:
83 sort_param = '' 83 sort_param = ''
84 query_exitcode = os.system( 'howdesbt query --tree=' + os.path.abspath( tree_def_filepath ) + ' ' + os.path.abspath( batch_file_name ) + '=' + str(options.threshold) + ' --out=' + query_res_file_path ) + ' ' + sort_param 84 query_exitcode = os.system( 'howdesbt query --tree=' + os.path.abspath( tree_def_filepath ) + ' ' + os.path.abspath( batch_file_name ) + '=' + str(options.threshold) + ' --out=' + query_res_file_path + ' ' + sort_param )
85 if query_exitcode > 0: 85 if query_exitcode > 0:
86 printLog( outlogfile, '> ERROR: an error has occurred while querying the tree with the sequence [id: ' + seq_id + '] in input file ' + file_names[ idx ] ) 86 printLog( outlogfile, '> ERROR: an error has occurred while querying the tree with the sequence [id: ' + seq_id + '] in input file ' + file_names[ idx ] )
87 else: 87 else:
88 if os.path.exists( query_res_file_path ): 88 if os.path.exists( query_res_file_path ):
89 with open( query_res_file_path ) as query_res_file: 89 with open( query_res_file_path ) as query_res_file: