简体   繁体   English

Biopython 1.60中的Bio.Entrez和蛋白质问题

[英]Issue with Bio.Entrez and protein in Biopython 1.60

I'm having a issue using Bio.Entrez to search a protein. 使用Bio.Entrez搜索蛋白质时遇到问题。 I'm doing this: 我正在这样做:

>>> handle=Entrez.esearch(db="protein", term="insulin AND homo")
>>> record=Entrez.read(handle)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.7/Bio/Entrez/__init__.py", line 351, in read
    record = handler.read(handle)
  File "/usr/lib/pymodules/python2.7/Bio/Entrez/Parser.py", line 169, in read
    self.parser.ParseFile(handle)
  File "/usr/lib/pymodules/python2.7/Bio/Entrez/Parser.py", line 307, in endElementHandler
    raise RuntimeError(value)
RuntimeError: Search Backend failed: Database is not supported: protein

I'm having a issue with einfo() too, check at this: 我也有einfo()的问题,请检查以下内容:

>>> handler=Entrez.einfo(db="protein")
>>> record=Entrez.read(handler)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.7/Bio/Entrez/__init__.py", line 351, in read
    record = handler.read(handle)
  File "/usr/lib/pymodules/python2.7/Bio/Entrez/Parser.py", line 169, in read
    self.parser.ParseFile(handle)
  File "/usr/lib/pymodules/python2.7/Bio/Entrez/Parser.py", line 285, in startElementHandler
    raise ValidationError(name)
Bio.Entrez.Parser.ValidationError: Failed to find tag 'Build' in the DTD. To skip all tags that are not represented in the DTD, please call Bio.Entrez.read or Bio.Entrez.parse with validate=False.

Why is protein database not supported? 为什么不支持蛋白质数据库? Can somebody help me with this issue? 有人可以帮我解决这个问题吗?

Also raised on the Biopython mailing list, and apparently working now: http://lists.open-bio.org/pipermail/biopython/2013-January/008306.html 还出现在Biopython邮件列表上,并且现在可以正常使用: http ://lists.open-bio.org/pipermail/biopython/2013-January/008306.html

We think this was a transient problem at the NCBI. 我们认为这是NCBI的暂时性问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM