CSE 5290: Algorithms for Bioinformatics Fall 2009

Slides:



Advertisements
Similar presentations
Sorting by reversals Bogdan Pasaniuc Dept. of Computer Science & Engineering.
Advertisements

School of CSE, Georgia Tech
Greedy Algorithms CS 466 Saurabh Sinha. A greedy approach to the motif finding problem Given t sequences of length n each, to find a profile matrix of.
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.
Greedy Algorithms CS 6030 by Savitha Parur Venkitachalam.
Gene an d genome duplication Nadia El-Mabrouk Université de Montréal Canada.
Sorting Cancer Karyotypes by Elementary Operations Michal Ozery-Flato and Ron Shamir School of Computer Science, Tel Aviv University.
Bioinformatics Chromosome rearrangements Chromosome and genome comparison versus gene comparison Permutations and breakpoint graphs Transforming Men into.
Greedy Algorithms And Genome Rearrangements
Genome Rearrangements CIS 667 April 13, Genome Rearrangements We have seen how differences in genes at the sequence level can be used to infer evolutionary.
Introduction to Bioinformatics Algorithms Greedy Algorithms And Genome Rearrangements.
Discrete Structures & Algorithms EECE 320 : UBC : Spring 2009 Matei Ripeanu 1.
Of Mice and Men Learning from genome reversal findings Genome Rearrangements in Mammalian Evolution: Lessons From Human and Mouse Genomes and Transforming.
Genome Rearrangements. Basic Biology: DNA Genetic information is stored in deoxyribonucleic acid (DNA) molecules. A single DNA molecule is a sequence.
Genome Rearrangements CSCI : Computational Genomics Debra Goldberg
Genomic Rearrangements CS 374 – Algorithms in Biology Fall 2006 Nandhini N S.
Transforming Cabbage into Turnip: Polynomial Algorithm for Sorting Signed Permutations by Reversals Journal of the ACM, vol. 46, No. 1, Jan 1999, pp
Genome Rearrangement SORTING BY REVERSALS Ankur Jain Hoda Mokhtar CS290I – SPRING 2003.
Genome Rearrangements, Synteny, and Comparative Mapping CSCI 4830: Algorithms for Molecular Biology Debra S. Goldberg.
1 Genome Rearrangements João Meidanis São Paulo, Brazil December, 2004.
Phylogenetic Tree Construction and Related Problems Bioinformatics.
7-1 Chapter 7 Genome Rearrangement. 7-2 Background In the late 1980‘s Jeffrey Palmer and colleagues discovered a remarkable and novel pattern of evolutionary.
Pancakes With A Problem Steven Rudich The chef at our place is sloppy, and when he prepares a stack of pancakes they come out all different sizes.
Pancakes With A Problem! Great Theoretical Ideas In Computer Science Vince Conitzer COMPSCI 102 Fall 2007 Lecture 1 August 27, 2007 Duke University.
Cooking for Computer Scientists. I understand that making pancakes can be a dangerous activity and that, by doing so, I am taking a risk that I.
CSE 6406: Bioinformatics Algorithms. Course Outline
CompSci 102 Spring 2012 Prof. Rodger January 11, 2012.
Pancakes With A Problem! Great Theoretical Ideas In Computer Science Anupam Gupta CS Fall 2O05 Lecture 1 Aug 29 th, 2OO5 Aug 29 th, 2OO5 Carnegie.
Pancakes With A Problem! Great Theoretical Ideas In Computer Science Anupam Gupta CS Fall 2006 Lecture 1 Aug 29 th, 2OO6 Aug 29 th, 2OO6 Carnegie.
16. Lecture WS 2004/05Bioinformatics III1 V16 – genome rearrangement Important information – contained in the order in which genes occur on the genomes.
Introduction to bioinformatics (I617) Haixu Tang School of Informatics Office: EIG 1008 Tel:
Genome Rearrangements Unoriented Blocks. Quick Review Looking at evolutionary change through reversals Find the shortest possible series of reversals.
Greedy Algorithms And Genome Rearrangements An Introduction to Bioinformatics Algorithms (Jones and Pevzner)
Semester Project: Greedy Algorithms and Genome Rearrangements August/17/2012 Name: Xuanyu Hu Professor: Elise de Doncker.
Genome Rearrangements [1] Ch Types of Rearrangements Reversal Translocation
Greedy Algorithms And Genome Rearrangements
Chap. 7 Genome Rearrangements Introduction to Computational Molecular Biology Chap ~
Sorting by Cuts, Joins and Whole Chromosome Duplications
Andrew’s Leap 2011 Pancakes With A Problem Steven Rudich.
Chap. 7 Genome Rearrangements Introduction to Computational Molecular Biology Chapter 7.1~7.2.4.
Greedy Algorithms CS 498 SS Saurabh Sinha. A greedy approach to the motif finding problem Given t sequences of length n each, to find a profile matrix.
Gene: A sequence of nucleotides coding for protein Gene Prediction Problem: Determine the beginning and end positions of genes in a genome Gene Prediction:
Comparative genomics Haixu Tang School of Informatics.
Pancakes With A Problem! Great Theoretical Ideas In Computer Science Steven Rudich CS Spring 2005 Lecture 3 Jan 18, 2005 Carnegie Mellon University.
Genome Rearrangement By Ghada Badr Part I.
Introduction to Bioinformatics Algorithms Chapter 5 Greedy Algorithms and Genome Rearrangements By: Hasnaa Imad.
Genome Rearrangements. Turnip vs Cabbage: Look and Taste Different Although cabbages and turnips share a recent common ancestor, they look and taste different.
Genome Rearrangements. Turnip vs Cabbage: Look and Taste Different Although cabbages and turnips share a recent common ancestor, they look and taste different.
Outline Today’s topic: greedy algorithms
1 Genome Rearrangements (Lecture for CS498-CXZ Algorithms in Bioinformatics) Dec. 6, 2005 ChengXiang Zhai Department of Computer Science University of.
Lecture 4: Genome Rearrangements. End Sequence Profiling (ESP) C. Collins and S. Volik (UCSF Cancer Center) 1)Pieces of tumor genome: clones ( kb).
Lecture 2: Genome Rearrangements. Outline Cancer Sequencing Transforming Cabbage into Turnip Genome Rearrangements Sorting By Reversals Pancake Flipping.
CSCI2950-C Genomes, Networks, and Cancer
Original Synteny Vincent Ferretti, Joseph H. Nadeau, David Sankoff, 1996 Presented by: Suzy Sun.
Pancakes With A Problem!
Genome Rearrangement and Duplication Distance
Is There Something to CS Theory?
Genome Rearrangements
CSE 5290: Algorithms for Bioinformatics Fall 2011
Prepared by Chen & Po-Chuan 2016/03/29
Greedy (Approximation) Algorithms and Genome Rearrangements
Lecture 3: Genome Rearrangements and Duplications
Pancakes With A Problem!
CSCI2950-C Lecture 4 Genome Rearrangements
Greedy Algorithms And Genome Rearrangements
Lecture 7 – Algorithmic Approaches
Greedy Algorithms And Genome Rearrangements
CSE 5290: Algorithms for Bioinformatics Fall 2009
CSE 5290: Algorithms for Bioinformatics Fall 2009
CSE 5290: Algorithms for Bioinformatics Fall 2009
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 11/10/2018 CSE 5290, Fall 2009

Last time Finding Regulatory Motifs in DNA sequences (exhaustive search variants) Next: Greedy algorithms The following slides are based on slides by the authors of our text. 11/10/2018 CSE 5290, Fall 2009

Turnip vs Cabbage: Look and Taste Different Although cabbages and turnips share a recent common ancestor, they look and taste different 11/10/2018 CSE 5290, Fall 2009

Turnip vs Cabbage: Comparing Gene Sequences Yields No Evolutionary Information 11/10/2018 CSE 5290, Fall 2009

Turnip vs Cabbage: Almost Identical mtDNA gene sequences In 1980s Jeffrey Palmer studied evolution of plant organelles by comparing mitochondrial genomes of the cabbage and turnip 99% similarity between genes These surprisingly identical gene sequences differed in gene order This study helped pave the way to analyzing genome rearrangements in molecular evolution 11/10/2018 CSE 5290, Fall 2009

Turnip vs Cabbage: Different mtDNA Gene Order Gene order comparison: 11/10/2018 CSE 5290, Fall 2009

Turnip vs Cabbage: Different mtDNA Gene Order Gene order comparison: 11/10/2018 CSE 5290, Fall 2009

Turnip vs Cabbage: Different mtDNA Gene Order Gene order comparison: 11/10/2018 CSE 5290, Fall 2009

Turnip vs Cabbage: Different mtDNA Gene Order Gene order comparison: 11/10/2018 CSE 5290, Fall 2009

Turnip vs Cabbage: Different mtDNA Gene Order Gene order comparison: Before After Evolution is manifested as the divergence in gene order 11/10/2018 CSE 5290, Fall 2009

Transforming Cabbage into Turnip 11/10/2018 CSE 5290, Fall 2009

Genome rearrangements Mouse (X chrom.) Unknown ancestor ~ 75 million years ago Human (X chrom.) What are the similarity blocks and how to find them? What is the architecture of the ancestral genome? What is the evolutionary scenario for transforming one genome into the other? 11/10/2018 CSE 5290, Fall 2009

History of Chromosome X 11/10/2018 CSE 5290, Fall 2009 Rat Consortium, Nature, 2004

Reversals 1 3 2 4 10 5 6 8 9 7 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 Blocks represent conserved genes. 11/10/2018 CSE 5290, Fall 2009

Reversals 1 2 3 9 10 8 4 7 5 6 1, 2, 3, -8, -7, -6, -5, -4, 9, 10 Blocks represent conserved genes. In the course of evolution or in a clinical context, blocks 1,…,10 could be misread as 1, 2, 3, -8, -7, -6, -5, -4, 9, 10. 11/10/2018 CSE 5290, Fall 2009

Reversals and Breakpoints 1 2 3 9 10 8 4 7 5 6 1, 2, 3, -8, -7, -6, -5, -4, 9, 10 The reversion introduced two breakpoints (disruptions in order). 11/10/2018 CSE 5290, Fall 2009

Reversals: Example 5’ ATGCCTGTACTA 3’ 3’ TACGGACATGAT 5’ Break and Invert 5’ ATGTACAGGCTA 3’ 3’ TACATGTCCGAT 5’ 11/10/2018 CSE 5290, Fall 2009

Types of Rearrangements Reversal 1 2 3 4 5 6 1 2 -5 -4 -3 6 Translocation 1 2 3 4 5 6 1 2 6 4 5 3 Fusion 1 2 3 4 5 6 1 2 3 4 5 6 Fission 11/10/2018 CSE 5290, Fall 2009

Comparative Genomic Architectures: Mouse vs Human Genome Humans and mice have similar genomes, but their genes are ordered differently ~245 rearrangements Reversals Fusions Fissions Translocation 11/10/2018 CSE 5290, Fall 2009

Waardenburg’s Syndrome: Mouse Provides Insight into Human Genetic Disorder Waardenburg’s syndrome is characterized by pigmentary dysphasia Gene implicated in the disease was linked to human chromosome 2 but it was not clear where exactly it is located on chromosome 2 11/10/2018 CSE 5290, Fall 2009

Waardenburg’s syndrome and splotch mice A breed of mice (with splotch gene) had similar symptoms caused by the same type of gene as in humans Scientists succeeded in identifying location of gene responsible for disorder in mice Finding the gene in mice gives clues to where the same gene is located in humans 11/10/2018 CSE 5290, Fall 2009

Reversals: Example r(3,5) 1 2 5 4 3 6 7 8 r(5,6) 1 2 5 4 6 3 7 8 11/10/2018 CSE 5290, Fall 2009

Reversals and Gene Orders Gene order is represented by a permutation p: p = p 1 ------ p i-1 p i p i+1 ------ p j-1 p j p j+1 ----- p n p 1 ------ p i-1 p j p j-1 ------ p i+1 p i p j+1 ----- pn Reversal r ( i, j ) reverses (flips) the elements from i to j in p r(i,j) 11/10/2018 CSE 5290, Fall 2009

Reversal Distance Problem Goal: Given two permutations p, s, find the shortest series of reversals that transforms p into s Input: Permutations p and s Output: A series of reversals r1,…rt transforming p into s, such that t is minimum t - reversal distance between p and s d(p, s) - smallest possible value of t, given p and s 11/10/2018 CSE 5290, Fall 2009

Sorting By Reversals Problem Goal: Given a permutation, find a shortest series of reversals that transforms it into the identity permutation (1 2 … n ) Input: Permutation p Output: A series of reversals r1, … rt transforming p into the identity permutation such that t is minimum 11/10/2018 CSE 5290, Fall 2009

Sorting By Reversals: Example t =d(p ) - reversal distance of p Example : p = 3 4 2 1 5 6 7 10 9 8 4 3 2 1 5 6 7 10 9 8 4 3 2 1 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 So d(p ) = 3 11/10/2018 CSE 5290, Fall 2009

Sorting by reversals: 5 steps hour 11/10/2018 CSE 5290, Fall 2009

Sorting by reversals: 4 steps What is the reversal distance for this permutation? Can it be sorted in 3 steps? 11/10/2018 CSE 5290, Fall 2009

Pancake Flipping Problem The chef is sloppy; he prepares an unordered stack of pancakes of different sizes The waiter wants to rearrange them (so that the smallest winds up on top, and so on, down to the largest at the bottom) He does it by flipping over several from the top, repeating this as many times as necessary Christos Papadimitrou and Bill Gates flip pancakes 11/10/2018 CSE 5290, Fall 2009

Pancake Flipping Problem: Formulation Goal: Given a stack of n pancakes, what is the minimum number of flips to rearrange them into perfect stack? Input: Permutation p Output: A series of prefix reversals r1, … rt transforming p into the identity permutation such that t is minimum 11/10/2018 CSE 5290, Fall 2009

Pancake Flipping Problem: Greedy Algorithm Greedy approach: 2 prefix reversals at most to place a pancake in its right position, 2n – 2 steps total at most William Gates and Christos Papadimitriou showed in the mid-1970s that this problem can be solved by at most 5/3 (n + 1) prefix reversals 11/10/2018 CSE 5290, Fall 2009

Sorting By Reversals: A Greedy Algorithm If sorting permutation p = 1 2 3 6 4 5, the first three elements are already in order so it does not make any sense to break them. The length of the already sorted prefix of p is denoted prefix(p) prefix(p) = 3 This results in an idea for a greedy algorithm: increase prefix(p) at every step 11/10/2018 CSE 5290, Fall 2009

Greedy Algorithm: An Example Doing so, p can be sorted 1 2 3 6 4 5 1 2 3 4 6 5 1 2 3 4 5 6 Number of steps to sort permutation of length n is at most (n – 1) 11/10/2018 CSE 5290, Fall 2009

Greedy Algorithm: Pseudocode SimpleReversalSort(p) 1 for i  1 to n – 1 2 j  position of element i in p (i.e., pj = i) 3 if j ≠i 4 p  p * r(i, j) 5 output p 6 if p is the identity permutation 7 return 11/10/2018 CSE 5290, Fall 2009

Analyzing SimpleReversalSort SimpleReversalSort does not guarantee the smallest number of reversals and takes five steps on p = 6 1 2 3 4 5 : Step 1: 1 6 2 3 4 5 Step 2: 1 2 6 3 4 5 Step 3: 1 2 3 6 4 5 Step 4: 1 2 3 4 6 5 Step 5: 1 2 3 4 5 6 11/10/2018 CSE 5290, Fall 2009

Analyzing SimpleReversalSort But it can be sorted in two steps: p = 6 1 2 3 4 5 Step 1: 5 4 3 2 1 6 Step 2: 1 2 3 4 5 6 So, SimpleReversalSort(p) is not optimal Optimal algorithms are unknown for many problems; approximation algorithms are used 11/10/2018 CSE 5290, Fall 2009

Approximation Algorithms These algorithms find approximate solutions rather than optimal solutions The approximation ratio of an algorithm A on input p is: A(p) / OPT(p) where A(p) -solution produced by algorithm A OPT(p) - optimal solution of the problem 11/10/2018 CSE 5290, Fall 2009

Approximation Ratio/Performance Guarantee Approximation ratio (performance guarantee) of algorithm A: max approximation ratio of all inputs of size n For algorithm A that minimizes objective function (minimization algorithm): max|p| = n A(p) / OPT(p) 11/10/2018 CSE 5290, Fall 2009

Approximation Ratio/Performance Guarantee Approximation ratio (performance guarantee) of algorithm A: max approximation ratio of all inputs of size n For algorithm A that minimizes objective function (minimization algorithm): max|p| = n A(p) / OPT(p) For maximization algorithm: min|p| = n A(p) / OPT(p) 11/10/2018 CSE 5290, Fall 2009

Adjacencies and Breakpoints p = p1p2p3…pn-1pn A pair of elements p i and p i + 1 are adjacent if pi+1 = pi + 1 For example p = 1 9 3 4 7 8 2 6 5 (3, 4) or (7, 8) and (6,5) are adjacent pairs 11/10/2018 CSE 5290, Fall 2009

Breakpoints: An Example There is a breakpoint between any adjacent element that are non-consecutive: p = 1 9 3 4 7 8 2 6 5 Pairs (1,9), (9,3), (4,7), (8,2) and (2,5) form breakpoints of permutation p b(p) - # breakpoints in permutation p 11/10/2018 CSE 5290, Fall 2009

Adjacency & Breakpoints An adjacency - a pair of adjacent elements that are consecutive A breakpoint - a pair of adjacent elements that are not consecutive π = 5 6 2 1 3 4 Extend π with π0 = 0 and π7 = 7 adjacencies 0 5 6 2 1 3 4 7 breakpoints 11/10/2018 CSE 5290, Fall 2009

Extending Permutations We put two elements p 0 =0 and p n + 1=n+1 at the ends of p Example: p = 1 9 3 4 7 8 2 6 5 Extending with 0 and 10 p = 0 1 9 3 4 7 8 2 6 5 10 Note: A new breakpoint was created after extending 11/10/2018 CSE 5290, Fall 2009

Reversal Distance and Breakpoints Each reversal eliminates at most 2 breakpoints. p = 2 3 1 4 6 5 0 2 3 1 4 6 5 7 b(p) = 5 0 1 3 2 4 6 5 7 b(p) = 4 0 1 2 3 4 6 5 7 b(p) = 2 0 1 2 3 4 5 6 7 b(p) = 0 This implies: reversal distance ≥ #breakpoints / 2 11/10/2018 CSE 5290, Fall 2009

Sorting By Reversals: A Better Greedy Algorithm BreakPointReversalSort(p) 1 while b(p) > 0 2 Among all possible reversals, choose reversal r minimizing b(p • r) 3 p  p • r(i, j) 4 output p 5 return Q: Does this algorithm terminate? 11/10/2018 CSE 5290, Fall 2009

Strips Strip: an interval between two consecutive breakpoints in a permutation Decreasing strip: strip of elements in decreasing order (e.g. 6 5 and 3 2 ). Increasing strip: strip of elements in increasing order (e.g. 7 8) 0 1 9 4 3 7 8 2 5 6 10 A single-element strip can be declared either increasing or decreasing. We will choose to declare them as decreasing with exception of the strips with 0 and n+1 11/10/2018 CSE 5290, Fall 2009

Reducing the Number of Breakpoints Theorem 1: If permutation p contains at least one decreasing strip, then there exists a reversal r which decreases the number of breakpoints (i.e. b(p • r) < b(p) ) 11/10/2018 CSE 5290, Fall 2009

Find k – 1 in the permutation Things To Consider For p = 1 4 6 5 7 8 3 2 0 1 4 6 5 7 8 3 2 9 b(p) = 5 Choose decreasing strip with the smallest element k in p ( k = 2 in this case) Find k – 1 in the permutation 11/10/2018 CSE 5290, Fall 2009

Things To Consider (cont’d) For p = 1 4 6 5 7 8 3 2 0 1 4 6 5 7 8 3 2 9 b(p) = 5 Choose decreasing strip with the smallest element k in p ( k = 2 in this case) Find k – 1 in the permutation Reverse the segment between k and k-1: 0 1 4 6 5 7 8 3 2 9 b(p) = 5 0 1 2 3 8 7 5 6 4 9 b(p) = 4 11/10/2018 CSE 5290, Fall 2009

Reducing the Number of Breakpoints Again If there is no decreasing strip, there may be no reversal r that reduces the number of breakpoints (i.e. b(p • r) ≥ b(p) for any reversal r). By reversing an increasing strip ( # of breakpoints stay unchanged ), we will create a decreasing strip at the next step. Then the number of breakpoints will be reduced in the next step (theorem 1). 11/10/2018 CSE 5290, Fall 2009

Things To Consider (cont’d) There are no decreasing strips in p, for: p = 0 1 2 5 6 7 3 4 8 b(p) = 3 p • r(6,7) = 0 1 2 5 6 7 4 3 8 b(p) = 3 r(6,7) does not change the # of breakpoints r(6,7) creates a decreasing strip thus guaranteeing that the next step will decrease the # of breakpoints. 11/10/2018 CSE 5290, Fall 2009

ImprovedBreakpointReversalSort ImprovedBreakpointReversalSort(p) 1 while b(p) > 0 2 if p has a decreasing strip Among all possible reversals, choose reversal r that minimizes b(p • r) 4 else 5 Choose a reversal r that flips an increasing strip in p 6 p  p • r 7 output p 8 return 11/10/2018 CSE 5290, Fall 2009

ImprovedBreakpointReversalSort: Performance Guarantee ImprovedBreakPointReversalSort is an approximation algorithm with a performance guarantee of at most 4 It eliminates at least one breakpoint in every two steps; at most 2b(p) steps Approximation ratio: 2b(p) / d(p) Optimal algorithm eliminates at most 2 breakpoints in every step: d(p)  b(p) / 2 Performance guarantee: ( 2b(p) / d(p) )  [ 2b(p) / (b(p) / 2) ] = 4 11/10/2018 CSE 5290, Fall 2009

Signed Permutations Up to this point, all permutations to sort were unsigned But genes have directions… so we should consider signed permutations 5’ 3’ p = 1 -2 - 3 4 -5 11/10/2018 CSE 5290, Fall 2009

Signed Permutations Algorithms are a little more involved. Possible project topic 11/10/2018 CSE 5290, Fall 2009

GRIMM Web Server Real genome architectures are represented by signed permutations Efficient algorithms to sort signed permutations have been developed GRIMM web server computes the reversal distances between signed permutations: 11/10/2018 CSE 5290, Fall 2009

GRIMM Web Server http://www-cse.ucsd.edu/groups/bioinformatics/GRIMM 11/10/2018 CSE 5290, Fall 2009