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