Biopython脚本不起作用,它发送errortype生成器

时间:2017-06-06 17:22:59

标签: python biopython

我在尝试使用biopython解析xml文件时遇到一些我不明白的错误,有人可以帮我理解这个吗?

indexOf()

1 个答案:

答案 0 :(得分:2)

我相信这是你想要的语法:

from Bio import SearchIO

blast_qresults = SearchIO.parse('my_file.xml', 'blast-xml')

for hit in blast_qresults:
    print(hit)

由于blast_qresults是一个生成器,因此您只能“走”一次。