Graphs and DNA sequencing CS 466 Saurabh Sinha. Three problems in graph theory.

Slides:



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

Instructor Neelima Gupta Table of Contents Approximation Algorithms.
Graph Theory Aiding DNA Fragment Assembly Jonathan Kaptcianos advisor: Professor Jo Ellis-Monaghan Work.
Chapter 6. Relaxation (1) Superstring Ding-Zhu Du.
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.
Reducibility Class of problems A can be reduced to the class of problems B Take any instance of problem A Show how you can construct an instance of problem.
Combinatorial Algorithms
DNA Sequencing with Longer Reads Byung G. Kim Computer Science Dept. Univ. of Mass. Lowell
1 Discrete Structures & Algorithms Graphs and Trees: II EECE 320.
Approximation Algorithms: Combinatorial Approaches Lecture 13: March 2.
CISC667, F05, Lec4, Liao CISC 667 Intro to Bioinformatics (Fall 2005) Whole genome sequencing Mapping & Assembly.
CSE 326: Data Structures NP Completeness Ben Lerner Summer 2007.
CS273a Lecture 2, Autumn 10, Batzoglou DNA Sequencing (cont.)
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.
CS 6030 – Bioinformatics Summer II 2012 Jason Eric Johnson
Introduction to Bioinformatics Algorithms Graph Algorithms in Bioinformatics.
1 Physical Mapping --An Algorithm and An Approximation for Hybridization Mapping Shi Chen CSE497 04Mar2004.
De-novo Assembly Day 4.
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,
CS 394C March 19, 2012 Tandy Warnow.
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.
Physical Mapping of DNA BIO/CS 471 – Algorithms for Bioinformatics.
JM - 1 Introduction to Bioinformatics: Lecture III Genome Assembly and String Matching Jarek Meller Jarek Meller Division of Biomedical.
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.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
Sequencing tutorial Peter HANTZ EMBL Heidelberg.
CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.
Lecture 25 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
A new Approach to Fragment Assembly in DNA Sequenceing Fei wu April,24,2006.
CS 173, Lecture B Introduction to Genome Assembly (using Eulerian Graphs) Tandy Warnow.
COMPUTATIONAL GENOMICS GENOME ASSEMBLY
ALLPATHS: De Novo Assembly of Whole-Genome Shotgun Microreads
Review: Graph Theory in Bioinformatics Yunkai Liu Assistant Professor Computer Science Department University of South Dakota.
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
1 Euler and Hamilton paths Jorge A. Cobb The University of Texas at Dallas.
Grade 11 AP Mathematics Graph Theory Definition: A graph, G, is a set of vertices v(G) = {v 1, v 2, v 3, …, v n } and edges e(G) = {v i v j where 1 ≤ i,
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
Introduction to Genome Assembly
Graph Algorithms in Bioinformatics
CS 598AGB Genome Assembly Tandy Warnow.
Genome Assembly.
Graph Algorithms in Bioinformatics
Graph Algorithms in Bioinformatics
CSE 5290: Algorithms for Bioinformatics Fall 2009
Presentation transcript:

Graphs and DNA sequencing CS 466 Saurabh Sinha

Three problems in graph theory

Eulerian Cycle Problem Find a cycle that visits every edge exactly once Linear time

Hamiltonian Cycle Problem Find a cycle that visits every vertex exactly once NP – complete Game invented by Sir William Hamilton in 1857

Travelling Salesman Problem Find the cheapest tour of a given set of cities “Cost” associated with going from any city to any other city Must visit every city exactly once NP-complete

DNA Sequencing

Shear DNA into millions of small fragments Read 500 – 700 nucleotides at a time from the small fragments (Sanger method)

Fragment Assembly Computational Challenge: assemble individual short fragments (reads) into a single genomic sequence (“superstring”)

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

Shortest Superstring Problem: Example

Shortest Superstring Problem Can be framed as Travelling Salesman Problem (TSP): Overlap(s i,s j ) = largest overlap between s i and s j Complete directed graph with vertices for substrings (s i ) and edge weights being -overlap(s i,s j )

Shortest Superstring Problem Doesn’t help to cast this as TSP –TSP is NP-complete Early sequencing algorithms used a greedy approach: merge a pair of strings with maximum overlap first –Conjectured to have performance guarantee of 2.

Generating the fragments += Shake DNA fragments Vector Circular genome (bacterium, plasmid ) Known location (restriction site) Cloning (many many copies)

Read Coverage Length of genomic segment: L Number of reads: n Coverage C = n l / L Length of each read: l How much coverage is enough? Lander-Waterman model: Assuming uniform distribution of reads, C=10 results in 1 gapped region per 1,000,000 nucleotides C

Lander-Waterman Model Major Assumptions –Reads are randomly distributed in the genome –The number of times a base is sequenced follows a Poisson distribution Implications –G= genome length, L=read length, N = # reads –Mean of Poisson: =LN/G (coverage) –% bases not sequenced: p(X=0) = = 0.09% –Total gap length: p(X=0)*G Average times This model was used to plan the Human Genome Project…

Assemblers The first large eukaryotic genomes (fruitfly, human) originally assembled using assembly programs such as the “Celera assembler” and “Arachne”. We will see one of these assemblers later in the course

Challenges in Fragment Assembly Repeats: A major problem for fragment assembly > 50% of human genome are repeats over 1 million Alu repeats (about 300 bp) about 200,000 LINE repeats (1000 bp and longer)

Source:

Dealing with repeats Use “mate-pair” reads Fragments of length ~ L are selected, and both ends are sequenced –L >> length of typical repeat Reads are now in pairs, separated by approximately known distance (L) Both reads of a mate-pair are unlikely to lie in repeat regions Using their approximate separation, we can resolve assembly problems

Shotgun Sequencing cut many times at random (Shotgun) genomic segment Get one or two reads from each segment ~500 bp

A completely different sequencing method: Sequencing by Hybridization 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.

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 a combinatorial algorithm to reconstruct the sequence of the target DNA fragment from the l – mer composition.

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

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 Different from the Shortest Superstring Problem

SBH: Hamiltonian Path Approach S = { ATG AGG TGC TCC GTC GGT GCA CAG } Path visited every VERTEX once ATGAGGTGCTCC H GTC GGT GCACAG ATGCAGGTCC

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

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 (has an Eulerian cycle) if and only if each of its vertices is balanced.

Euler Theorem: Proof Eulerian → balanced for every edge entering v (incoming edge) there exists an edge leaving v (outgoing edge). Therefore in(v)=out(v) Balanced → Eulerian ???

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.

Algorithm for Constructing an Eulerian Cycle (cont’d) b. If cycle from (a) 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.

Algorithm for Constructing an Eulerian Cycle (cont’d) c.Combine the cycles from (a) and (b) into a single cycle and iterate step (b).

SBH as Eulerian Path Problem A vertex v is “semibalanced” if | in-degree(v) - out-degree(v)| = 1 If a graph has an Eulerian path starting from s and ending at t, then all its vertices are balanced with the possible exception of s and t Add an edge between two semibalanced vertices: now all vertices should be balanced (assuming there was an Eulerian path to begin with). Find the Eulerian cycle, and remove the edge you had added. You now have the Eulerian path you wanted.