Www.bioalgorithms.infoAn Introduction to Bioinformatics Algorithms Graph Algorithms in Bioinformatics.

Slides:



Advertisements
Similar presentations
CS 336 March 19, 2012 Tandy Warnow.
Advertisements

Graph Theory Aiding DNA Fragment Assembly Jonathan Kaptcianos advisor: Professor Jo Ellis-Monaghan Work.
Introduction to Graph Theory Instructor: Dr. Chaudhary Department of Computer Science Millersville University Reading Assignment Chapter 1.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Graph Algorithms in Bioinformatics. Outline Introduction to Graph Theory Eulerian & Hamiltonian Cycle Problems Benzer Experiment and Interval Graphs DNA.
Introduction to Bioinformatics Algorithms Graph Algorithms in Bioinformatics.
Chapter 8: Graph Algorithms July/23/2012 Name: Xuanyu Hu Professor: Elise de Doncker.
Lecture 24 Coping with NPC and Unsolvable problems. When a problem is unsolvable, that's generally very bad news: it means there is no general algorithm.
Combinatorial Algorithms
Master Course MSc Bioinformatics for Health Sciences H15: Algorithms on strings and sequences Xavier Messeguer Peypoch (
Approximation Algorithms for the Traveling Salesperson Problem.
Computational Genomics and Proteomics Sequencing genomes.
Genome Assembly Charles Yan Fragment Assembly Given a large number of fragments, such as ACC AC AT AC AT GG …, the goal is to figure out the original.
Sequencing tutorial Peter HANTZ EMBL Heidelberg.
CS 6030 – Bioinformatics Summer II 2012 Jason Eric Johnson
Introduction to Bioinformatics Algorithms Clustering and Microarray Analysis.
GRAPH Learning Outcomes Students should be able to:
Genome Reconstruction: A Puzzle With a Billion Pieces Genome Reconstruction: A Puzzle with a Billion Pieces Phillip Compeau & Pavel Pevzner University.
Theory of Computing Lecture 10 MAS 714 Hartmut Klauck.
Physical Mapping of DNA Shanna Terry March 2, 2004.
Sequence Assembly: Concepts BMI/CS 576 Sushmita Roy September 2012 BMI/CS 576.
DNA Sequencing (Lecture for CS498-CXZ Algorithms in Bioinformatics) Sept. 8, 2005 ChengXiang Zhai Department of Computer Science University of Illinois,
Biological Dynamics Group Central Dogma: DNA->RNA->Protein.
Graphs and DNA sequencing CS 466 Saurabh Sinha. Three problems in graph theory.
394C March 5, 2012 Introduction to Genome Assembly.
Graph Theory And Bioinformatics Jason Wengert. Outline Introduction to Graphs Eulerian Paths & Hamiltonian Cycles Interval Graph & Shape of Genes Sequencing.
Algorithms and Running Time Algorithm: Well defined and finite sequence of steps to solve a well defined problem. Eg.,, Sequence of steps to multiply two.
Sequence Assembly Fall 2015 BMI/CS 576 Colin Dewey
Fuzzypath – Algorithms, Applications and Future Developments
Sequence Assembly BMI/CS 576 Fall 2010 Colin Dewey.
CSE 326: Data Structures NP Completeness Ben Lerner Summer 2007.
CS 200 Algorithms and Data Structures
JM - 1 Introduction to Bioinformatics: Lecture III Genome Assembly and String Matching Jarek Meller Jarek Meller Division of Biomedical.
1 Combinatorial Algorithms Parametric Pruning. 2 Metric k-center Given a complete undirected graph G = (V, E) with nonnegative edge costs satisfying the.
Outline More exhaustive search algorithms Today: Motif finding
Combinatorial Optimization Problems in Computational Biology Ion Mandoiu CSE Department.
Fragment assembly of DNA A typical approach to sequencing long DNA molecules is to sample and then sequence fragments from them.
Introduction to Bioinformatics Algorithms Graph Algorithms in Bioinformatics.
Assembly of Paired-end Solexa Reads by Kmer Extension using Base Qualities Zemin Ning The Wellcome Trust Sanger Institute.
Data Structures & Algorithms Graphs
String Matching String matching: definition of the problem (text,pattern) depends on what we have: text or patterns Exact matching: Approximate matching:
Gene expression & Clustering. Determining gene function Sequence comparison tells us if a gene is similar to another gene, e.g., in a new species –Dynamic.
Lecture 10: Graph-Path-Circuit
Hashing Algorithm and its Applications in Bioinformatics By Zemin Ning Informatics Division The Wellcome Trust Sanger Institute.
Sequencing tutorial Peter HANTZ EMBL Heidelberg.
A new Approach to Fragment Assembly in DNA Sequenceing Fei wu April,24,2006.
COMPUTATIONAL GENOMICS GENOME ASSEMBLY
Chapter 20: Graphs. Objectives In this chapter, you will: – Learn about graphs – Become familiar with the basic terminology of graph theory – Discover.
Review: Graph Theory in Bioinformatics Yunkai Liu Assistant Professor Computer Science Department University of South Dakota.
Sequence Alignment and Genome Assembly Zemin Ning The Wellcome Trust Sanger Institute.
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
1 Euler and Hamilton paths Jorge A. Cobb The University of Texas at Dallas.
Graph Algorithms © Jones and Pevzner © Robert Simons
CSCI2950-C Lecture 2 DNA Sequencing and Fragment Assembly
Short reads: 50 to 150 nt (nucleotide)
DNA Sequencing (Lecture for CS498-CXZ Algorithms in Bioinformatics)
CSCI2950-C Genomes, Networks, and Cancer
CSCI2950-C Lecture 3 DNA Sequencing and Fragment Assembly
CS296-5 Genomes, Networks, and Cancer
Routing Through Networks - 1
Eulerian tours Miles Jones MTThF 8:30-9:50am CSE 4140 August 15, 2016.
CSE 5290: Algorithms for Bioinformatics Fall 2011
Graphs: As a mathematics branch
Graph Algorithms in Bioinformatics
ICS 353: Design and Analysis of Algorithms
Genome Assembly.
Graph Algorithms in Bioinformatics
Graph Algorithms in Bioinformatics
CSE 5290: Algorithms for Bioinformatics Fall 2009
Presentation transcript:

Introduction to Bioinformatics Algorithms Graph Algorithms in Bioinformatics

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Outline Definition and Data Structures of Graph Eulerian & Hamiltonian Cycle DNA Sequencing Shortest Superstring Problem, SSP as Traveling Salesman Problem (TSP) Sequencing by Hybridization (SBH), SBH as Hamiltonian Path Problem (HPP), SBH as Eulerian Path Problem (EPP)

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Graph a de cb f a b c d e f c cf e ae fc Adjacent lists Adjacent matrix Data structure for graph algorithms: Adjacent list, Adjacent matrix A directed graph G = (V,E) is represented by a set of vertices V and a set of edges E, where (u,v) belongs to E if and only if u and v belong to V and there is an edge from u to v.

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Adjacent list: Each vertex u has an adjacent list Adj[u] (1) For a connected graph G, if G is directed graph the total size of all the adjacent lists is |E|, and if G is undirected graph then the total size of all the adjacent lists is 2|E|. Generally, the total size of adjacent lists is O(V+E). (2) For a weighted graph G, weight w(u,v) of edge (u,v) is kept in Adj[u] with vertex v. Adjacent matrix : Each vertex is given a number from 1,2,…,|V|. (1) For a undirected graph, its adjacent matrix is symmetric. (2) For a weighted graph, weight w(u,v) is kept in its adjacent matrix at row i and column j.

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info 1 2 5 4 3 1 2 Comparison between adjacent list and adjacent matrix (1)If |E| is much smaller than then adjacent list is better (using less memory). (2)It costs time using adjacent lists to find if v is adjacent to u.

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info The Bridge Obsession Problem Bridges of Königsberg Find a tour crossing every bridge just once Leonhard Euler, 1735 Eulerian & Hamiltonian Cycle

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Eulerian Cycle Problem Find a cycle that visits every edge exactly once Linear time More complicated Königsberg

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Hamiltonian Cycle Problem Find a cycle that visits every vertex exactly once NP – complete Game invented by Sir William Hamilton in 1857 Traveling Salesman Problem Find the shortest path which visits every vertex exactly once NP – complete

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info DNA Sequencing: History Sanger method (1977): labeled ddNTPs terminate DNA copying at random points. Both methods generate labeled fragments of varying lengths that are further electrophoresed. Gilbert method (1977): chemical method to cleave DNA at specific points (G, G+A, T+C, C).

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Sanger Method: Generating Read 1.Start at primer (restriction site) 2.Grow DNA chain 3.Include ddNTPs 4.Stops reaction at all possible points 5.Separate products by length, using gel electrophoresis

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info DNA Sequencing Shear DNA into millions of small fragments Read 500 – 700 nucleotides at a time from the small fragments (Sanger method)

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Fragment Assembly Computational Challenge: assemble individual short fragments (reads) into a single genomic sequence (“superstring”) Until late 1990s the shotgun fragment assembly of human genome was viewed as intractable problem

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Shortest Superstring Problem Problem: Given a set of strings, find a shortest string that contains all of them Input: Strings s 1, s 2,…., s n Output: A string s that contains all strings s 1, s 2,…., s n as substrings, such that the length of s is minimized Complexity: NP – complete Note: this formulation does not take into account sequencing errors

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Shortest Superstring Problem: Example

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Reducing SSP to TSP Define overlap ( s i, s j ) as the length of the longest prefix of s j that matches a suffix of s i. aaaggcatcaaatctaaaggcatcaaa What is overlap ( s i, s j ) for these strings?

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Reducing SSP to TSP Define overlap ( s i, s j ) as the length of the longest prefix of s j that matches a suffix of s i. aaaggcatcaaatctaaaggcatcaaa overlap=12

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Reducing SSP to TSP Define overlap ( s i, s j ) as the length of the longest prefix of s j that matches a suffix of s i. aaaggcatcaaatctaaaggcatcaaa Construct a graph with n vertices representing the n strings s 1, s 2,…., s n. Insert edges of length overlap ( s i, s j ) between vertices s i and s j. Find the shortest path which visits every vertex exactly once. This is the Traveling Salesman Problem (TSP), which is also NP – complete.

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info SSP to TSP: An Example S = { ATC, CCA, CAG, TCC, AGT } SSP AGT CCA ATC ATCCAGT TCC CAG ATCCAGT TSP ATC CCA TCC AGT CAG

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Sequencing by Hybridization (SBH): History 1988: SBH suggested as an an alternative sequencing method. Nobody believed it will ever work 1991: Light directed polymer synthesis developed by Steve Fodor and colleagues. 1994: Affymetrix develops first 64-kb DNA microarray First microarray prototype (1989) First commercial DNA microarray prototype w/16,000 features (1994) 500,000 features per chip (2002)

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info How SBH Works Attach all possible DNA probes of length l to a flat surface, each probe at a distinct and known location. This set of probes is called the DNA array. Apply a solution containing fluorescently labeled DNA fragment to the array. The DNA fragment hybridizes with those probes that are complementary to substrings of length l of the fragment.

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info How SBH Works (cont’d) Using a spectroscopic detector, determine which probes hybridize to the DNA fragment to obtain the l–mer composition of the target DNA fragment. Apply the combinatorial algorithm (below) to reconstruct the sequence of the target DNA fragment from the l – mer composition.

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Hybridization on DNA Array

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info l -mer composition Spectrum ( s, l ) - unordered multiset of all possible (n – l + 1) l-mers in a string s of length n The order of individual elements in Spectrum ( s, l ) does not matter For s = TATGGTGC all of the following are equivalent representations of Spectrum ( s, 3 ): {TAT, ATG, TGG, GGT, GTG, TGC} {ATG, GGT, GTG, TAT, TGC, TGG} {TGG, TGC, TAT, GTG, GGT, ATG}

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info l -mer composition Spectrum ( s, l ) - unordered multiset of all possible (n – l + 1) l-mers in a string s of length n The order of individual elements in Spectrum ( s, l ) does not matter For s = TATGGTGC all of the following are equivalent representations of Spectrum ( s, 3 ): {TAT, ATG, TGG, GGT, GTG, TGC} {ATG, GGT, GTG, TAT, TGC, TGG} {TGG, TGC, TAT, GTG, GGT, ATG} We usually choose the lexicographically maximal representation as the canonical one.

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Different sequences – the same spectrum Different sequences may have the same spectrum: Spectrum(GTATCT,2)= Spectrum(GTCTAT,2)= {AT, CT, GT, TA, TC}

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info The SBH Problem Goal: Reconstruct a string from its l-mer composition Input: A set S, representing all l-mers from an (unknown) string s Output: String s such that Spectrum ( s,l ) = S

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info SBH: Hamiltonian Path Approach S = { ATG AGG TGC TCC GTC GGT GCA CAG } Path visited every VERTEX once ATGAGGTGCTCC H GTC GGT GCACAG ATGCAGGTCC

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info SBH: Hamiltonian Path Approach A more complicated graph: S = { ATG TGG TGC GTG GGC GCA GCG CGT }

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info SBH: Hamiltonian Path Approach S = { ATG TGG TGC GTG GGC GCA GCG CGT } Path 1: ATGCGTGGCA ATGGCGTGCA Path 2:

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info SBH: Eulerian Path Approach S = { ATG, TGC, GTG, GGC, GCA, GCG, CGT } Vertices correspond to ( l – 1 ) – mers : { AT, TG, GC, GG, GT, CA, CG } Edges correspond to l – mers from S AT GT CG CA GC TG GG Path visited every EDGE once

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info SBH: Eulerian Path Approach S = { AT, TG, GC, GG, GT, CA, CG } corresponds to two different paths: ATGGCGTGCA ATGCGTGGCA AT TG GC CA GG GT CG AT GT CG CA GCTG GG

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Euler Theorem A graph is balanced if for every vertex the number of incoming edges equals to the number of outgoing edges: in(v)=out(v) Theorem: A connected graph is Eulerian if and only if each of its vertices is balanced.

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Algorithm for Constructing an Eulerian Cycle a.Start with an arbitrary vertex v and form an arbitrary cycle with unused edges until a dead end is reached. Since the graph is Eulerian this dead end is necessarily the starting point, i.e., vertex v.

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Algorithm for Constructing an Eulerian Cycle (cont’d) b. If cycle from (a) above is not an Eulerian cycle, it must contain a vertex w, which has untraversed edges. Perform step (a) again, using vertex w as the starting point. Once again, we will end up in the starting vertex w.

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Algorithm for Constructing an Eulerian Cycle (cont’d) c.Combine the cycles from (a) and (b) into a single cycle and iterate step (b).

An Introduction to Bioinformatics Algorithmswww.bioalgorithms.info Some Difficulties with SBH Fidelity of Hybridization: difficult to detect differences between probes hybridized with perfect matches and 1 or 2 mismatches Array Size: Effect of low fidelity can be decreased with longer l-mers, but array size increases exponentially in l. Array size is limited with current technology. Practicality: SBH is still impractical. As DNA microarray technology improves, SBH may become practical in the future Practicality again: Although SBH is still impractical, it spearheaded expression analysis and SNP analysis techniques