Abstract
Background
Given a gene family, the relations between genes (orthology/paralogy), are represented by a relation graph, where edges connect pairs of orthologous genes and “missing” edges represent paralogs. While a gene tree directly induces a relation graph, the converse is not always true. Indeed, a relation graph is not necessarily “satisfiable”, i.e. does not necessarily correspond to a gene tree. And even if that holds, it may not be “consistent”, i.e. the tree may not represent a true history in agreement with a species tree. Previous studies have addressed the problem of correcting a relation graph for satisfiability and consistency. Here we consider the weighted version of the problem, where a degree of confidence is assigned to each orthology or paralogy relation. We also consider a maximization variant of the unweighted version of the problem.
Results
We provide complexity and algorithmic results for the approximation of the considered problems. We show that minimizing the correction of a weighted graph does not admit a constant factor approximation algorithm assuming the unique game conjecture, and we give an n-approximation algorithm, n being the number of vertices in the graph. We also provide polynomial time approximation schemes for the maximization variant for unweighted graphs.
Conclusions
We provided complexity and algorithmic results for variants of the problem of correcting a relation graph for satisfiability and consistency. For the maximization variants we were able to design polynomial time approximation schemes, while for the weighted minimization variants we were able to provide the first inapproximability results.
Keywords: Orthology, Paralogy, Approximation algorithms, Gene tree, Species tree
Background
Genes are the basic molecular units of heredity holding the information for producing all proteins required to build and maintain cells. They are the key for understanding genetic diversity, adaptation to environmental variation, drug resistance, and many other genetic features. Therefore, a first step of most genomic studies is to group genes into families. Gene families are usually inferred from sequence similarity, the underlying idea being that similar sequences reflect homologous genes that have diverged from a common ancestral sequence.
However, homology alone is not sufficient to decipher the properties of genes. Given a gene family, it is important to discriminate between two types of homologs: orthologs being gene copies originating from a speciation event, and paralogs originating from a duplication event. According to the orthology conjecture [1], orthologous genes are expected to be more similar in function than paralogs.
Various methods have been developed to discriminate between orthologous and paralogous genes. Tree-based methods consist in first constructing a phylogenetic tree for the gene family, and then, given a species tree, applying a reconciliation approach for inferring speciation and duplication nodes [2]. On the other hand, tree-free methods are based on gene clustering according to sequence similarity (c.f. for example the COG database [3], OrthoMCL [4], InParanoid [5], Proteinortho [6]), synteny [7, 8] or functional annotation of genes [9]. Results of these methods are pairwise orthology relations, or groups of orthologs, that can be represented as relation graphs, where vertices are genes and edges represent orthology relations between genes. Assuming a full inference of pairwise orthology relations, “missing” edges of the relation graph represent paralogy. In addition, as different inference methods may lead to different predictions, instead of a yes or no orthology assignment, existing methods can rather motivate a way of assigning a score to a given relation [10], leading to a weighted relation graph. For example, orthology predictions with OrthoMCL [4] are based on a weighted graph, where edge weights are related to the sequence similarity score of the adjacent genes, while InParanoid [5] provides a confidence value that shows how closely related a paralog is to its “seed ortholog”. Surprisingly, as far as we know, weighted orthology/paralogy relation graphs have not been formally considered in the literature.
While a gene tree induces a set of relations betwen genes, the converse is not always true, as a set of relations may or may not represent a valid history for the gene family. Two underlying questions are: (1) is the set of relations “satisfiable” i.e. is there a tree, with internal nodes labeled as duplication or speciation, containing them all? (2) is the set of relations “S-consistent” with the known species tree S, i.e. is there a tree containing the relations that is a “valid” gene tree “in agreement” with S? Polynomial-time algorithms exist for deciding satisfiability and S-consistency for a full [11–13] or partial [10] set of pairwise gene relations.
In this paper, we address both the weighted and unweighted variants of the full relation graph correction problem. First, for a full weighted relation graph R, we consider two minimization versions for the problem of correcting the graph by minimizing edit operations, i.e. adding or removing edges of minimum total weight, so that it represents a satisfiable or S-consistent set of relations. Then, we consider two maximization versions for the unweighted variant were we are given a full unweighted relation graph that has to be corrected with edit operations, so that the maximum number of relations is not modified.
In the unweighted case, the minimization variant of the satisfiability correction problem reduces to editing a minimum number of edges of R in order to make it -free, which is known to be NP-hard [14]. In [13], an integer linear programming formulation is used to correct relation graphs of small size, which is also applicable to weighted graphs. In [15], the authors propose an approximation algorithm of factor , where is the maximum degree of the input graph. The algorithm, however, offers no guarantees in the case of weighted graphs, as there are weighted instances on which the correction is arbitrarily far from optimal. It is shown in [16] that the minimum edge editing problem cannot be approximated within an “additive” factor of , for any . Yet, the authors give a class of polynomial time algorithms that are approximable within an additive factor of , for any . This implies a constant factor algorithm for graphs with an edit distance of , but offers no guarantee in the other cases. Moreover, this algorithm only applies to unweighted graphs, and does not consider that two genes from the same species must remain paralogs. Finally in [14], parameterized versions of the algorithm are explored. As for the S-consistency correction problem, we proved in a previous paper [17] that it is NP-hard, which is the only result so far.
We show in, “Hardness of approximation of minimum weighted editing for satisfiability and consistency” section, that the weighted satisfiability and S-consistency problems are not approximable within a constant factor, assuming the unique games conjecture. We complement this result by showing in “A bounded approximation algorithm for minimum weighted editing for satisfiability and consistency” section that they can be approximated within a factor of n (the number of vertices of the relation graph). The maximization variants for unweighted graphs are then considered in “PTASs for maximum CoGraph editing and maximum consistency editing” section. We show that a result in [16] implies a polynomial time approximation scheme (PTAS) for satisfiability. Furthermore, we prove that, by applying more involved arguments, a PTAS also exists for the S-consistency problem. We conclude the paper with some open problems.
Trees and orthology relations
A graph H is denoted , where is its set of vertices (or nodes if H is a tree) and its set of edges. If H is a tree, degree one nodes are leaves.
Trees
All considered trees are rooted and binary. Given a set X, a tree T for X is a tree whose leafset, which we denote by , is in bijection with X. Given an internal node u of T, the subtree rooted at u is denoted and we call the leafset the clade of u. A node u is an ancestor of v if u is on the (inclusive) path between v and the root. If u and v are connected by an edge of T, then v is a direct descendant of u. We denote by ch(u) the set of direct descendants (children) of u. The lowest common ancestor (lca) of u and v, denoted , is the ancestor common to both nodes that is the most distant from the root. We define analogously for a set .
A species tree S for a species set represents an ordered set of speciation events that have led to : an internal node is an ancestral species at the moment of a speciation event, and its children are the new descendant species.
A gene family is a set of genes accompanied with a function mapping each gene to its corresponding species. The evolutionary history of can be represented as a node-labeled gene tree for , where each internal node refers to an ancestral gene at the moment of an event (either speciation or duplication), and is labeled as a speciation (Spec) or duplication (Dup) accordingly. Formally, we call a DS-tree for a pair , where G is a tree with , and is a function labeling each internal node of G as a duplication or a speciation. We may write ev instead of when the context is clear. For example, in Fig. 1, and are two DS-trees.
Fig. 1.
S is the species tree for . The internal nodes, representing ancestral species, are labeled by x, y and z. R is a relation graph on gene set . A gene name corresponds to the species it belongs to (e.g. ). R is not satisfiable as the set of vertices induces a . is a satisfiable relation graph obtained from R by inserting the edge , and is a DS-tree displaying every relation of (each internal node v is labeled by ). However, is not consistent with the species tree S. is another correction of R that is S-consistent, as the tree displays the relations in and is S-consistent. Dup nodes in DS-trees are marked by a square; all other nodes are speciation nodes
According to the Fitch [18] terminology, we say that two genes x, y of are orthologous in G if , and paralogous in G if .
A DS-tree G for does not necessarily represent a valid history. For this to hold, any speciation node of G should reflect a clustering of species “in agreement” with S [10]. Formally G should be S -consistent, as defined below, where is the LCA-mapping function, mapping each gene, ancestral or extant, to a species as follows: if , then ; otherwise, .
Definition 1
Let S be a species tree and G be a DS-tree. Let v be an internal node of G such that . Then the speciation node v, with children and , is S -consistent iff none of and is an ancestor of the other. We say that G is S -consistent iff every speciation node of G is S-consistent.
For example, in Fig. 1, is not S-consistent as the root of is not S-consistent.
Relation graphs
For a graph , we denote the complementary set of by . Let be a subset of . The subgraph of H induced by , denoted , is the subgraph of H with vertex-set having every edge of H for . If I is another graph, we say H is I-free if there is no such that is isomorphic to I.
A relation graph R on a gene family is a graph with vertex set , in which we interpret each edge of as an orthology relation between u and v, and each “missing” edge , also called non-edge, as a paralogy relation. Notice that if , then must be a non-edge (u and v are paralogous). We denote .
A DS-tree G leads to a relation graph, denoted R(G), with vertex set and edge set corresponding to all gene pairs that are orthologous in G. Conversely, a relation graph R does not necessarily lead to a DS-tree. If this is the case, i.e. if there is a DS-tree G such that , then R is said satisfiable. As shown in [12], a relation graph R is satisfiable if and only if R is -free, meaning that, for any four vertices of R, the induced graph is not a path of length 3 (number of edges). The -free graphs are sometimes called cographs. See Fig. 1 for an example.
As a DS-tree does not necessarily represent a true history for , satisfiability of a relation graph does not ensure a possible translation in terms of a history for . For this to hold, R should also be consistent with the species tree, according to the following definition.
Definition 2
Let S be a species tree. A relation graph R for is S-consistent if and only if R is satisfiable by a DS-tree G which is itself S-consistent.
Problem statements
We call a weight for a relation graph a function on its vertex pairs. Notice that w assigns a weight to both edges (orthologies) and non-edges (paralogies). We shall assume that if for two genes u and v, then and . The weight function w is extended to any by defining .
Given a relation graph , an edge-editing of R is a pair with and . We denote by the graph . In other words, (respectively ) denotes inserted (respec. removed) edges. Given a relation graph computed from R by edge insertion and removal, the set of removed edges is , and the set of inserted edges is . For example, for the graph of Fig. 1, and . An edge-editing is said -free if is itself -free.
The problems considered in “Hardness of approximation of minimum weighted editing for satisfiability and consistency” section and “A bounded approximation algorithm for minimum weighted editing for satisfiability and consistency” section are the following. The first problem asks for a satisfiable relation graph, hence no species tree is considered, while the second asks for an S-consistent relation graph, hence the input contains also a species tree.
Minimum weighted editing for satisfiability (MinWES)
- Input:
A relation graph and a weight function w;
- Output:
A satisfiable relation graph , obtained from R by an edge-editing that minimizes .
Minimum weighted editing for consistency (MinWEC)
- Input:
A relation graph , a weight function w and a species tree S for (the set of species containing the genes represented by R);
- Output:
An S-consistent relation graph , obtained from R by an edge-editing that minimizes .
Below is a formal statement of the corresponding maximization version of MinWES for unweighted graphs, considered in “PTASs for maximum CoGraph editing and maximum consistency editing” section. Remember that edges represent orthologies, while non-edges are paralogies. Maximizing conservation therefore requires accounting for both edges and non-edges.
Maximum editing for satisfiability (MaxES)
- Input:
A relation graph ;
- Output:
A satisfiable relation graph obtained from R by an edge-editing, such that its value is maximized.
Maximum editing for consistency (MaxEC)
- Input:
A relation graph for a gene family with genes belonging to genomes in , a species tree S for ;
- Output:
An S-consistent relation graph obtained from R by an edge-editing, such that its value is maximized.
Hardness of approximation of minimum weighted editing for satisfiability and consistency
We show that MinWES is unlikely to be approximable within a constant factor, by presenting a gap-preserving reduction from Minimum Multi-Cut. First, we consider the variant of MinWES, called Minimum Weighted Removal for Satisfiability (MinWRS), where only edge removal is allowed, then we easily extend the result to MinWES.
Given a graph , and a set (i.e. a set of pairs), Minimum Multi-Cut asks for a set of minimum cardinality such that each pair is disconnected in .
Given an instance of Minimum Multi-Cut, we construct an instance of MinWRS as follows. The vertex set includes, for each , two vertices and . That is, .
For any distinct , we set , and hence there are no “forced” paralogs. As for , it is defined as follows, where .
For each , define an edge in of weight ;
For each , define an edge in with weight q if , and with weight 1 if ;
For each , define the edges and in , each with weight q / 2 if , and with weight 1 if .
For each , has weight . Notice however, that, since edge insertion is not allowed in Minimum Weighted Co-Graph Deletion, the weight of never contributes to the cost of a solution of Minimum Weighted Co-Graph Deletion.
We first show that there is a correspondance between solutions to the two problems on our constructed instances.
We first bound the number of edges of weight 1 in R.
Claim 1
Let be an instance of Minimum Multi-Cut and let be the corresponding instance of Minimum Weighted Co-Graph Deletion . Then, R contains at most edges of weight 1.
Proof
Consider the edges connecting vertices and ; and are connected by an edge of weight 1 if and only if and .
Consider the edges connecting vertices and , and . , (and ,) are connected by an edge of weight 1 if and .
Any other edge has weight >1, hence the lemma follows.
Now, we present the main results needed to prove the inapproximability of Minimum Weighted Co-Graph Deletion.
Lemma 1
Let be an instance of Minimum Multi-Cut and let be the corresponding instance of Minimum Weighted Co-Graph Deletion . Given a solution of Minimum Multi-Cut , we can compute in polynomial time a solution of Minimum Weighted Co-Graph Deletion of weight at most .
Proof
Given a set that defines a multicut in H, let be the sets of vertices of the connected components in the graph .
We define a solution of Minimum Weighted Co-Graph Deletion over instance R as follows. We construct the partition of the vertices of R such that and belong to set if and only if . All edges having their endpoints in two distinct are removed.
We claim that the computed graph induced by the partition is -free. By construction, for each , , , that belong to , the edges and belong to (because ). Moreover, there is no edge between and , nor between and . Thus any path on four vertices in the graph on vertex set must be either of the form , or of the form . In both cases, the endpoints of the path share an edge, and thus cannot induce a .
Now, consider the edges . If , the corresponding solution of Minimum Weighted Co-Graph Deletion removes an edge of weight q, namely . If , the corresponding solution of Minimum Weighted Co-Graph Deletion removes two edges of weight q / 2, namely and . Hence those edges have a total weight . Since at most edges of weight 1 are removed (see Claim 1), we can conclude that the lemma holds.
Lemma 2
Let be an instance of Minimum Multi-Cut and let be the corresponding instance of Minimum Weighted Co-Graph Deletion . Given a solution of Minimum Weighted Co-Graph Deletion of weight at most for some integer W, we can compute in polynomial time a multicut of H of size at most W.
Proof
Consider a solution of Minimum Weighted Co-Graph Deletion over instance of weight at most , with . First, notice that no edge , with , is removed to obtain , since the weight of such an edge is greater than .
Consider now two vertices , , such that, given the corresponding vertices , in H, we have . By construction there is a in R, namely . It follows that the edge must be removed in . Moreover, we claim that in , the vertices , must be disconnected. Assume by contradiction that this does not hold, and that , belong to the same connected component of . Consider the shortest path P that connects vertices and in . Then P has length at least 2. Note that as P is a shortest path, it has no chord, i.e. non-consecutive vertices of P cannot share an edge.
Suppose that P does not include the vertex . Then we can assume that is adjacent in P to a vertex , since if it is adjacent to a vertex , then the vertices , , , and would induce a . Now, if is adjacent to , then , , and induce a . If there is no such , then P has length at least 3 and it must therefore contain an induced .
So suppose instead that P includes the vertex . Since by construction is not adjacent to and it is not adjacent to any , with , while it is adjacent to , P has length at least 3, and again must have an induced .
We can conclude that when , the corresponding vertices , belong to disconnected connected components of . Hence we can compute a multi-cut of H as follows:
is a multi-cut, since each is disconnected. Now, recall that is obtained by removing edges of overall weight at most . Since edge edge in corresponds to edges of overall weight q in R (an edge of weight q if , or two edges of weight q / 2, namely and if ), we must have .
Assuming the unique games conjecture, the proof of inapproximability of Minimum Weighted Co-Graph Deletion is deduced from the inapproximability of Minimum Multi-Cut [19].
Theorem 1
Minimum Weighted Co-Graph Deletion is not approximable within a constant factor assuming the unique games conjecture.
Proof
Given a graph H instance of Minimum Multi-Cut and the corresponding instance R of Minimum Weighted Co-Graph Deletion, denote by (, respectively) the value of an optimal solution (of an approximation solution, respectively) of Minimum Multi-Cut on instance H, and denote by (, respectively) the value of an optimal solution (of an approximation solution, respectively) of Minimum Weighted Co-Graph Deletion on instance R. Define . By Lemma 2, we assume that , as there exists an algorithm that given a solution of Minimum Weighted Co-Graph Deletion of value computes in polynomial time a solution of Minimum Multi-Cut having value at most with . Also, by Lemma 1, we have , as for any optimal solution of Minimum Multi-Cut of value , there is an algorithm that computes in polynomial time a solution of Minimum Weighted Co-Graph Deletion having value with .
We have that
where we assume for the second inequality (the case can be checked in polynomial time). Since Minimum Multi-Cut is not approximable within a constant factor assuming the unique games conjecture [19], even on unweighted graphs, it follows that
on an infinity of instances of H for any constant . As a consequence, for any constant , an infinity of instances of R yield:
Since , and , it follows that . Combining the last two inequalities, we have that
for any constant , which concludes the proof.
The result of Theorem 1 can be easily extended to Minimum Weighted Co-Graph Editing.
Corollary 1
Minimum Weighted Co-Graph Editing is not approximable within a constant factor assuming the unique games conjecture.
Proof
The result follows by a gap-preserving reduction similar to that for Minimum Weighted Co-Graph Deletion. Recall that for each pair , a weight of is associated with . Consider a solution of Minimum Weighted Co-Graph Editing on instance R that has cost not greater than . It is easy to see that is obtained without any edge insertion.
The inapproximability result for Minimum Weighted Co-Graph Editing is easily extended to MinWEC. This is achieved by defining a species tree S on such that the root of S is connected to two subtrees, one with leafset , one with leafset , and showing that any solution to our instance of Minimum Weighted Co-Graph Deletion must agree with this species tree.
Corollary 2
MinWEC is not approximable within a constant factor assuming the unique games conjecture.
Proof
The result follows by a gap-preserving reduction similar to that for Minimum Weighted Co-Graph Deletion and Minimum Weighted Co-Graph Editing. Define a species tree S on such that the root of S is connected to two subtrees, one with leafset , one with leafset .
Consider the partition of the vertices of a solution of Minimum Weighted Co-Graph Deletion and Minimum Weighted Co-Graph Editing. Each connected component that contains vertices , , , , contains only edges , , , .
For each set , we construct a tree by defining two subtrees and such that has leafset and has leafset . Each node of and is associated with a duplication. is obtained by joining and in a root, associated with a speciation. Finally, the subtrees are joined in a gene tree G by duplication nodes (with any topology). By construction, G is S-consistent, thus the hardness result can be extended to MinWEC.
A bounded approximation algorithm for minimum weighted editing for satisfiability and consistency
While MinWES and MinWEC are not approximable within a constant factor, we show here that they can be approximated within factor , and we give the corresponding algorithms. Despite being a large approximation factor, this is the best known bound so far and shows that the problems have polynomially bounded approximability. We first describe the approximation algorithm for MinWES.
Denote by the complement of the graph . A well-known property of cographs is given by the following lemma.
Lemma 3
[20] A graph R is -free if and only if for any , one of R[X] or is disconnected.
This motivates a greedy min-cut approach for MinWES, performing an edge-editing of minimum weight disconnecting the graph or its complement, and iterating recursively on the resulting components. This is the main idea of Algorithm MinCut-Cograph-Editing below. Note that assuming forced paralogs have infinite weight, this algorithm will never make two genes from the same species orthologs.
More formally, let be a relation graph accompanied with a weight function w. Define a cut as a partition of with X and Y being non-empty sets, and denote . The weight of C is . The cut C is a minimum cut or MinCut if no other cut has a smaller weight w(C). Applying a cut C to R consists in removing all edges of from R.
Complexity: A MinCut of a given graph of n vertices and m edges can be found in time using the Stoer–Wagner algorithm [21]. In the MinCut-Cograph-Editing algorithm, MinCut is applied to both R and . As at least one of these two graphs has edges, the required time for MinCut is therefore . This step is repeated at most n times, hence the overall time complexity of MinCut-Cograph-Editing is .
The remaining of this section is dedicated to proving Theorem 2, which states that MinCut-Cograph-Editing is an n-approximation algorithm. We denote by the minimum weight of a -free edge-editing of R. If , we denote by .
Lemma 4
Let C be a minimum cut of R, and let be a minimum cut of . Then .
Proof
Let be a -free edge-editing of R. By Lemma 3, either or its complement is disconnected, implying that must apply some cut on either R or . This cut is at best a minimum cut.
Lemma 5
Let be a partition of V. Then, .
Proof
Let be a -free edge-editing of weight , and let . Assume that has a weight stricly smaller than . Then, since and are -free, there must either be an edge-editing of R[X] of weight smaller than , or an edge-editing of R[Y] of weight smaller than , contradicting the definition of and .
Theorem 2
MinCut-Cograph-Editing is an n factor approximation algorithm for MinWES.
Proof
Denote by the weight of the edge-editing found by the algorithm on R. We proceed by induction on to show that . The statement is trivial for (as there is nothing to correct), so assume that the algorithm finds a solution of weight for any graph of size at most . The algorithm applies a minimum cut on R or , and proceeds recursively on X and Y, with . By the induction hypothesis, we have
where the last inequality holds due to Lemmas 4 and 5.
It is possible to show that the approximation factor of MinCut-Cograph-Editing is tight, as shown in Fig. 2. Suppose all weights are equal to one. Clearly, an optimal solution of weight 1 is obtained by removing the middle edge. However, a minimum cut can be found by taking X as a single vertex of degree one, and Y as the rest. In this manner, the algorithm might remove up to edges before H becomes -free, which is times worse than optimal.
Fig. 2.
A graph R with all edges of weight 1
Notice however that a solution of MinCut-Cograph-Editing on the example of Fig. 2 cannot be times worse than the optimal solution, where is the degree of H (by putting half the leaves left and the other half right). We do not know whether MinCut-Cograph-Editing offers any guarantee in relation to or .
By modifying MinCut-Cograph-Editing, it is possible to design an n factor approximation algorithm for MinWEC. The main difference with respect to MinCut-Cograph-Editing, is that the algorithm considers a minimum cut on a subset of R and a cut on a subset of induced by the species tree S.
We first provide the detailed MinCut-Cograph-Editing-Cons algorithm, and show that it also is a n-factor approximation. Given a species tree S and a set , let . Let be the subtree of S restricted to and let , be the clades of the left and right child, respectively, of the root of . Consider the sets and , the cut on is defined as . Observe that is the only possible cut on that maintains S-consistency, as this cut corresponds to a speciation in a DS-tree, and speciations must separate genes according to S. Therefore, it suffices to modify MinCut-Cograph-Editing by forcing the cut to be . Call this modified algorithm MinCut-Cograph-Editing-Cons.
Theorem 3
MinCut-Cograph-Editing-Cons is an n factor approximation algorithm for MinWEC.
Proof
Denote by the weight of the edge-editing found by the algorithm on R. We proceed by induction on to show that . The statement is trivial for (as there is nothing to correct), so assume that the algorithm finds a solution of weight for any graph of size at most .
The algorithm applies a cut which is either a minimum cut on R or it is the cut , and proceeds recursively on X and Y, with . By the induction hypothesis, we have
Now, similarly to Lemma 4, we have that . First, let be the gene tree associated with a solution of MinWEC over instance R. If C is a minimum cut on R, it holds due to the proof Lemma 4. If C is , then notice that, in order to guarantee the consistency with S, the root of must induce exactly the cut .
Lemma 5 holds also for MinWEC, hence
thus concluding the proof.
PTASs for maximum CoGraph editing and maximum consistency editing
In this section, we consider the MaxES and the MaxEC problems. Although sharing the same objectives, the minimization and maximization variants are not equivalent from an approximation point of view.
Given a relation graph R, the value of a solution for MaxES (MaxEC, respectively) over instance R [over instance (R, S), respectively] is called the agreement value of and it is denoted by . Moreover, given a gene tree G, we denote by A(G, R) the agreement between the relation graph associated with G and R.
Next, we give a bound on the agreement value returned by an optimal solution of MaxES and MaxEC.
Lemma 6
Given a relation graph R (a relation graph R and a species tree S, respectively), an optimal solution of MaxES over instance R [an optimal solution of MaxEC over instance (R, S), respectively] has an agreement value of at least .
Proof
Consider a relation graph R and a species tree S for the MaxEC problem. Let and be two solutions for MaxES over instance R [for MaxEC over instance (R, S), respectively]. It is easy to see that and are both feasible solutions of MaxES and of MaxEC. Since for each , with , , either one of or agrees with R, it holds
Then at least one of , must have an agreement value of at least , hence an optimal solution of MaxES and MaxEC has an agreement value of at least .
Since it possible to compute an optimal solution of MaxES with additive cost , for each [16], it follows that MaxES admits a PTAS.
Let OPT(R) be the value of an optimal solution on R, and let c be such that . The additive approximation algorithm for cograph editing [16] yields a solution of value . As by Lemma 6, can be adjusted so that, for any , , hence yielding a PTAS. In the more general case, this algorithm does not ensure that genes from the same species remain paralogs. However, the authors of [16] claim that their approximation algorithm applies to any hereditary graph property (i.e. preserved after vertex-deletion), which holds for satisfiability.
A PTAS for MaxEC
The PTAS for MaxES does not guarantee that the returned relation graph (and its corresponding gene tree ) is S-consistent with the given species tree S. In this section, we present a PTAS for MaxEC based on smooth-polynomial integer programming [22], a technique that has been applied to design PTAS for problems like maximum quartet consistency [23] or maximum consensus clustering [24].
As for maximum quartet consistency, the MaxEC problem is reduced to the assignment of leaves in to a tree, and the resulting tree is then used to to reconstruct a gene tree that is consistent with S and whose relation graph requires at most modifications with respect to the original graph. In order to guarantee the S-consistency of the reconstructed gene tree, we need several technical arguments that are not used for maximum quartet consistency. Recall that we are considering binary trees.
Before giving the details, we present an overview of the PTAS. First, in “The compressed tree Gk” section, we show that starting from a gene tree we can compute a compressed tree that has at most k internal nodes and at most k leaves, where is a constant. In order to construct such a compressed tree, first in “The unlabeled compressed tree Tk” section we compute an unlabeled compressed tree , and then in “A PTAS of MaxLA by smooth polynomial integer programming” section we compute a compressed tree from by using smooth-polynomial integer programming. Finally, we show in “Building a feasible solution” section how to reconstruct an S-consistent gene tree from .
The compressed tree
First, we will focus on the compressed tree, and we show that, given an optimal solution of MaxEC, there exists a compressed tree that respects a (large) subset of the speciation/duplication relations for .
Consider an optimal solution of MaxEC, and let be a DS-tree, where is the gene tree corresponding to . Recall that each internal node of is associated by either with a duplication (Dup) or with a speciation (Spec). We present the formal definition of compressed tree associated with (see Fig. 3).
Fig. 3.
A compressed tree computed from a gene tree . Leaf-sets are represented with triangles
Definition 3
Given a constant and a DS-tree , a compressed tree associated with is a tree that has at most k internal nodes and at most k leaves, which are called leaf-sets. An internal node v can be a regular internal node or can belong to a two-set internal node such that , and both u and v have exactly one leaf-set as a child. The two-set internal nodes of are disjoint, that is and cannot be two-set internal nodes of . Moreover, the following properties hold:
the leaf-sets of induce a partition of and each leaf-set contains at most 8n / k elements of
each internal node of is associated with two possible events, Dup or Spec, by the function
let , be two leaf-sets connected to nodes and , respectively, such that is not a two-set internal node, let , , and and , then .
Note that a leaf-set of is both a set of leaves of , and a leaf of . It will sometimes be useful to clarify which one we wish to refer to, and so we denote by the set of leaves that belong to .
Now, we provide a constructive proof that shows that, starting from a solution (whose corresponding gene tree is ) of MaxEC over instance (R, S), there exists such a compressed tree .
Consider the following algorithm. First, the algorithm initializes to and all internal nodes are unmarked. Then, the algorithm traverses and construct the tree as described in Algorithm Compressed Tree ().
When the algorithm stops it follows that each leaf-set has size at most 8n / k. Notice that, given a two-set internal node , the leaves assigned to the leaf-sets , connected to and are considered as a single leaf-set with reference to the relation between elements in .
Next, we show that the algorithm returns a compressed tree , with at most k internals node and k leaf-sets.
Lemma 7
Given a gene tree , Algorithm Algorithm Compressed Tree ( ) returns a tree , with at most k internal nodes and k leaf-sets.
Proof
First, consider the set of regular nodes of . Consider the set of those nodes of that the algorithm defines because the subtree rooted at one of such nodes contains at least 8n / k unassigned leaves. It follows that at most k / 8 such nodes are chosen.
Consider the set of nodes of defined as internal nodes because they are the least common ancestor of two internal nodes of . Now, if we restrict to , we obtain a tree having at most k / 8 leaves, as the leaves by construction are only nodes in , where each internal node, except for the root, has degree at least three. Hence .
Let v and z be two nodes in , such that z is an ancestor of v in , and there are no other ancestor of v in that belongs to . It follows that, by construction, at most one two-set internal node on the path between v and z is defined in . Hence at most two internal nodes are defined on the path between v and z in , and since , it follows that contains at most k / 4 two-set internal nodes. Thus consists of at most internal nodes.
Now, consider the defined leaf-sets. For each two-set internal node , there exists at most two leaf-sets connected with one of , hence at most k / 2 leaf-sets. For each of the k / 4 internal node , the leaves assigned to leaf-set connected to v are at most two, as is binary. Hence there exists hence at most k / 2 leaf-sets connected to internal nodes of . Hence, the number of leaf-set is bounded by .
In order to prove that is a compressed tree, in addition to Lemma 7 we need the following result.
Lemma 8
Given a gene tree and a species tree S, let be the tree computed by Algorithm Algorithm Compressed Tree ( ). Given two distinct leaf-sets and of connected to the internal nodes z and v, such that is not a two-set internal node, let and . Let and . Then .
Proof
Let . Assume that and are connected to the same internal node of (which must be ). Then when is defined by Algorithm Algorithm Compressed Tree (), its event is the same as the corresponding node x of . Assume that and are connected to different internal nodes of , and , respectively, corresponding to node u and w of . Consider then Algorithm Algorithm Compressed Tree () defines a corresponding node in such that .
Assume that belongs to a two-set internal node . Then, by construction, exactly one of , (w.l.o.g. ) must be a leaf-set which is a child of , and exactly one of , (w.l.o.g. ) is a leaf-set connected to a strict descendant c of , such that . Let , for a leaf in and a leaf in . By construction, only if , thus concluding the proof.
Lemmas 7 and 8 implies that Algorithm Algorithm Compressed Tree () constructs a compressed gene tree , as by construction the leaf-sets induce a partition of .
Next, we show a lower bound on the agreement value of an optimal assignment of leaves to the leaf-sets . We denote by (the agreement between R and ) as the agreement for each pair of leaves that belong to two distinct leaf-sets and of connected to the internal nodes u and v, such that is not a two-set internal node (notice that u and v may be the same node).
Lemma 9
Given an optimal solution of MaxEC over instance (R, S) and a constant , let be the compressed tree computed starting from . Then .
Proof
Consider an optimal solution of MaxEC over instance (R, S) and the compressed tree constructed from . From Lemma 8, the pairs of leaves that belong to different leaf-sets (not connected to the same two-set internal node) have the same relations in and in .
Consider the leaves of a same leaf-set or of two leaf-sets and which are connected to the same two-set internal node. Since and , the number of relations between two leaves belonging to a common leaf-set is at most . Since there are at most k leaf-sets, the overall number of relations between pairs of leaves in with respect to are at most , hence .
The unlabeled compressed tree
The tree described above is of course not known, and it needs to be found. In this subsection we introduce the unlabeled compressed tree that is used to construct the compressed tree . An unlabeled compressed tree is a compressed tree whose leaf-sets are empty. Here we introduce some properties of and we reduce the MaxEC problem to a second problem, called MaxLA (to be defined later). The PTAS iterates through the possible unlabeled compressed trees . In particular, the PTAS iterates through (1) the structure of , (2) the events associated with internal nodes of , and (3) a set of labels that are allowed to be assigned to a leaf-set.
First, consider the structure of . Since by Lemma 7 consists of at most k internal nodes and k leaf-sets, it follows that there are at most possible topologies for the unlabeled compressed tree . Indeed, the adjacency matrix of has size , and the possible adjacency matrices are at most . Moreover, for each topology, we define in time the two-set internal nodes of .
Now, consider the events associated with the internal nodes of . For each unlabeled compressed tree , the events associated with the internal nodes of are at most (two possible cases, Dup or Spec, for each of the k internal nodes). Overall we iterate though possible unlabeled compressed tree .
Consider now an unlabeled compressed tree . In order to ensure that the gene tree constructed from is S-consistent with the given species tree S, we must ensure that the speciation nodes of are consistent with S. We define a mapping of the nodes of , except the leaf-nodes connected to two-set internal nodes, to the nodes of S so that the mapping is feasible, that is the following conditions hold:
if v is an ancestor of u in , then is an ancestor (not necessarily proper) of
if v is an ancestor of u in and , then is a proper ancestor of
Based on the mapping , define for each leaf-set , the allowed set of labels that can be assigned to a leaf-set . If is a leaf-set not connected to a two-set internal node:
If is a leaf-set connected to an internal node u, with a two-set internal node (recall that ):
If is a leaf-set connected to a two-set internal node u, with a two-set internal node (recall that ), such that z is the only child of u in which is an internal node:
Since contains at most 2k nodes, the set of the feasible mappings are at most . Moreover, once the mapping is computed, can be computed in O(nk) time.
Finally, for each set leaf-set , we assign one leaf (denoted by ) of to , in time . These leaves are called preassigned leaves and are assigned such that for each internal node x of , the lca mapping of the preassigned leaves maps x to a node y of S such that . Notice that, given an optimal solution of MaxEC,there exists a feasible mapping with associated and .
Now, we a able to define the MaxLA problem we will solve to compute the PTAS.
Maximum leaf assignment: (MaxLA)
- Input:
an unlabeled compressed tree with a feasible mapping , a set of preassigned leaves , and a set , for each leaf-set , a set , a relation graph R, a specie tree S;
- Output:
a compressed tree obtained from by assigning leaves of to the leaf-set of , where for each leaf-set only leaves of are assigned to , such that, is maximized and each speciation node of is S-consistent.
By Lemma 9, it follows that an optimal solution of MaxLA has a an agreement value of at least , where is the optimal solution of MaxEC.
A PTAS of MaxLA by smooth polynomial integer programming
Now, we present a PTAS for MaxLA. Consider an unlabeled compressed tree , with the corresponding allowed sets and preassigned leaves . We start by introducing the smooth polynomial integer programming technique [22].
A polynomial having degree c is called q-smooth, for a constant , if the coefficients of each degree- monomial belongs to the interval , for each with .
First, we define some constants:
given a leaf-set of and , if and 0 otherwise
given two leaf-sets , of , is equal to 1 if is a speciation, else (if is a duplication) is equal to 0
given two leaf-sets , of , is a constant equal to 0 if and are connected to the same two-set internal node, else it is equal to 1
given , if and otherwise
For each leaf-set of and each leaf , define a variable that has value 1 if l is assigned to , else is 0 (notice that if l is a leaf preassigned to ). Given , define
Now, assume that and , where , , , do not belong to the same two-set internal node and ; it holds that if and only if (1) the lca of and is a speciation (hence ) and and are connected by an edge in R (hence ) or (2) the lca of and is a duplication (hence ) and there is no edge between and in R (hence ).
Finally define p(x) as follows:
The polynomial integer programming is defined as follows
The polynomial p(x) is 1-smooth.
Consider a solution for the smooth polynomial integer programming, given the correct unlabeled compressed tree , the correct allowed sets and the correct sets of preassigned leaves . For each , there is a polynomial time algorithm that produces a 0–1 assignment x to the leafset of (hence a compressed tree ), such that , where OPT is the maximum value of the smooth polynomial integer programming [22, 23].
Now, consider the labels assigned to different sets . By Lemma 9, we have that the agreement between and R is at least . By Lemma 6, , where is an optimal solution of MaxEC, hence it holds
for a constant . By choosing sufficiently small, and k sufficiently large, the PTAS for MaxLA follows.
Now, what we have to show is that, starting from a solution of MaxLA, it is possible to construct in polynomial time a gene tree such that is S-consistent and it has an agreement value not smaller than that of .
Building a feasible solution
Consider a compressed tree returned by the smooth polynomial integer programming. Next we show how to reconstruct a gene tree which is consistent with S.
First, we consider only the set of leaves that are assigned to a leaf-set , with . Notice indeed that if a leaf is assigned to a leaf-set with , then it will give a contribution 0 in the smooth polynomial integer program, as , hence , for each other leaf in . In this case, we construct a gene tree only for the set of leaves , then we construct a new gene tree by joining and a subtree over leafset such that the internal nodes of and the root of are all associated with a duplication.
We focus now on the set of labels and assume that no leaf l is assigned to a leaf-set such that . Starting from we construct in polynomial time the corresponding gene tree . is computed by replacing each leaf-set of with a subtree labeled by the set of leaves that belong to (see Fig. 4).
Fig. 4.
A compressed tree and the gene tree computed starting from
Consider the tree , a leaf set of connected to a node u of and the set of leaves assigned to . We replace by a subtree isomorphic to ; each internal node of is labeled as Dup. Notice that the root of is connected to u.
As a last step, if copies of a label l belongs to a leaf set , then we construct a subtree with d leaves all labeled by l, whose internal nodes are all associated with duplications.
We prove that the gene tree constructed is S-consistent.
Lemma 10
The tree computed starting from is S-consistent.
Proof
In order to ensure the S-consistency of , we must prove that for each node of with , each child of is mapped to a proper descendant of .
Consider a node of corresponding to an internal node v of such that and and v is not part of a two-set internal node. We claim that represents a speciation with respect to the species tree S. Let be the set of children of . Assume that , and that , for some . We show that x is a proper descendant of . Assume to the contrary that x and are the same node. We claim that there exists a leaf l that is assigned to , with , for some leaf-set of , where w is the node of corresponding to . If the claim holds, then by construction and this would contradict our earlier remark on such nodes not belonging to .
Hence, we must prove the claim: if x and are the same node of S, then there exists a leaf and a leaf-set in , such that l is assigned to , with . Assume that this is not the case. Since v is a speciation in , it follows that the preassigned leaves define a mapping of v and w in two different nodes of S. Let , where y is a proper descendant of . Since , it follows that there exists a leaf l of not in that is assigned to a leaf-set in , otherwise would be mapped in y. Hence the claim holds.
Consider now the case that v belongs to a two-set internal node . Since is a two-set internal node, and . Moreover, let be the leafset connected to v. Let be the root of the subtree of isomorphic to that replaced the leaf-set. Note that is a child of . Let be the other child of , and let q be the node of corresponding to .
Similarly to the previous case if or , then we claim that there exists a leaf l that is assigned to with for either or for some leaf-set in . In order to prove the claim, first notice that, by definition, the set contains only leaves of , where x and y are the nodes of S where v and q are mapped by . Therefore, if is not a proper descendant of x, there must be a leaf assigned to . Similarly, if is not a proper descendant of x, because is a proper descendant of x, there must be a leaf l assigned to in such that (otherwise, would be mapped to y). We can conclude that the lemma holds.
Conclusion
We considered the minimization weighted and maximization unweighted variants of the problems of editing a relation graph for satisfiability and consistency. We provided complexity and algorithmic results for these variants. We showed that the problems that ask for the minimization of corrections on a weighted graph do not admit a constant factor approximation algorithm assuming the unique game conjecture and we gave an n-approximation algorithm, n being the number of vertices in the graph. We then provided polynomial time approximation schemes for the maximization variants of for unweighted graphs.
For future investigations, there are several interesting problems both from a theoretical and experimental point of view. First, from a theoretical point of view, it is open whether the minimization variant on unweighted graphs is approximable within constant factor or not. Moreover, another interesting direction would be to study whether it is possible to close the gap between the inapproximability result we have proved and the n-approximation algorithm.
From an experimental point of view, the main open problem is to test our approach to weighted graphs, and in particular to give a definition of weights that integrate those defined in different methods for orthology detection.
Authors’ contributions
RD, ML and NE modeled the problems presented, designed the algorithms and the hardness proofs and wrote the papers. All authors read and approved the final manuscript.
Acknowledgements
Not applicable.
This paper is a full version of the extended abstract published in the proceedings of the WABI2016 conference.
Competing interests
The authors declare that they have no competing interests.
Funding
Publication of this work is funded by the Natural Sciences and Engineering Research Council of Canada (NSERC) and the Fonds de Recherche Nature et Technologies of Quebec (FRQNT).
Contributor Information
Riccardo Dondi, Email: riccardo.dondi@unibg.it.
Manuel Lafond, Email: lafonman@iro.umontreal.ca.
Nadia El-Mabrouk, Email: mabrouk@iro.umontreal.ca.
References
- 1.Ohno S. Evolution by gene duplication. Berlin: Springer; 1970. [Google Scholar]
- 2.Goodman M, Czelusniak J, Moore GW, Romero-Herrera AE, Matsuda G. Fitting the gene lineage into its species lineage, a parsimony strategy illustrated by cladograms constructed from globin sequences. Syst Zool. 1979;28:132–163. doi: 10.2307/2412519. [DOI] [Google Scholar]
- 3.Tatusov RL, Galperin MY, Natale DA, Koonin EV. The COG database: a tool for genome-scale analysis of protein functions. Nucl Acids Res. 2000;28:33–36. doi: 10.1093/nar/28.1.33. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Li L, Stoeckert CJJ, Roos DS. OrthoMCL: identification of ortholog groups for eukaryotic genomes. Genome Res. 2003;13:2178–2189. doi: 10.1101/gr.1224503. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Berglund AC, Sjolund E, Ostlund G, Sonnhammer EL. InParanoid 6: eukaryotic ortholog clusters with inparalogs. Nucl Acids Res. 2008;36:D263–D266. doi: 10.1093/nar/gkm1020. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Lechner M, Findeiß S, Steiner L, Marz M, Stadler PF, Prohaska SJ. Proteinortho: detection of co-orthologs in large-scale analysis. BMC Bioinf. 2011;12(1):1. doi: 10.1186/1471-2105-12-124. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Lafond M, Semeria M, Swenson KM, Tannier E, El-Mabrouk N. Gene tree correction guided by orthology. BMC Bioinf. 2013;14(supp 15):S5. doi: 10.1186/1471-2105-14-S15-S5. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Lafond M, Swenson K, El-Mabrouk N. Error detection and correction of gene trees. In: Chauve C, El Mabrouk N, Tannier E, editors. Models and algorithms for genome evolution. London: Springer; 2013. [Google Scholar]
- 9.Consortium TGO. Gene ontology: tool for the unification of biology. Nat Genet. 2000;25(1):25–29. doi: 10.1038/75556. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Lafond M, El-Mabrouk N. Orthology and paralogy constraints: satisfiability and consistency. BMC Genomics. 2014;15(Suppl 6):12. doi: 10.1186/1471-2164-15-S6-S12. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Hernandez-Rosales M, Hellmuth M, Wieseke N, Huber KT, Moulton V, Stadler PF. From event-labeled gene trees to species trees. BMC Bioinf. 2012;13(Suppl 19):6. [Google Scholar]
- 12.Hellmuth M, Hernandez-Rosales M, Huber K, Moulton V, Stadler P, Wieseke N. Orthology relations, symbolic ultrametrics, and cographs. J Math Biol. 2013;66(1–2):399–420. doi: 10.1007/s00285-012-0525-x. [DOI] [PubMed] [Google Scholar]
- 13.Hellmuth M, Wieseke N, Lechner M, Lenhof H-P, Middendorf M, Stadler PF. Phylogenomics with paralogs. Proc Natl Acad Sci. 2014;112(7):2058–2063. doi: 10.1073/pnas.1412770112. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Liu Y, Wang J, Guo J, Chen J. Complexity and parameterized algorithms for cograph editing. Theor Comput Sci. 2012;461:45–54. doi: 10.1016/j.tcs.2011.11.040. [DOI] [Google Scholar]
- 15.Natanzon A, Shamir R, Sharan R. Complexity classification of some edge modification problems. Discret Appl Math. 2001;113(1):109–128. doi: 10.1016/S0166-218X(00)00391-7. [DOI] [Google Scholar]
- 16.Alon N, Stav U. Hardness of edge-modification problems. Theor Comput Sci. 2009;410(47–49):4920–4927. doi: 10.1016/j.tcs.2009.07.002. [DOI] [Google Scholar]
- 17.Lafond M, Dondi R, El-Mabrouk N. The link between orthology relations and gene trees: a correction perspective. Algorithms Mol Biol. 2016;11(1):1. doi: 10.1186/s13015-016-0067-7. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Fitch WM. Homology: a personal view on some of the problems. Trends Genet. 2000;16(5):227–231. doi: 10.1016/S0168-9525(00)02005-9. [DOI] [PubMed] [Google Scholar]
- 19.Chawla S, Krauthgamer R, Kumar R, Rabani Y, Sivakumar D. On the hardness of approximating multicut and sparsest-cut. Comput Complex. 2006;15(2):94–114. doi: 10.1007/s00037-006-0210-9. [DOI] [Google Scholar]
- 20.Corneil DG, Perl Y, Stewart LK. A linear recognition algorithm for cographs. SIAM J Comput. 1985;14(4):926–934. doi: 10.1137/0214065. [DOI] [Google Scholar]
- 21.Stoer M, Wagner F. A simple min-cut algorithm. J ACM. 1997;44(4):585–591. doi: 10.1145/263867.263872. [DOI] [Google Scholar]
- 22.Arora S, Frieze AM, Kaplan H. A new rounding procedure for the assignment problem with applications to dense graph arrangement problems. Math Program. 2002;92(1):1–36. doi: 10.1007/s101070100271. [DOI] [Google Scholar]
- 23.Jiang T, Kearney PE, Li M. A polynomial time approximation scheme for inferring evolutionary trees from quartet topologies and its application. SIAM J Comput. 2000;30(6):1942–1961. doi: 10.1137/S0097539799361683. [DOI] [Google Scholar]
- 24.Bonizzoni P, Vedova GD, Dondi R, Jiang T. On the approximation of correlation clustering and consensus clustering. J Comput Syst Sci. 2008;74(5):671–696. doi: 10.1016/j.jcss.2007.06.024. [DOI] [Google Scholar]