Presentation is loading. Please wait.

Presentation is loading. Please wait.

Composition Alignment Gary Benson Departments of Computer Science and Biology Boston University.

Similar presentations


Presentation on theme: "Composition Alignment Gary Benson Departments of Computer Science and Biology Boston University."— Presentation transcript:

1 Composition Alignment Gary Benson Departments of Computer Science and Biology Boston University

2 Composition Alignment Gary Benszon Departments of Computer Science and Biology Boston University

3 Outline of Talk 1.Sequence composition and composition match 2.Composition alignment algorithm 3.Composition match scoring functions 4.Growth of local composition alignment scores 5.Limiting the length of a composition match 6.Biological examples

4 Goal Identify features in DNA sequences that are not accurately described by position specific patterns. A position specific pattern, P, has the form: P = p 1 p 2 p 3... p k where p i is either a single specific character or a choice (weighted or unweighted) of characters. In DNA there are features that are characterized by composition rather than by position specific patterns.

5 Sequence Composition Composition is a vector quantity describing the frequency of occurrence of each alphabet letter in a particular string. Let S be a string over Σ. Then, C(S)=(f σ 1, f σ 2, f σ 3, …, f σ |Σ| ) is the composition of S, where f σ i is the fraction of the characters in S that are σ i. is the composition of S, where f σ i is the fraction of the characters in S that are σ i.

6 Composition Example S = ACTGTACCTGGCGCTATT C(S) = ( 0.17, 0.28, 0.22, 0.33 ) A C G T A C G T Note that the order of letters is irrelevant as it has no effect on the composition.

7 Composition and Sequence Features Isochores – Multi-megabase, specifically GC-rich or GC- poor. GC-rich isochores have greater gene density.Isochores – Multi-megabase, specifically GC-rich or GC- poor. GC-rich isochores have greater gene density. CpG Islands – Several hundred nucleotides, rich in the dinucleotide CG which is underrepresented in eukaryotic genomes. Methylation of the cystine (C) in these dinucleotides affects gene expression.CpG Islands – Several hundred nucleotides, rich in the dinucleotide CG which is underrepresented in eukaryotic genomes. Methylation of the cystine (C) in these dinucleotides affects gene expression. Protein binding regions – Tens of nucleotides, dinucleotide composition contributes to DNA flexibility, allowing the helix to change shape during protein binding.Protein binding regions – Tens of nucleotides, dinucleotide composition contributes to DNA flexibility, allowing the helix to change shape during protein binding.

8 Composition Match We hope to identify common features in sequences using a new alignment algorithm. The main new idea is the use of composition matching. Two strings, S and T, have a composition match if their lengths are equal and C(S) = C(T). For example, S and T below have a composition match: S = ACTGTACCTGGCGCTATT T = AAACCCCCGGGGTTTTTT

9 Composition Alignment Problem Given : Two sequences, S and T of lengths m and n, over an alphabet Σ, and a scoring function cm(s, t) for the score of a composition match between substrings s and t. Find: The best scoring alignment (global or local) of S with T such that the allowed scoring options include composition match between substrings of S and T as well as the standard options of 1) single character match, 2) single character mismatch, 3) insertion and deletion.

10 Example of composition alignment S = AACGTCTTTGAGCTC T = AGCCTGACTGCCTA Alignment AACGTCTTTGAGCTC | | | | | | AGCCTGACT-GCCTA

11 Related Work Alignment allowing adjacent letter swap.Alignment allowing adjacent letter swap. O(nm), Lowrance and Wagner (1975) All swapped matchings of a pattern in a text.All swapped matchings of a pattern in a text. O(nm 1/3 log m log|Σ|), Amir, Aumann, Landau, Lewenstein, Lewenstein (2000) O(n log m log |Σ|), Amir, Cole, Hariharan, Lewenstein, Porat (2001) Composition namingComposition naming O(n log m log |Σ|), Amir, Apostolico, Landau, Satta (2003)

12 Composition Alignment using Dynamic Programming Given two sequences, S and T, the best alignment of the prefix strings S[1, i] = s 1 … s i T[1, j] = t 1 … t j ends in one of four ways: 1.mismatch, 2.insertion, 3.deletion, or 4.composition match

13 Ways an Alignment Can End S: C G T T: C G A S: C A T T: C A - S: C A – T: C A A X: C G T A C Y: C G C T A mismatch insertion or deletion composition match

14 Ways an Alignment Can End S: C G T T: C G A S: C A T T: C A - S: C A – T: C A A X: C G T A C Y: C G C T A mismatch insertion or deletion composition match Note that the suffixes will have a length l where 1 ≤ l ≤ min(i, j, limit)

15 Time Complexity Computing the optimal composition alignment with dynamic programming is similar to standard alignment, except for the composition match scoring option. The overall time complexity is O(nmZ) where Z is the time required per (i, j) pair to find the best length l for the composition match.

16 Computing length of the shortest composition match Our goal here is to start with two strings, S and T, of equal length, and for each prefix pair S[1, k], T[1, k], find the length of the shortest suffixes that have a composition match.

17 k0123456 Shortest suffix match length 0101013 For example, let S = AACGTCTTTGAGCT T = AGCCTGACTGCCTA the table states that for k = 6, the shortest suffixes which have a composition match have length = 3: S = AACGTC... T = AGCCTG...

18 Composition difference We find the matching suffix lengths using composition difference, a vector quantity for two strings x and y : CD(x, y) = (c σ 1, …, c σ |Σ| ) where c σ i is the difference between the number of times σ i occurs in x and in y.

19 Using composition difference Key observation: two identical composition differences at prefix lengths k and g indicate a composition match of length k – g.

20 Sorting to find shortest composition matches Sort on composition difference using stable sort. Adjacent tuples with the same composition difference identify shortest composition matches.

21 Time complexity for composition matches O(nmΣ) to find all index pairs shortest composition match lengths for two strings of length n and m. In our work, Σ, is a small constant (4 for DNA, 16 for dinucleotides). For larger alphabets, the method of Amir, Apostolico, Landau and Satta (2003) can be used.

22 Composition match scoring functions We have explored: Functions based on match length, k : Function 1: cm(k) = ckFunction 1: cm(k) = ck Function 2: cm(k) = c√ kFunction 2: cm(k) = c√ k where c is a constant. Functions based on substring composition: Function 4: cm(C, B, k) = ck · H(C,B)Function 4: cm(C, B, k) = ck · H(C,B) where H is the relative entropy function, C is the composition of the matching substrings and B is a background composition.

23 Additive and subadditive scoring functions The functions based on length are additive or subadditive: cm(i + j) ≤ cm(i) + cm(j) Lemma: For additive or subadditive composition match scoring functions, any best scoring alignment is equivalent in score to an alignment which contains only shortest composition matches. Theorem: Composition alignment with additive or subadditive match scoring functions and finite alphabet has time complexity O(nm).

24 The limit parameter Intuitively, allowing scrambled letters to match should increase the amount of matching between sequences. If too much matching occurs, alignments will not be meaningful. The limit parameter is an upper bound on the length l of the longest single composition match, used to prevent excessive matching. Sequence length = 100, randomly generated limit12510 DNA ( all letters p = 0.25) 2533.744.451

25 Growth of local alignment score Function 1

26 Global score as a predictor of local parameter suitability: Function 1

27 Growth of local alignment score Function 2

28 Global score as a predictor of local parameter suitability: Function 2

29 Limit values for DNA Function 1: cm(k) = ck: Limit ≤ 3.Function 1: cm(k) = ck: Limit ≤ 3. Function 2: cm(k) = c√k: Limit ≤ 10.Function 2: cm(k) = c√k: Limit ≤ 10. Function 4: cm(C, B, k) = ck ·H(C, B):Function 4: cm(C, B, k) = ck ·H(C, B): Limit ≤ 50.

30 Biological examples Composition alignment was tested on a set of 1796 promoter sequences from the Eukaryotic Promoter Database. Each sequence is 600 nucleotides long, 500 bases upstream and 100 downstream of the transcription initiation site. Two local alignment scores were produced using function 1, W using composition alignment and S using standard alignment. The examples shown have statistically significant W with W ≥ 3 · S to exclude good standard alignments.

31 Example 1 Composition alignment and standard alignment of the same two promoters. Standard alignment is not statistically significant. Sequences are characteristic of CpG islands. Composition Alignment: GCCCGCCCGCCGCGCTCCCGCCCGCCGCTCTCCGTGGCCC-CGCCG-CGCTGCCGCCGCCGCCGCTGC ||||<>|<>||<>| ||||<>||<> | |||||| <>|<> ||||<><> |<>| || || ||||<>|<>||<>| ||||<>||<> | |||||| <>|<> ||||<><> |<>| || ||CCGCGCCGCCGCCGTCCGCGCCGCCCCG-CCCT-TGGCCCAGCCGCTCGCTCGGCTCCGCTCCCTGGC Standard Alignment: CGCCGCCGCCGCGCCGCCGCCG

32 Example 2 Composition alignment of two promoter sequences. Composition changes at vertical line. A C G T A C G T Left: (0.01, 0.61, 0.30, 0.08) Right: (0.19, 0.16, 0.56, 0.09) GCCCCGCGCCCCGCGCCCCGCGCCCCGCGCGCCTC-CGCCCGCCCCT-GCTCCGGC---C-TTGCGCCTGC-GCACAGTGGGATGCGCGGGGAG |<><>|||| <>|||||| || |<>||||| <>|||| |||| || || | |<><>| | |<>|<>|<>|||| | |<><>|||| <>|||||| || |<>||||| <>|||| |||| || || | |<><>| | |<>|<>|<>|||| |CCGCGCGCCCCC-GCCCCCGCCCCGCCCCGGCCTCGGCCCCGGCCCTGGC-CCCGGGGGCAGTCGCGCCTGTG-AACGGTGAGTGCGGGCAGGG

33 Conclusion We define a new alignment problem based on composition matching and test several scoring functionsdefine a new alignment problem based on composition matching and test several scoring functions show how to find all-pairs shortest composition match lengths in linear time per pair for a fixed alphabetshow how to find all-pairs shortest composition match lengths in linear time per pair for a fixed alphabet show that alignment using scoring functions based on sequence length only require finding shortest composition matchesshow that alignment using scoring functions based on sequence length only require finding shortest composition matches give biological examples where composition alignment finds statistically (and functionally) significant sequence similarity in the absence of significant standard alignmentsgive biological examples where composition alignment finds statistically (and functionally) significant sequence similarity in the absence of significant standard alignments


Download ppt "Composition Alignment Gary Benson Departments of Computer Science and Biology Boston University."

Similar presentations


Ads by Google