2015-05-12 20 views
2

返回第一個特徵中的任何想法,爲什麼這樣的代碼:biopython的efetch只從任何數據庫

handle = Entrez.efetch(db="nuccore", 
     id=['556503834'], rettype="gb", 
     retmode="txt") 
print(handle.read()) 

不返回找到on the ncbi description的全部功能?只返回第一個功能(我的目標是獲得CDS功能)。

我嘗試了其他數據庫得出相同的結論。

回答

1

通過"gbwithparts"

from Bio import Entrez 
Entrez.email = "[email protected]" #put real mail 

handle = Entrez.efetch(db="nuccore", id=['556503834'], 
        rettype="gbwithparts", retmode="txt") 
print(handle.read()) 

變化爲rettype:可能需要幾秒鐘