Now, let's look at how we can search and fetch data from NCBI databases:
- We will start by importing the relevant module and configuring the email address:
from Bio import Entrez, SeqIOEntrez.email = 'email@example.com'
We will also import the module to process sequences. Do not forget to put in the correct email address.
- We will now try to find the chloroquine resistance transporter (CRT) gene in Plasmodium falciparum (the parasite that causes the deadliest form of malaria) on the nucleotide database:
handle = Entrez.esearch(db='nucleotide', term='CRT[Gene Name] AND "Plasmodium falciparum"[Organism]')rec_list = Entrez.read(handle)if rec_list['RetMax'] < rec_list['Count']: handle = Entrez.esearch(db='nucleotide', term='CRT[Gene ...