from Bio import my_em = 'user@example.com'
db = "gene"
term = 'cobalamin synthase homo sapiens'
h_search = Entrez.esearch(db=db, email=my_em,term=term)
record = Entrez.read(h_search)
res_ids = record["IdList"]
for r_id in res_ids:
    h_summ = Entrez.esummary(db=db, id=r_id, email=my_em)
    summ = Entrez.read(h_summ)
    print(r_id)
    print(summ['DocumentSummarySet']['DocumentSummary'][0]['Description'])
    print(summ['DocumentSummarySet']['DocumentSummary'][0]['Summary'])
    print('==============================================')

          

结果:

1956

epidermal growth factor receptor The protein encoded by this gene is a transmembrane glycoprotein that is a member of the protein kinase superfamily. This protein …encode different protein isoforms have been found for this gene.[provided by RefSeq, Jul 2010]

==============================================

4524

methylenetetrahydrofolate reductase (NAD(P)H) The protein encoded by this gene catalyzes the conversion of 5,10-methylenetetrahydrofolate …in this gene are associated with reductase deficiency.[provided by RefSeq, Oct 2009]

==============================================

4363 ATP-binding cassette, sub-family C (CFTR/MRP), member 1 The protein encoded by this gene is a member of the superfamily of ATP-binding cassette (ABC) transporters…and bile salts. Alternatively spliced variants of this but their full-length nature is unknown. [provided by RefSeq, Apr 2012]

01-19 23:36
查看更多