def run_blast_commands(ncbicommandline_method, **keywords):
<EOL>blast_out_tmp = tempfile.NamedTemporaryFile(mode="<STR_LIT>",delete=False)<EOL>keywords['<STR_LIT>'] = blast_out_tmp.name<EOL>query_file_object_tmp = keywords['<STR_LIT>']<EOL>keywords['<STR_LIT>'] = query_file_object_tmp.name<EOL>stderr = '<STR_LIT>'<EOL>error_string = '<STR_LIT>'<EOL>try:<EOL><INDENT>blastplusx_cline = ncbicommandline_method(**keywords)<EOL>stdout, stderr = blastplusx_cline()<EOL><DEDENT>except ApplicationError as e:<EOL><INDENT>error_string = "<STR_LIT>" + stderr + "<STR_LIT:\n>" + e.cmd<EOL><DEDENT>os.unlink(query_file_object_tmp.name)<EOL>return blast_out_tmp, error_string<EOL>
Runs blastplus/tblastn search, collects result and pass as a xml temporary file.