How to do it...

Now, let's look at how we can search and fetch data from NCBI databases:

  1. We will start by importing the relevant module and configuring the email address:
from Bio import Entrez, = ''

We will also import the module to process sequences. Do not forget to put in the correct email address.

  1. 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 = rec_list['RetMax'] < rec_list['Count']: handle = Entrez.esearch(db='nucleotide', term='CRT[Gene ...

Get Bioinformatics with Python Cookbook - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.