-
Notifications
You must be signed in to change notification settings - Fork 0
/
gbk.py
16 lines (13 loc) · 611 Bytes
/
gbk.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# GenBank Introduction
# https://rosalind.info/problems/gbk/
from Bio import Entrez
Entrez.email = "your_name@your_mail_server.com"
handle = Entrez.esearch(db="nucleotide", term='"Zea mays"[Organism] AND rbcL[Gene]')
record = Entrez.read(handle)
print(record["Count"])
handle = Entrez.esearch(db="nucleotide", term='"Anthoxanthum"[Organism] AND 2003/7/25:2005/12/27[Publication Date]')
record = Entrez.read(handle)
print(record["Count"])
handle = Entrez.esearch(db="nucleotide", term='"Psiloglonium"[Organism] AND 2003/09/11:2010/11/01[Publication Date]')
record = Entrez.read(handle)
print(record["Count"])