Haplotyping via Perfect Phylogeny Conceptual Framework and Efficient (almost linear-time) Solutions Dan Gusfield U.C. Davis RECOMB 02, April 2002.

Slides:



Advertisements
Similar presentations
Algorithms (and Datastructures) Lecture 3 MAS 714 part 2 Hartmut Klauck.
Advertisements

A New Recombination Lower Bound and The Minimum Perfect Phylogenetic Forest Problem Yufeng Wu and Dan Gusfield UC Davis COCOON07 July 16, 2007.
Bart Jansen 1.  Problem definition  Instance: Connected graph G, positive integer k  Question: Is there a spanning tree for G with at least k leaves?
Combinatorial Algorithms for Haplotype Inference Pure Parsimony Dan Gusfield.
Graph-02.
PHYLOGENETIC TREES Bulent Moller CSE March 2004.
GOLOMB RULERS AND GRACEFUL GRAPHS
Combinatorial Algorithms and Optimization in Computational Biology and Bioinformatics Dan Gusfield occbio, June 30, 2006.
June 2, Combinatorial methods in Bioinformatics: the haplotyping problem Paola Bonizzoni DISCo Università di Milano-Bicocca.
June 2, Combinatorial methods in Bioinformatics: the haplotyping problem Paola Bonizzoni DISCo Università di Milano-Bicocca.
Combinatorial Optimization in Computational Biology Dan Gusfield Computer Science, UC Davis.
1 A Linear-Time Algorithm for the Perfect Phylogeny Haplotyping (PPH) Problem Zhihong Ding, Vladimir Filkov, Dan Gusfield Department of Computer Science.
D. Gusfield, V. Bansal (Recomb 2005) A Fundamental Decomposition Theory for Phylogenetic Networks and Incompatible Characters.
Graphs and Graph Theory in Computational Biology Dan Gusfield Miami University, May 15, 2008 (four hour tutorial)
WABI 2005 Algorithms for Imperfect Phylogeny Haplotyping (IPPH) with a Single Homoplasy or Recombnation Event Yun S. Song, Yufeng Wu and Dan Gusfield University.
Lists A list is a finite, ordered sequence of data items. Two Implementations –Arrays –Linked Lists.
Multi-State Perfect Phylogeny with Missing and Removable Data: Solutions via Chordal Graph Theory Dan Gusfield Recomb09, May 2009.
Computational Problems in Perfect Phylogeny Haplotyping: Xor-Genotypes and Tag SNPs Tamar Barzuza 1 Jacques S. Beckmann 2,3 Ron Shamir 4 Itsik Pe’er 5.
L6: Haplotype phasing. Genotypes and Haplotypes Each individual has two “copies” of each chromosome. Each individual has two “copies” of each chromosome.
CSB Efficient Computation of Minimum Recombination With Genotypes (Not Haplotypes) Yufeng Wu and Dan Gusfield University of California, Davis.
Haplotyping via Perfect Phylogeny: A Direct Approach
Combinatorial Approaches to Haplotype Inference Dan Gusfield CS, UC Davis.
CSE 291: Advanced Topics in Computational Biology Vineet Bafna/Pavel Pevzner
Fast Computation of the Exact Hybridization Number of Two Phylogenetic Trees Yufeng Wu and Jiayin Wang Department of Computer Science and Engineering University.
Integer Programming for Phylogenetic and Population- Genetic Problems with Complex Data D. Gusfield, Y. Frid, D. Brown Cocoon’07, July 16, 2007.
Multi-State Perfect Phylogeny via Chordal Graph Theory Dan Gusfield UC Davis December 7, UCLA.
Optimal Phylogenetic Networks with Constrained and Unconstrained Recombination (The root-unknown case) Dan Gusfield UC Davis.
Estimating and Reconstructing Recombination in Populations: Problems in Population Genomics Dan Gusfield UC Davis Different parts of this work are joint.
Haplotyping via Perfect Phylogeny - Model, Algorithms, Empirical studies Dan Gusfield, Ren Hua Chung U.C. Davis Cocoon 2003.
L5: Estimating Recombination Rates. Review  m M : min. number of recombination events in any explanation of the haplotypes in M  Last time, we covered.
Incorporating Mutations
Phylogenetic Networks of SNPs with Constrained Recombination D. Gusfield, S. Eddhu, C. Langley.
Combinatorial Optimization and Combinatorial Structure in Computational Biology Dan Gusfield, Computer Science, UC Davis.
Combinatorial Optimization in Computational Biology: three topics that use Perfect Phylogeny Dan Gusfield OSB 2008, Lijiang, China, November 1, 2008.
Graphs, relations and matrices
A Linear-Time Algorithm for the Perfect Phylogeny Haplotyping (PPH) Problem Zhihong Ding, Vladimir Filkov, Dan Gusfield RECOMB 2005, pp. 585–600 Date:
GRAPH Learning Outcomes Students should be able to:
Physical Mapping of DNA Shanna Terry March 2, 2004.
Giuseppe Lancia University of Udine The phasing of heterozygous traits: Algorithms and Complexity.
Fixed Parameter Complexity Algorithms and Networks.
Linear Reduction for Haplotype Inference Alex Zelikovsky joint work with Jingwu He WABI 2004.
National Taiwan University Department of Computer Science and Information Engineering Haplotype Inference Yao-Ting Huang Kun-Mao Chao.
Module #19: Graph Theory: part II Rosen 5 th ed., chs. 8-9.
The Tutte Polynomial Graph Polynomials winter 05/06.
Estimating and Reconstructing Recombination in Populations: Problems in Population Genomics Dan Gusfield UC Davis Different parts of this work are joint.
National Taiwan University Department of Computer Science and Information Engineering Pattern Identification in a Haplotype Block * Kun-Mao Chao Department.
Ch.6 Phylogenetic Trees 2 Contents Phylogenetic Trees Character State Matrix Perfect Phylogeny Binary Character States Two Characters Distance Matrix.
1 Population Genetics Basics. 2 Terminology review Allele Locus Diploid SNP.
Estimating Recombination Rates. LRH selection test, and recombination Recall that LRH/EHH tests for selection by looking at frequencies of specific haplotypes.
Bijective tree encoding Saverio Caminiti. 2 Talk Outline Domains Prüfer-like codes Prüfer code (1918) Neville codes (1953) Deo and Micikevičius code (2002)
PC-Trees & PQ-Trees. 2 Table of contents Review of PQ-trees –Template operations Introducing PC-trees The PC-tree algorithm –Terminal nodes –Splitting.
Estimating Recombination Rates. Daly et al., 2001 Daly and others were looking at a 500kb region in 5q31 (Crohn disease region) 103 SNPs were genotyped.
PC-Trees vs. PQ-Trees. 2 Table of contents Review of PQ-trees –Template operations Introducing PC-trees The PC-tree algorithm –Terminal nodes –Splitting.
Fast Elimination of Redundant Linear Equations and Reconstruction of Recombination-free Mendelian Inheritance on a Pedigree Authors: Lan Liu & Tao Jiang,
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
Senior Project Board Implementation of the Solution to the Conjugacy Problem in Thompson’s Group F by Nabil Hossain Advisers: James Belk & Robert McGrail.
The Haplotype Blocks Problems Wu Ling-Yun
by d. gusfield v. bansal v. bafna y. song presented by vikas taliwal
Yufeng Wu and Dan Gusfield University of California, Davis
Algorithms for estimating and reconstructing recombination in populations Dan Gusfield UC Davis Different parts of this work are joint with Satish Eddhu,
Gonçalo Abecasis and Janis Wigginton University of Michigan, Ann Arbor
PC trees and Circular One Arrangements
Estimating Recombination Rates
Bart M. P. Jansen June 3rd 2016, Algorithms for Optimization Problems
ReCombinatorics The Algorithmics and Combinatorics of Phylogenetic Networks with Recombination Dan Gusfield U. Oregon , May 8, 2012.
Haplotype Inference Yao-Ting Huang Kun-Mao Chao.
Haplotype Inference Yao-Ting Huang Kun-Mao Chao.
Approximation Algorithms for the Selection of Robust Tag SNPs
Haplotype Inference Yao-Ting Huang Kun-Mao Chao.
Presentation transcript:

Haplotyping via Perfect Phylogeny Conceptual Framework and Efficient (almost linear-time) Solutions Dan Gusfield U.C. Davis RECOMB 02, April 2002

Genotypes and Haplotypes Each individual has two “copies” of each chromosome. At each site, each chromosome has one of two alleles (states) denoted by 0 and 1 (motivated by SNPs) Two haplotypes per individual Genotype for the individual Merge the haplotypes

Haplotyping Problem Biological Problem: For disease association studies, haplotype data is more valuable than genotype data, but haplotype data is hard to collect. Genotype data is easy to collect. Computational Problem: Given a set of n genotypes, determine the original set of n haplotype pairs that generated the n genotypes. This is hopeless without a genetic model.

The Perfect Phylogeny Model We assume that the evolution of extant haplotypes can be displayed on a rooted, directed tree, with the all-0 haplotype at the root, where each site changes from 0 to 1 on exactly one edge, and each extant haplotype is created by accumulating the changes on a path from the root to a leaf, where that haplotype is displayed. In other words, the extant haplotypes evolved along a perfect phylogeny with all-0 root.

The Perfect Phylogeny Model sites Ancestral haplotype Extant haplotypes at the leaves Site mutations on edges

Justification for Perfect Phylogeny Model In the absence of recombination each haplotype of any individual has a single parent, so tracing back the history of the haplotypes in a population gives a tree. Recent strong evidence for long regions of DNA with no recombination. Key to the NIH haplotype mapping project. (See NYT October 30, 2002) Mutations are rare at selected sites, so are assumed non-recurrent. Connection with coalescent models.

The Haplotype Phylogeny Problem Given a set of genotypes S, find an explaining set of haplotypes that fits a perfect phylogeny. 12 a22 b02 c10 sites A haplotype pair explains a genotype if the merge of the haplotypes creates the genotype. Example: The merge of 0 1 and 1 0 explains 2 2. Genotype matrix S

The Haplotype Phylogeny Problem Given a set of genotypes, find an explaining set of haplotypes that fits a perfect phylogeny 12 a22 b02 c10 12 a10 a01 b00 b01 c10 c10

The Haplotype Phylogeny Problem Given a set of genotypes, find an explaining set of haplotypes that fits a perfect phylogeny 12 a22 b02 c10 12 a10 a01 b00 b01 c10 c10 1 c c a a b b

The Alternative Explanation 12 a22 b02 c10 12 a11 a00 b00 b01 c10 c10 No tree possible for this explanation

When does a set of haplotypes to fit a perfect phylogeny? Classic NASC: Arrange the haplotypes in a matrix, two haplotypes for each individual. Then (with no duplicate columns), the haplotypes fit a unique perfect phylogeny if and only if no two columns contain all three pairs: 0,1 and 1,0 and 1,1 This is the 3-Gamete Test

The Alternative Explanation 12 a22 b02 c10 12 a11 a00 b00 b01 c10 c10 No tree possible for this explanation

12 a22 b02 c10 12 a10 a01 b00 b01 c10 c10 1 c c a a b b The Tree Explanation Again

Solving the Haplotype Phylogeny Problem (PPH) Simple Tools based on classical Perfect Phylogeny Problem. Complex Tools based on Graph Realization Problem (graphic matroid realization).

Simple Tools – treeing the 1’s 1)For any row i in S, the set of 1 entries in row i specify the exact set of mutations on the path from the root to the least common ancestor of the two leaves labeled i, in every perfect phylogeny for S. 2)The order of those 1 entries on the path is also the same in every perfect phylogeny for S, and is easy to determine by “leaf counting”.

Leaf Counting a b c d In any column c, count two for each 1, and count one for each 2. The total is the number of leaves below mutation c, in every perfect phylogeny for S. So if we know the set of mutations on a path from the root, we know their order as well. S Count

The Subtree of 1’s is Forced The columns of S with at least one 1 entry specify a unique upper subtree that must be in every perfect phylogeny for S a b c d S a a b b

Corollary: A Useful Sufficient Condition If every column of S has at least one 1, then there is a unique perfect phylogeny for S, if there is any. Build the forced tree based on the 1-entries, then every mutation (site) is in the tree, and any 2-entries dictate where the remaining leaves must be attached to the tree.

What to do when the Corollary does not apply? Build the forced tree of 1-entries. 2-entries in columns with 1-entries are done. Remaining problem: 2-entries in columns without any 1-entries

Uniqueness without 1’s A B C There are 8 haplotype solutions that can explain the data, but only one that fits a perfect phylogeny, i.e. only one solution to the PPH problem.

More Simple Tools 3)For any row i in S, and any column c, if S(i,c) is 2, then in every perfect phylogeny for S, the path between the two leaves labeled i, must contain the edge with mutation c. Further, every mutation c on the path between the two i leaves must be from such a column c.

From Row Data to Tree Constraints Root The order is known for the red mutations i: ii Subtree for row i data 4,5,7 order unknown 2626 sites

The Graph Theoretic Problem Given a genotype matrix S with n sites, and a red-blue fork for each row i, create a directed tree T where each integer from 1 to n labels exactly one edge, so that each fork is contained in T. ii

Complex Tool: Graph Realization Let Rn be the integers 1 to n, and let P be an unordered subset of Rn. P is called a path set. A tree T with n edges, where each is labeled with a unique integer of Rn, realizes P if there is a contiguous path in T labeled with the integers of P and no others. Given a family P1, P2, P3…Pk of path sets, tree T realizes the family if it realizes each Pi. The graph realization problem generalizes the consecutive ones problem, where T is a path.

Graph Realization Example P1: 1, 5, 8 P2: 2, 4 P3: 1, 2, 5, 6 P4: 3, 6, 8 P5: 1, 5, 6, 7 Realizing Tree T

Graph Realization Polynomial time (almost linear-time) algorithms exist for the graph realization problem – Whitney, Tutte, Cunningham, Edmonds, Bixby, Wagner, Gavril, Tamari, Fushishige. The algorithms are not simple; no known implementations.

Recognizing graphic Matroids The graph realization problem is the same problem as determining if a binary matroid is graphic, and the algorithms come from that literature. The fastest algorithm is due to Bixby and Wagner (Math of OR, ) Representation methods due to Cunningham et al.

Reducing PPH to graph realization We solve any instance of the PPH problem by creating appropriate path sets, so that a solution to the resulting graph realization problem leads to a solution to the PPH problem instance. The key issue: How to encode a fork by path sets.

From Row Data to Tree Constraints Root The order is known for the red mutations i: ii Subtree for row i data 4,5,7 order unknown 2626 sites

Encoding a Red path, named g P1: U, 2 P2: U, 2, 5 P3: 2, 5 P4: 2, 5, 7 P5: 5, 7 P6: 5, 7, g P7: 7, g g U U is a universal glue edge, used for all red paths. g is used for all red paths identical to this one – i.e. different forks with the identical red path. forced In T

Encoding and gluing a blue path For a specific blue path, simply specify a single path set containing the integers in the blue path. However, we need to force that path to be glued to the end of a specific red path g, or to the root of T. In the first case, just add g to the path set. In the second case, add U to the path set.

Encoding and gluing a blue path to the end of red path g , 9, 18, 20 g P: g, 4, 9, 18, 20

After the Reduction After all the paths are given to the graph realization algorithm, and a realizing tree T is obtained (assuming one is), contract all the glue edges to obtain a perfect phylogeny for the original haplotyping problem (PPH) instance. Conversely, any solution can be obtained in this way.

Uniqueness In 1932, Whitney established the NASC for the uniqueness of a solution to a graph realization problem: Let T be the tree realizing the family of required path sets. For each path set Pi in the family, add an edge in T between the ends of the path realizing Pi. Call the result graph G(T). T is the unique realizing tree, if and only if G(T) is 3-vertex connected. e.g., G(T) remains connected after the removal of any two vertices.

Uniqueness of PPH Solution Apply Whitney’s theorem, using all the paths implied by the reduction of the PPH problem to graph realization. (Minor point) Do not allow the removal of the endpoints of the universal glue edge U.

Multiple Solutions In 1933, Whitney showed how multiple solutions to the graph realization problem are related. Partition the edges of G into two, connected graphs, each with at least two edges, such that the two graphs have exactly two nodes in common. Then twist one graph around those nodes. Any solution can be transformed to another via a series of such twists.

Twisting Example xy xy All the cycle sets are preserved by twisting

Representing all the solutions All the solutions to the PPH problem can be implicitly represented in a data structure which can be built in linear time, once one solution is known. Then each solution can be generated in linear time per solution. Method is a small modification of ones developed by Cunningham and Edwards, and by Hopcroft and Tarjan. See Gusfield’s web site for errata.