Getting ready

If you have followed the previous two recipes, you will be ready. If not, download the Anopheles gambiae FASTA file, along with the GTF file. You also need to prepare the gffutils database:

import gffutilsimport sqlite3try:    db = gffutils.create_db('gambiae.gff.gz', 'ag.db')except sqlite3.OperationalError: db = gffutils.FeatureDB('ag.db')

As usual, you will find all of this in the Chapter03/Getting_Gene.ipynb Notebook file.

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.