Skip to Content
Python for Bioinformatics
book

Python for Bioinformatics

by Jason Kinser
June 2008
Beginner to intermediate
417 pages
10h 41m
English
Jones & Bartlett Learning
Content preview from Python for Bioinformatics

8 Dynamic Programming

The functions discussed in the previous chapter required users to insert gaps manually into sequences. Information about where and how many gaps are needed is not generally available. A commonly executed task is to align two sequences and to determine the locations of the gaps that provide the optimal alignment. Because brute force alignment—a technique that considers all of the possibilities for the location of gaps—is no longer a viable option, the field has adopted dynamic programming as a solution.

8.1 The Problem with the Brute Force Approach

For the purposes of alignment, it is not possible to distinguish between an insertion and a deletion. Consider the following two sequences:

 

A = 'TGCGTAG'B = 'TG-GTAG'

Has a ‘C’ ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Bioinformatics with Python Cookbook - Third Edition

Bioinformatics with Python Cookbook - Third Edition

Tiago Antao

Publisher Resources

ISBN: 9780763751869