通过使用Entrez,Efetch从分类法db中搜索沿袭来返回空结果

时间:2016-03-16 07:16:14

标签: python database biopython ncbi

我使用biopython搜索来自分类数据库的沿袭信息,但它返回空!

昨天我可以用它(2016/3/15)!但现在我无法使用它(2016/03/16)!

我使用的代码就在这里,

>>> from Bio import Entrez   
>>> Entrez.email = "myemail@gmail.com"   
>>> handle = Entrez.esearch(db="Taxonomy", term="Cypripedioideae")    
>>> record = Entrez.read(handle)   
>>> record["IdList"]   
['158330']  
>>> record["IdList"][0]  
'158330'  
>>> handle = Entrez.efetch(db="Taxonomy", id="158330", retmode="xml")  
>>> records = Entrez.read(handle)   
>>> records[0].keys()  
Traceback (most recent call last):  
File "<stdin>", line 1, in <module>  
IndexError: list index out of range
>>> records
[]  #I can't understand why it returns empty today? 

0 个答案:

没有答案