CSE 5290: Algorithms for Bioinformatics Fall 2009

Slides:



Advertisements
Similar presentations
Graph Theory Aiding DNA Fragment Assembly Jonathan Kaptcianos advisor: Professor Jo Ellis-Monaghan Work.
Advertisements

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.
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.
Lecture 14 Genome sequencing projects
CS273a Lecture 4, Autumn 08, Batzoglou Some Terminology insert a fragment that was incorporated in a circular genome, and can be copied (cloned) vector.
DNA Sequencing Lecture 9, Tuesday April 29, 2003.
Genome Sequence Assembly: Algorithms and Issues Fiona Wong Jan. 22, 2003 ECS 289A.
CS262 Lecture 11, Win07, Batzoglou Some Terminology insert a fragment that was incorporated in a circular genome, and can be copied (cloned) vector the.
Large-Scale Global Alignments Multiple Alignments Lecture 10, Thursday May 1, 2003.
DNA Sequencing. The Walking Method 1.Build a very redundant library of BACs with sequenced clone- ends (cheap to build) 2.Sequence some “seed” clones.
DNA Sequencing Some Terminology insert a fragment that was incorporated in a circular genome, and can be copied (cloned) vector the circular genome (host)
Assembly.
DNA Sequencing and Assembly
DNA Sequencing.
CS273a Lecture 4, Autumn 08, Batzoglou Fragment Assembly (in whole-genome shotgun sequencing) CS273a Lecture 5.
Sequencing and Assembly Cont’d. CS273a Lecture 5, Win07, Batzoglou Steps to Assemble a Genome 1. Find overlapping reads 4. Derive consensus sequence..ACGATTACAATAGGTT..
Sequencing and Assembly Cont’d. CS273a Lecture 5, Aut08, Batzoglou Steps to Assemble a Genome 1. Find overlapping reads 4. Derive consensus sequence..ACGATTACAATAGGTT..
Computational Genomics and Proteomics Sequencing genomes.
CS273a Lecture 4, Autumn 08, Batzoglou Hierarchical Sequencing.
DNA Sequencing and Assembly. DNA sequencing How we obtain the sequence of nucleotides of a species …ACGTGACTGAGGACCGTG CGACTGAGACTGACTGGGT CTAGCTAGACTACGTTTTA.
DNA Sequencing. DNA sequencing How we obtain the sequence of nucleotides of a species …ACGTGACTGAGGACCGTG CGACTGAGACTGACTGGGT CTAGCTAGACTACGTTTTA TATATATATACGTCGTCGT.
CS273a Lecture 2, Autumn 10, Batzoglou DNA Sequencing (cont.)
DNA Sequencing. CS273a Lecture 3, Autumn 08, Batzoglou DNA sequencing How we obtain the sequence of nucleotides of a species …ACGTGACTGAGGACCGTG CGACTGAGACTGACTGGGT.
DNA Sequencing. Next few topics DNA Sequencing  Sequencing strategies Hierarchical Online (Walking) Whole Genome Shotgun  Sequencing Assembly Gene Recognition.
Genome sequencing and assembling
CS 6030 – Bioinformatics Summer II 2012 Jason Eric Johnson
Introduction to Bioinformatics Algorithms Graph Algorithms in Bioinformatics.
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.
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.
Sequence Assembly Fall 2015 BMI/CS 576 Colin Dewey
Genome sequencing Haixu Tang School of Informatics.
Fuzzypath – Algorithms, Applications and Future Developments
Sequence Assembly BMI/CS 576 Fall 2010 Colin Dewey.
A Sequenciação em Análises Clínicas Polymerase Chain Reaction.
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.
Human Genome.
A new Approach to Fragment Assembly in DNA Sequenceing Fei wu April,24,2006.
Whole Genome Sequencing (Lecture for CS498-CXZ Algorithms in Bioinformatics) Sept. 13, 2005 ChengXiang Zhai Department of Computer Science University of.
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.
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
DNA Sequencing Project
CS296-5 Genomes, Networks, and Cancer
Fragment Assembly (in whole-genome shotgun sequencing)
Genome sequence assembly
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.
Graph Algorithms in Bioinformatics
Graph Algorithms in Bioinformatics
A Sequenciação em Análises Clínicas
Fragment Assembly 7/30/2019.
Presentation transcript:

CSE 5290: Algorithms for Bioinformatics Fall 2009 Suprakash Datta datta@cs.yorku.ca Office: CSEB 3043 Phone: 416-736-2100 ext 77875 Course page: http://www.cs.yorku.ca/course/5290 4/9/2019 CSE 5290, Fall 2009

Next Graph algorithms Some of the following slides are based on slides by the authors of our text. 4/9/2019 CSE 5290, Fall 2009

DNA Sequencing Shear DNA into millions of small fragments Read 500 – 700 nucleotides at a time from the small fragments (Sanger method) 4/9/2019 CSE 5290, Fall 2009

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 4/9/2019 CSE 5290, Fall 2009

Shortest Superstring Problem Problem: Given a set of strings, find a shortest string that contains all of them Input: Strings s1, s2,…., sn Output: A string s that contains all strings s1, s2,…., sn as substrings, such that the length of s is minimized Complexity: NP – complete Note: this formulation does not take into account sequencing errors 4/9/2019 CSE 5290, Fall 2009

Shortest Superstring Problem: Example 4/9/2019 CSE 5290, Fall 2009

Reducing SSP to TSP Define overlap ( si, sj ) as the length of the longest prefix of sj that matches a suffix of si. aaaggcatcaaatctaaaggcatcaaa What is overlap ( si, sj ) for these strings? 4/9/2019 CSE 5290, Fall 2009

Reducing SSP to TSP Define overlap ( si, sj ) as the length of the longest prefix of sj that matches a suffix of si. aaaggcatcaaatctaaaggcatcaaa overlap=12 4/9/2019 CSE 5290, Fall 2009

Reducing SSP to TSP Define overlap ( si, sj ) as the length of the longest prefix of sj that matches a suffix of si. aaaggcatcaaatctaaaggcatcaaa Construct a graph with n vertices representing the n strings s1, s2,…., sn. Insert edges of length overlap ( si, sj ) between vertices si and sj. Find the shortest path which visits every vertex exactly once. This is the Traveling Salesman Problem (TSP), which is also NP – complete. 4/9/2019 CSE 5290, Fall 2009

Reducing SSP to TSP (cont’d) 4/9/2019 CSE 5290, Fall 2009

SSP to TSP: An Example S = { ATC, CCA, CAG, TCC, AGT } SSP AGT CCA TSP ATCCAGT TCC CAG TSP ATC 2 1 1 AGT 1 CCA 1 2 2 2 1 CAG TCC ATCCAGT 4/9/2019 CSE 5290, Fall 2009

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) 4/9/2019 CSE 5290, Fall 2009

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. 4/9/2019 CSE 5290, Fall 2009

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. 4/9/2019 CSE 5290, Fall 2009

Hybridization on DNA Array 4/9/2019 CSE 5290, Fall 2009

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} 4/9/2019 CSE 5290, Fall 2009

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. 4/9/2019 CSE 5290, Fall 2009

Different sequences – the same spectrum Different sequences may have the same spectrum: Spectrum(GTATCT,2)= Spectrum(GTCTAT,2)= {AT, CT, GT, TA, TC} 4/9/2019 CSE 5290, Fall 2009

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 4/9/2019 CSE 5290, Fall 2009

SBH: Hamiltonian Path Approach S = { ATG AGG TGC TCC GTC GGT GCA CAG } H ATG AGG TGC TCC GTC GGT GCA CAG ATG C A G G T C C Path visited every VERTEX once 4/9/2019 CSE 5290, Fall 2009

SBH: Hamiltonian Path Approach A more complicated graph: S = { ATG TGG TGC GTG GGC GCA GCG CGT } 4/9/2019 CSE 5290, Fall 2009

SBH: Hamiltonian Path Approach S = { ATG TGG TGC GTG GGC GCA GCG CGT } Path 1: ATGCGTGGCA Path 2: ATGGCGTGCA 4/9/2019 CSE 5290, Fall 2009

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 4/9/2019 CSE 5290, Fall 2009

SBH: Eulerian Path Approach S = { AT, TG, GC, GG, GT, CA, CG } corresponds to two different paths: GT CG GT CG AT TG GC AT TG GC CA CA GG GG ATGGCGTGCA ATGCGTGGCA 4/9/2019 CSE 5290, Fall 2009

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. 4/9/2019 CSE 5290, Fall 2009

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 ??? 4/9/2019 CSE 5290, Fall 2009

Algorithm for Constructing an Eulerian Cycle 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. 4/9/2019 CSE 5290, Fall 2009

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. 4/9/2019 CSE 5290, Fall 2009

Algorithm for Constructing an Eulerian Cycle (cont’d) c. Combine the cycles from (a) and (b) into a single cycle and iterate step (b). 4/9/2019 CSE 5290, Fall 2009

Euler Theorem: Extension Theorem: A connected graph has an Eulerian path if and only if it contains at most two semi-balanced vertices and all other vertices are balanced. 4/9/2019 CSE 5290, Fall 2009

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 4/9/2019 CSE 5290, Fall 2009

Traditional DNA Sequencing Shake DNA fragments Known location (restriction site) Vector Circular genome (bacterium, plasmid) + = 4/9/2019 CSE 5290, Fall 2009

Different Types of Vectors Size of insert (bp) Plasmid 2,000 - 10,000 Cosmid 40,000 BAC (Bacterial Artificial Chromosome) 70,000 - 300,000 YAC (Yeast Artificial Chromosome) > 300,000 Not used much recently 4/9/2019 CSE 5290, Fall 2009

Shotgun Sequencing Get one or two reads from each segment genomic segment cut many times at random (Shotgun) Get one or two reads from each segment ~500 bp ~500 bp 4/9/2019 CSE 5290, Fall 2009

Fragment Assembly Cover region with ~7-fold redundancy reads Cover region with ~7-fold redundancy Overlap reads and extend to reconstruct the original genomic region 4/9/2019 CSE 5290, Fall 2009

Read Coverage C How much coverage is enough? Lander-Waterman model: 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 4/9/2019 CSE 5290, Fall 2009

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) Repeat Green and blue fragments are interchangeable when assembling repetitive DNA 4/9/2019 CSE 5290, Fall 2009

Triazzle: A Fun Example The puzzle looks simple BUT there are repeats!!! The repeats make it very difficult. Try it – only $7.99 at www.triazzle.com 4/9/2019 CSE 5290, Fall 2009

Repeat Types Low-Complexity DNA (e.g. ATATATATACATA…) Microsatellite repeats (a1…ak)N where k ~ 3-6 (e.g. CAGCAGTAGCAGCACCAG) Transposons/retrotransposons SINE Short Interspersed Nuclear Elements (e.g., Alu: ~300 bp long, 106 copies) LINE Long Interspersed Nuclear Elements ~500 - 5,000 bp long, 200,000 copies LTR retroposons Long Terminal Repeats (~700 bp) at each end Gene Families genes duplicate & then diverge Segmental duplications ~very long, very similar copies 4/9/2019 CSE 5290, Fall 2009

Overlap-Layout-Consensus Assemblers: ARACHNE, PHRAP, CAP, TIGR, CELERA Overlap: find potentially overlapping reads Layout: merge reads into contigs and contigs into supercontigs Consensus: derive the DNA sequence and correct read errors ..ACGATTACAATAGGTT.. 4/9/2019 CSE 5290, Fall 2009

Overlap Find the best match between the suffix of one read and the prefix of another Due to sequencing errors, need to use dynamic programming to find the optimal overlap alignment Apply a filtration method to filter out pairs of fragments that do not share a significantly long common substring 4/9/2019 CSE 5290, Fall 2009

Overlapping Reads Sort all k-mers in reads (k ~ 24) Find pairs of reads sharing a k-mer Extend to full alignment – throw away if not >95% similar TACA TAGT || TAGATTACACAGATTAC T GA TAGA | || ||||||||||||||||| TAGATTACACAGATTAC 4/9/2019 CSE 5290, Fall 2009

Overlapping Reads and Repeats A k-mer that appears N times, initiates N2 comparisons For an Alu that appears 106 times  1012 comparisons – too much Solution: Discard all k-mers that appear more than t  Coverage, (t ~ 10) 4/9/2019 CSE 5290, Fall 2009

Finding Overlapping Reads Create local multiple alignments from the overlapping reads TAGATTACACAGATTACTGA TAGATTACACAGATTACTGA TAG TTACACAGATTATTGA TAGATTACACAGATTACTGA TAGATTACACAGATTACTGA TAGATTACACAGATTACTGA TAG TTACACAGATTATTGA TAGATTACACAGATTACTGA 4/9/2019 CSE 5290, Fall 2009

Layout Repeats are a major challenge Do two aligned fragments really overlap, or are they from two copies of a repeat? Solution: repeat masking – hide the repeats!!! Masking results in high rate of misassembly (up to 20%) Misassembly means alot more work at the finishing step 4/9/2019 CSE 5290, Fall 2009

Merge Reads into Contigs repeat region Merge reads up to potential repeat boundaries 4/9/2019 CSE 5290, Fall 2009

Repeats, Errors, and Contig Lengths Repeats shorter than read length are OK Repeats with more base pair differencess than sequencing error rate are OK To make a smaller portion of the genome appear repetitive, try to: Increase read length Decrease sequencing error rate 4/9/2019 CSE 5290, Fall 2009

Link Contigs into Supercontigs Normal density Too dense: Overcollapsed? Inconsistent links: Overcollapsed? 4/9/2019 CSE 5290, Fall 2009

Consensus A consensus sequence is derived from a profile of the assembled fragments A sufficient number of reads is required to ensure a statistically significant consensus Reading errors are corrected 4/9/2019 CSE 5290, Fall 2009

Derive Consensus Sequence TAGATTACACAGATTACTGA TTGATGGCGTAA CTA TAGATTACACAGATTACTGACTTGATGGCGTAAACTA TAG TTACACAGATTATTGACTTCATGGCGTAA CTA TAGATTACACAGATTACTGACTTGATGGCGTAA CTA TAGATTACACAGATTACTGACTTGATGGGGTAA CTA TAGATTACACAGATTACTGACTTGATGGCGTAA CTA Derive multiple alignment from pairwise read alignments Derive each consensus base by weighted voting 4/9/2019 CSE 5290, Fall 2009

EULER - A New Approach to Fragment Assembly Traditional “overlap-layout-consensus” technique has a high rate of mis-assembly EULER uses the Eulerian Path approach borrowed from the SBH problem Fragment assembly without repeat masking can be done in linear time with greater accuracy 4/9/2019 CSE 5290, Fall 2009

Overlap Graph: Hamiltonian Approach Each vertex represents a read from the original sequence. Vertices from repeats are connected to many others. Repeat Find a path visiting every VERTEX exactly once: Hamiltonian path problem 4/9/2019 CSE 5290, Fall 2009

Overlap Graph: Eulerian Approach Repeat Placing each repeat edge together gives a clear progression of the path through the entire sequence. Find a path visiting every EDGE exactly once: Eulerian path problem 4/9/2019 CSE 5290, Fall 2009

Multiple Repeats Can be easily constructed with any number of repeats 4/9/2019 CSE 5290, Fall 2009

Construction of Repeat Graph Construction of repeat graph from k – mers: emulates an SBH experiment with a huge (virtual) DNA chip. Breaking reads into k – mers: Transform sequencing data into virtual DNA chip data. 4/9/2019 CSE 5290, Fall 2009

Construction of Repeat Graph (cont’d) Error correction in reads: “consensus first” approach to fragment assembly. Makes reads (almost) error-free BEFORE the assembly even starts. Using reads and mate-pairs to simplify the repeat graph (Eulerian Superpath Problem). 4/9/2019 CSE 5290, Fall 2009

Approaches to Fragment Assembly Find a path visiting every VERTEX exactly once in the OVERLAP graph: Hamiltonian path problem NP-complete: algorithms unknown 4/9/2019 CSE 5290, Fall 2009

Approaches to Fragment Assembly (cont’d) Find a path visiting every EDGE exactly once in the REPEAT graph: Eulerian path problem Linear time algorithms are known 4/9/2019 CSE 5290, Fall 2009

Making Repeat Graph Without DNA Problem: Construct the repeat graph from a collection of reads. Solution: Break the reads into smaller pieces. ? 4/9/2019 CSE 5290, Fall 2009

Repeat Sequences: Emulating a DNA Chip Virtual DNA chip allows the biological problem to be solved within the technological constraints. 4/9/2019 CSE 5290, Fall 2009

Repeat Sequences: Emulating a DNA Chip (cont’d) Reads are constructed from an original sequence in lengths that allow biologists a high level of certainty. They are then broken again to allow the technology to sequence each within a reasonable array. 4/9/2019 CSE 5290, Fall 2009

Minimizing Errors If an error exists in one of the 20-mer reads, the error will be perpetuated among all of the smaller pieces broken from that read. 4/9/2019 CSE 5290, Fall 2009

Minimizing Errors (cont’d) However, that error will not be present in the other instances of the 20-mer read. So it is possible to eliminate most point mutation errors before reconstructing the original sequence. 4/9/2019 CSE 5290, Fall 2009

Conclusions Graph theory is a vital tool for solving biological problems Wide range of applications, including sequencing, motif finding, protein networks, and many more 4/9/2019 CSE 5290, Fall 2009