0
有人知道我如何從GenBank中的數據中僅使用GenBank代碼加入和biopython獲得學名(或所有特徵)。例如:如何獲取給定GenBank登錄碼biopython的科學名稱?
>>> From Bio import Entrez
>>> Entrez.email = [email protected]
>>> Input = Entrez.someFunction(db="nucleotide", term="AY851612")
>>> output = Entrez.read(Input)
>>> print output
"Austrocylindropuntia subulata"
或者得好:
>>> print output
"LOCUS AY851612 892 bp DNA linear PLN 10-APR-2007
DEFINITION Opuntia subulata rpl16 gene, intron; chloroplast.
ACCESSION AY851612
VERSION AY851612.1 GI:57240072
KEYWORDS .
SOURCE chloroplast Austrocylindropuntia subulata
ORGANISM Austrocylindropuntia subulata
Eukaryota; Viridiplantae; Streptophyta; Embryophyta; Tracheophyta;
Spermatophyta; Magnoliophyta; eudicotyledons; core eudicotyledons;
Caryophyllales; Cactaceae; Opuntioideae; Austrocylindropuntia.
REFERENCE 1 (bases 1 to 892)
AUTHORS Butterworth,C.A. and Wallace,R.S.
..."
感謝所有! =)
你有沒有過上訪問Entrez的資源Biopython教程[相應部分(http://biopython.org/DIST/docs/tutorial/Tutorial.html#htoc108)讀? – MattDMo 2015-02-05 21:59:55
是的,我讀了關於「訪問NCBI的Entrez數據庫」的第9章,但它集中在GI代碼而不是GB代碼(或登錄代碼)。 =( – 2015-02-05 22:07:23