comparison tools/ncbi_blast_plus/blastxml_to_tabular.py @ 24:c877294f8025 draft

Fixed tool_dependencies.xml
author peterjc
date Mon, 09 Jul 2018 10:08:16 -0400
parents 31e517610e1f
children e25d3acf6e68
comparison
equal deleted inserted replaced
23:31e517610e1f 24:c877294f8025
176 sys.exit("Invalid data format.") 176 sys.exit("Invalid data format.")
177 # turn it into an iterator 177 # turn it into an iterator
178 context = iter(context) 178 context = iter(context)
179 # get the root element 179 # get the root element
180 try: 180 try:
181 event, root = context.next() 181 event, root = next(context)
182 except Exception: 182 except Exception:
183 sys.exit("Invalid data format.") 183 sys.exit("Invalid data format.")
184 for event, elem in context: 184 for event, elem in context:
185 if event == "end" and elem.tag == "BlastOutput_program": 185 if event == "end" and elem.tag == "BlastOutput_program":
186 blast_program = elem.text 186 blast_program = elem.text