diff --git a/tools/metag_tools/megablast_xml_parser.py b/tools/metag_tools/megablast_xml_parser.py index bce89b1f956..89e8fea44d1 100644 --- a/tools/metag_tools/megablast_xml_parser.py +++ b/tools/metag_tools/megablast_xml_parser.py @@ -53,7 +53,7 @@ def __main__(): query = elem.findtext( "Iteration_query-def" ) qLen = elem.findtext( "Iteration_query-len" ) # for every within - for hit in elem.findall( "Iteration_hits/Hit/" ): + for hit in elem.findall( "Iteration_hits/Hit" ): subject = hit.findtext( "Hit_id" ) if re.search( '^gi', subject ): subject = subject.split('|')[1] diff --git a/tools/ncbi_blast_plus/blastxml_to_tabular.py b/tools/ncbi_blast_plus/blastxml_to_tabular.py index 795abebe892..0f258cf6853 100644 --- a/tools/ncbi_blast_plus/blastxml_to_tabular.py +++ b/tools/ncbi_blast_plus/blastxml_to_tabular.py @@ -138,7 +138,7 @@ for event, elem in context: qlen = int(elem.findtext("Iteration_query-len")) # for every within - for hit in elem.findall("Iteration_hits/Hit/"): + for hit in elem.findall("Iteration_hits/Hit"): #Expecting either this, # gi|3024260|sp|P56514.1|OPSD_BUFBU # RecName: Full=Rhodopsin