Abstract
Finding the smallest sequence of operations to transform one genome into another is an important problem in comparative genomics. The breakpoint graph is a discrete structure that has proven to be effective in solving distance problems, and the number of cycles in a cycle decomposition of this graph is one of the remarkable parameters to help in the solution of related problems. For a fixed k, the number of linear unichromosomal genomes (signed or unsigned) with n elements such that the induced breakpoint graphs have k disjoint cycles, known as the Hultman number, has been already determined. In this work we extend these results to multichromosomal genomes, providing formulas to compute the number of multichromosal genomes having a fixed number of cycles and/or paths. We obtain an explicit formula for circular multichromosomal genomes and recurrences for general multichromosomal genomes, and discuss how these series can be used to calculate the distribution and expected value of the rearrangement distance between random genomes.
Similar content being viewed by others
Background
In molecular biology and genetics, comparative genomics is a discipline interested in the comparison of genomic attributes of different organisms. These attributes may encompass DNA sequences, gene content, gene order, regulatory sequences, and other structural features. Several measures have been proposed to compute the (dis)similarity between genomes. The field called genome rearrangements is concerned with measures of dissimilarity involving large-scale mutations, such as reversals and transpositions, where a fundamental problem is to determine the smallest sequence of such rearrangement operations that transforms one given genome into another. This minimum number of operations is called the rearrangement distance between the two given genomes. These and other aspects of genome rearrangements are discussed in detail by Fertin et al. [1].
A remarkable characteristic of methods to compute distances is the systematic use of a graph, first introduced by Bafna and Pevzner [2], known as the breakpoint graph. It has proven, by its decomposition into disjoint cycles, a useful tool to efficiently compute rearrangement distances such as transposition or reversal, directly related to the number of cycles in this decomposition [1].
Since cycle decomposition of breakpoint graphs plays a central role in computing distances, it is useful to investigate the distribution of such cycles. Particularly, the distribution of genomes with a number of cycles c allows us to evaluate the probability to have a scenario of a distance d depending of c. Doignon and Labarre [3] enumerated the unsigned permutations of a given size such that the corresponding graph has a given number of cycles, and called it the Hultman number. Subsequently, Grusea and Labarre [4] extended this result for signed permutations, where the signs model gene orientation.
In this work we extend previous results providing formulas to compute the number of multichromosomal genomes with a given number of cycles and/or paths. We obtain an explicit formula for circular genomes and recurrences for more general cases.
Our paper is organized as follows. In the Preliminaries section we give some definitions and notations. The results for circular and general multichromosomal genomes are presented in the next section, called The Multichromosomal Hultman Number. The following section presents some discussion about the distribution of the rearrangement distance, derived from the multichromosomal Hultman numbers, and the Conclusion section presents final remarks and perspectives.
Preliminaries
We represent multichromosomal genomes using a similar notation as in [5]. A gene is a fragment of DNA on one of the two DNA strands in a chromosome, showing its orientation. A gene is represented by an integer and its orientation by a sign. The orientation of a gene g allows us to distinguish its two extremities, the tail (gt) and the head (gh). A chromosome is represented by a sequence of genes, flanked in the extremities by telomeres (∘) if the chromosome is linear; otherwise, it is circular. Genomes are represented as sets of chromosomes. An adjacency in a genome is either a pair of consecutive gene extremities in a chromosome, or a gene extremity adjacent to a telomere (a telomeric adjacency ). For instance, A = {(∘ 1 2 3 4 ∘)} is a genome with one linear chromosome and four genes, and has the adjacencies ∘1t, 1h2t, 2h3t, 3h4t and 4h∘, where the first and the last are telomeric adjacencies.
There is a one-to-one correspondence between genomes and matchings in the set of extremities. Adjacencies correspond to two matched (saturated) vertices, and telomeric adjacencies correspond to unmatched (unsaturated) vertices. Therefore, a perfect matching (i.e., matching which saturates all vertices of the graph) corresponds to a genome with only circular chromosomes. The matching corresponding to a genome A is denoted by M A . Because of this one-to-one relationship, in this text we use the terms genome and matching interchangeably.
Given two genomes A and B with the same set of genes, the multichromosomal breakpoint graph of A and B, denoted by BG(A, B), is built by joining the matchings M A and M B in the same set of vertices, using different colors for the edges of each matching. Figure 1 shows an example of a multichromosomal breakpoint graph for genomes A = {(1 2 3 4 5 6 7 8 9)} and B = {(6 -1 4 5 -2), (∘ -9 3 8 7)}. From this point on we will use the term breakpoint graph to refer to the multichromosomal breakpoint graph. Since all its vertices have degree 0, 1 or 2, the breakpoint graph is uniquely decomposed in cycles and paths. For instance, the breakpoint graph in Figure 1 is decomposed in two cycles and one path.
The multichromosomal Hultman number
In this section, we extend the results of [3, 4] for multichromosomal genomes. There are two new aspects that must be considered. First, since the breakpoint graph can be decomposed in cycles and paths, we may have to count not only cycles, but also paths. The other question is about the identity genome. In the unichromosomal case, the identity genome is easily defined. In the multichromosomal case, it is not obvious which given genome is the identity. When working on multichromosomal circular genomes, the identity is defined as in the unichromosomal case. In the general case, working on genomes with linear and circular chromosomes, we analyze two types of identities for genomes: one with only one set of circular chromosomes and another with a set of circular chromosomes and a set of linear chromosomes.
In the next sections, we propose extensions of the Hultman number for multichromosomal genomes, first considering only circular genomes, and then extending the results to general genomes, with linear and circular chromosomes. The same strategy is used in all cases: first, start with a matching representing the identity, and then superimpose all other possible matchings, while counting recursively cycles and paths. To do that, we need to consider all possible operations to build such matchings. In Figure 4, all such operations are shown.
Multichromosomal circular genomes
A circular genome is a genome where all chromosomes are circular. Since there are no telomeric adjacencies, the matching M A of a circular genome A is a perfect matching on the extremities of A. Moreover, the breakpoint graph of two circular genomes is decomposed in disjoint alternating cycles, since each vertex has degree two.
We want to compute the number of circular genomes with n genes that have c disjoint alternating cycles over a given identity genome I, that we call the multichromosomal circular Hultman number, denoted by H C (n, c). In this case, since the matching of any circular genome is a perfect matching, we claim that H C (n, c) is the same, independently of the genome I chosen as an identity, and simply define I∘ = {(1, 2,..., n)}. Hence, we define
where is the set of all circular multichromosomal genomes with n genes and cyc(G) denotes the number of cycles in a graph G.
Starting with a perfect matching of the 2n vertices, we build all breakpoint graphs BG(A, I ∘ ), for circular genomes A, which correspond to perfect matchings, adding one edge at a time, while counting the number of cycles, recursively.
The matching is composed by n connected components, and all are paths. Considering an arbitrary vertex u in the matching , there are 2n - 1 possible edges uv that can be created. Figure 2 shows how these different edges can be chosen. There are two possible cases:
Construction of the breakpoint graph for a circular identity genome I and a circular genome A. The adjacencies of I are represented by black edges and those of A by grey edges. Unvisited nodes are white, visited ones are black. To build a perfect match (circular genome A) only two operations are possible: (a) Create a cycle; (b) Merge two paths.
(a) Create Cycle: If u and v belong to the same component, the edge e = (u, v) will create a cycle. There is only one possibility for this type of edge.
(b) Merge Paths: If u and v belong to different components, uv will merge both paths. There are 2n - 2 possibilities of adding such an edge.
Applying any of the two operations results in a graph with n - 1 paths, a subcase of the original graph with n paths, with operation (a) also creating a cycle. This allows us to establish a recurrence for H C (n, c). For the base cases, when n = 0 we only have the empty genome, with 0 cycles in the breakpoint graph. Therefore, H C (0, c) = 1 if and only if c = 0, with H C (0, c) = 0 for c > 0. Also, if either n or c is less than zero, we have that H C (n, c) = 0.
The following result states an explicit formula to H C (n, c).
Theorem 1
where Q = q2 + ... + q k and is a sum over all partitions of n - c.
Proof We know from [6] that unsigned Stirling numbers of first kind satisfy the following recurrence equation: . Multiplying both sides by 2n-c and using H C (n, c) recurrence equation we arrive at . Then, using the explicit formula for given in [7], we arrive at our result. □
Furthermore, the sequence of integers generated by H C (n, c) is the unsigned entry A039683 in the OEIS (On-Line Encyclopedia of Integer Sequences) [8].
General multichromosomal genomes
We will generalize our previous formula for general multichromosomal genomes, with both linear and circular genomes. As already mentioned, two difficulties arise. Now, we have not only cycles but also paths in the breakpoint graph. Thus, it is not clear which genome should be considered the identity genome. As a starting point, let us consider again the identity as I∘ = {(1, 2,..., n)}, and find the general Hultman number H G (n, c, p), defined as
where is the set of all multichromosomal genomes with n genes, and pt(·) denotes the number of paths in a graph. In this set, each genome corresponds to a matching, not necessarily perfect, since only circular genomes correspond to perfect matchings. Similarly as the previous case, we start with the matching on 2n vertices, and recursively build all possible matchings, while counting cycles and paths. Since a matching induced by an arbitrary genome A in is not necessarily perfect, together with the create cycle and merge paths operations on a vertex u, we can also choose to not saturate a vertex u in the matching being built, thus creating a telomere, which we call a skip vertex operation.
Moreover, since we now have an operation that is applied on just one vertex, and not two at a time such as the operations presented in Section, we need to define a different recurrence, where n correspond to vertices in the breakpoint graph, and not to genes in the genomes. In a genome I∘ with n genes, there are 2n vertices (extremities) in and consequently in BG(A, I∘). So, we need an auxiliary number , such that , with e = 2n, and , where is the set of all possible matchings on e vertices, and is a perfect matching with e/2 edges induced by I∘.
Starting with the matching , another matching is built recursively by adding edges or skipping vertices until all vertices have been visited. Visited vertices are shown in figures as black vertices, and unvisited as white. If e is even, we pick any unvisited vertex u and we have tree possibilities (Figure 3a,b,c):
Construction of the breakpoint graph for a circular genome I and a general genome A. The adjacencies of I are represented by black edges and those of A by grey edges. Unvisited nodes are white, visited ones are black. We can create a cycle only when e (the number of unvisited nodes) is even (a). We can merge two paths when e is even (b) or odd (d). We can skip a vertex when e is even (c) or odd (e). In (c) and (d), the parity of the number of unvisited vertices is changed.
(a) Create Cycle: There is one edge uv such that v(≠ u) is the unvisited vertex in the same component as u, and this edge (shown as a grey edge uv) will create a cycle. Vertices u and v are marked as visited (Figure 3(a)).
(b) Merge Paths: There are e - 2 edges uv such that v is an unvisited vertex in a different component as u, and this edge will merge these components, that are paths. Vertices u and v are marked as visited. (Figure 3(b)).
(c) Skip Vertex: Vertex u is not saturated; no edge is created and only u is marked as visited (Figure 3(c)).
If e is odd, it means that there is a vertex u that is connected to a visited vertex. For this vertex, there is no way to close a cycle, but the other two operations are possible:
(d) Merge Paths: There are e - 1 edges uv such that v is in a different component as u, merging these components. Vertices u and v are marked as visited (Figure 3(d)).
(e) Skip Vertex: Vertex u is not saturated; no edge is created, only u is marked as visited. A path where all vertices are visited is created (Figure 3(e)).
For the base cases, again we know that when e = 0, we have only the empty genome, and this means that if an only if c = p = 0, and if c > 0 or p > 0. Also, if any of e, c, or p is negative, . With that, we arrive at the following recurrence:
with (1) if any of e, c, p is negative, or e = 0 and any of c, p is positive; (2) if e = c = p = 0; (3) if e is even; and (4) if e is odd.
Multichromosomal genomes with a fixed number of linear chromosomes
In this section we generalize the previous approach for different identity genomes. Instead of fixing the identity as a circular genome, the identity I ℓ is a genome with a fixed number of ℓ linear chromosomes. As for the input genomes, first we consider all possible genomes, and in a second approach also fix the number of linear chromosomes.
Identity genome Iℓ with ℓ linear chromosomes
In this case, we can define the Hultman number
where is the set of all multichromosomal genomes with n genes, and I ℓ is a genome with exactly ℓ linear chromosomes. This is a generalization of the previous case, since H G (n, c, p) = H L (n, c, p, 0). We propose again an auxiliary series, defined as , where is the set of all possible matchings on e vertices, and is a matching on these vertices such that exactly i vertices are unsaturated (isolated), with e = 2n and i = 2ℓ. Then, given a matching with i unsaturated vertices, we will build a matching recursively adding edges or skipping vertices until all vertices have been visited. In this case, the parity of e + i determines which possibilities we have (Figure 4). When e + i is even, we will call the current state balanced, otherwise it is unbalanced. In the balanced case, focusing on an unvisited vertex u that is saturated by there are four possible cases (Figure 4a-d):
Construction of matching for genome I ℓ with ℓ linear chromosomes ( i unsaturated vertices) and a general genome A. Adjacencies of I are represented by black edges and those of A by grey edges. Visited (unvisited) vertices are black (white). We can create a cycle only when e + i is even (a). We can merge two paths when e + i is even (b) or odd (e). We can connect an unsaturated vertex when e = i (h), when e + i is even (c) or odd (f). We can skip a vertex when e = i (i), when e + i is even (d) or when e + i odd (g). In (c) and (d), the parity of e + i is changed.
(a) Create Cycle: There is one edge uv such that v(≠u) is an unvisited vertex in the same component as u, and this edge will create a cycle. Vertices u and v are marked as visited.
(b) Merge Paths: There are e - 2 - i edges uv such that v is saturated in I i and is in a different component as u, and uv will merge these components, that are paths. Vertices u and v are marked as visited.
(c) Skip Vertex: No edge is created and u is marked as visited.
(d) Connect with unsaturated: There are i possible edges from u to an unsaturated vertex v in I i . Vertices u and v are marked as visited.
Cases (a) and (b) visit two vertices that are saturated in I i , which means that the state remains balanced. Case (c) changes the state to unbalanced, since only one vertex is visited. Case (d) visits two vertices, but one is a unsaturated vertex in I i , which means that the parity of e + i changes and the state becomes unbalanced.
In the unbalanced state, focusing on a vertex u belonging to a component with all other vertices visited, there are three possibilities (Figure 4e-g):
(e) Merge Paths: There are e - 1 - i edges uv such that v is saturated in I i and is in a different component as u, and this edge will merge these components, that are paths. Vertices u and v are marked as visited.
(f) Skip Vertex: Vertex u is not saturated in M ; no edge is created and only u is marked as visited, and a path with all vertices visited is created.
(g) Connect with unsaturated: There are i possible edges from u to an unsaturated vertex v in I i . Vertices u and v are marked as visited, and a path with all vertices visited is created.
Cases (e), (f) and (g) are similar to cases (b), (c) and (d), respectively, which means that (e) keeps the state unbalanced, but (f) and (g) change it to balanced again. There are still two cases to consider, when e = i (Figure 4h, i).
(h) Connect two unsaturated: There are i - 1 possible edges from an unsaturated vertex u to an unsaturated vertex v in I i . Vertices u and v are marked as visited, and a path with all vertices visited is created.
(i) Skip Vertex: No edge is created and u is marked as visited. A path with all vertices visited is created.
For the base cases, as before when e = 0 we have if and only if c = p = i = 0, and if any of c, p, i is positive. Also, if any of e, c, p, i is negative, .
With all these cases described, we arrive at the recurrence, from what we can deduce H L (n, c, p, ℓ):
with (1) if any of e, c, p, i is negative, or e = 0 and any of c, p, i is positive; (2) if e = c = p = i = 0; (3) if e = i > 0, (4) if e + i is even, e > i, (5) if e + i is odd, e > i.
Identity genome and input genomes with ℓi and ℓa linear chromosomes
In this scenario, in addiction to fixing ℓ i linear chromosomes for the identity , we also build breakpoint graphs only with genomes that have exactly ℓ a linear chromosomes. We propose the Hultman number
were is the set of all multichromosomal genomes with n genes and exactly ℓ a linear chromosomes, and I ℓ is, as before, a genome with exactly ℓ linear chromosomes. By definition, we have that .
Again we define an auxiliary series, in this case , where is the set of all possible matchings on e vertices that has exactly a unsaturated vertices, and is a matching on these vertices such that exactly i vertices are unsaturated. To build the breakpoint graph for this new series, we use exactly the same operations as in the previous, summarized in Figure 4. The only difference is that we have to track how many unsaturated vertices a the current matching being build has. The only operations that change this are the skip vertex operations (c), (i) and (f), decreasing a by 1. The other operations keep a the same, as they all create an edge and do not mark any vertex as unsaturated.
The base cases are also similar, only including a in the constraints. When e = 0 we have if and only if c = p = i = a = 0, and if any of c, p, i, a is positive. Also, if any of e, c, p, i, a is negative, .
Therefore, the recurrence is given by
with (1) if any of e, c, p, i is negative, or e = 0 and any of c, p, i is positive; (2) if e = c = p = i = 0; (3) if e = i > 0, (4) if e + i is even, e > i, (5) if e + i is odd, e > i.
Distribution of rearrangement distances
From the Hultman series that we introduced, it is possible to derive the distribution of rearrangement distances for each scenario.
The Double Cut and Join (DCJ) distance [9, 10] is one of the most studied rearrangement distances since its introduction in 2005, because it can model several rearrangement operations and it is commonly easy to calculate in many cases. The DCJ distance between two genomes A and B is given by d(A, B) = n - c - e/2, where n is the number of genes, and c and e are respectively the number of cycles and even paths (paths with even number of edges) in the breakpoint graph BG(A, B). Using group theory, an alternative measure called algebraic rearrangement distance was proposed by Feijäo and Meidanis [11]. This distance can also be calculated with the breakpoint graph, namely d a (A, B) = n - c - p/2, where n is the number of genes, and c and p are respectively the number of cycles and paths in the breakpoint graph BG(A, B). Since the parity of paths is not important in the algebraic distance, it is the best suited model for calculating the distribution of the rearrangement distances from the Hultman numbers proposed here. For each of the four cases, we ask the following question: How many genomes of size n have distance d from a given identity genome? Making the same assumptions about the identity and also the universe of the genomes - that is, circular only, general, or a fixed number of linear chromosomes -, we arrive in the following distance distributions, shown also in Figure 5. It is interesting to notice that most of the genomes are very distant from the identity.
Using those equations, we can also calculate the expected value for the rearrangement distance in any selected scenario. For instance, if we have the random variable X n = d a (A n , I n ), where I n is the circular identity of size n and A n is a genome sampled uniformly from the set C n of all circular genomes, then we have
since |C n | is the number of circular genomes of size n and corresponds to the number of perfect matchings with 2n vertices, given by (2n - 1)!!. The expected value is then given by
and can therefore be calculated with the given recurrence equations. For instance, for n = 100 we have E[X100] = 95.22. A closed formula for the expected value of a rearrangement distance, to the best of our knowledge, has only been found for the very simple breakpoint distance d BP , which counts how many adjacent genes in the identity are not adjacent in the other genome, and is given by [12]. This converges to n - 1/2 when n goes to infinity, which is almost the diameter n for the breakpoint distance. Although we have no closed formula for E[X n ], we conjecture that it also converges to n - k for some constant k > 0, as n goes to infinity, and the experimental results point to k ≈ 5.
Conclusions
In this paper, we introduced different recursive formulas for the Hultman number and its variations, that are relevant in the context of comparative genomics. We have extended previous results that treated the unichromosomal cases [3, 4], focusing on multichromosomal genomes. Table 1 shows a summary of the results.
For the Hultman number H C (n, c), in addition to the recursive equations we also provided an explicit formula, using the relationship between this series and the unsigned Stirling numbers of first kind. An interesting future direction is finding explicit formulas for the other proposed sequences H G (n, c, p) and H L (n, c, p, ℓ).
Another interesting relationship is that, for a fixed n, the sum of all combination of cycles and paths in a series results in the number of genomes of size n. The number of circular genomes of size n corresponds to the number of perfect matchings with 2n vertices, which is given by (2n - 1)!!. The number of general genomes of size n is the number of matchings with 2n vertices, which is the telephone number T (n) (sequence A000085 in OEIS [8]), given by . The equations below follow:
and
These equations might be useful for finding explicit equations for some of the numbers. We wrote a Python script with all recurrence relations proposed, and the above equations were useful to check the correctness of each series.
The Hultman number can also be used to find the expected value of the rearrangement distance between uniformly distributed genomes, in our case the algebraic distance between multichromosomal genomes. Future directions include finding explicit equations for the introduced recursive equations and the expected value of the rearrangement distance.
References
Fertin G, Labarre A, Rusu I, Tannier E, Vialette S: Combinatorics of Genome Rearrangements. 2009, MIT Press, Cambridge, MA
Bafna V, Pevzner PA: Genome rearrangements and sorting by reversals. SIAM Journal on Computing. 1996, 25 (2): 272-289.
Doignon J, Labarre A: On Hultman numbers. Journal of Integer Sequences. 2007, 10 (6): Article 07.6.2, 13 p.
Grusea S, Labarre A: The distribution of cycles in breakpoint graphs of signed permutations. Discrete Applied Mathematics. 2013, 161 (10-11): 1448-1466.
Bergeron A, Mixtacki J, Stoye J: A unifying view of genome rearrangements. Lecture Notes in Computer Science. 2006, 4175: 163-173.
Graham RL, Knuth DE, Patashnik O: Concrete Mathematics: A Foundation for Computer Science. 1994, Addison-Wesley, USA
Malenfant J: Finite, closed-form expressions for the partition function and for Euler, Bernoulli, and Stirling numbers. ArXiv e-prints (2011). 1103.1585
Sloane NJA: The On-Line Encyclopedia of Integer Sequences - OEIS. 2014, [http://oeis.org]
Yancopoulos S, Attie O, Friedberg R: Efficient sorting of genomic permutations by translocation, inversion and block interchange. Bioinformatics. 2005, 21 (16): 3340-6. doi:10.1093/bioinformatics/bti535
Bergeron A, Mixtacki J, Stoye J: A unifying view of genome rearrangements. Lecture Notes in Computer Science. 2006, 4175: 163-173.
Feijao P, Meidanis J: Extending the algebraic formalism for genome rearrangements to include linear chromosomes. IEEE/ACM Transactions on Computational Biology and Bioinformatics. 2013, 10 (4): 819-831. doi:10.1109/TCBB.2012.161
Xu W, Alain B, Sankoff D: Poisson adjacency distributions in genome comparison: multichromosomal, circular, signed and unsigned cases. Bioinformatics. 2008, 24 (16): 146-152. doi:10.1093/bioinformatics/btn295
Acknowledgements
FVM is funded from the Brazilian research agency CNPq grant Ciência sem Fronteiras Postdoctoral Scholarship 245267/2012-3. We acknowledge support of the publication fee by Deutsche Forschungsgemeinschaft and the Open Access Publication Funds of Bielefeld University.
This article has been published as part of BMC Bioinformatics Volume 16 Supplement 19, 2015: Brazilian Symposium on Bioinformatics 2014. The full contents of the supplement are available online at http://www.biomedcentral.com/bmcbioinformatics/supplements/16/S19
Author information
Authors and Affiliations
Corresponding author
Additional information
Competing interests
The authors declare that they have no competing interests.
Authors' contributions
All authors contributed equally.
Rights and permissions
This article is published under an open access license. Please check the 'Copyright Information' section either on this page or in the PDF for details of this license and what re-use is permitted. If your intended use exceeds what is permitted by the license or if you are unable to locate the licence and re-use information, please contact the Rights and Permissions team.
About this article
Cite this article
Feijão, P., Martinez, F.V. & Thévenin, A. On the distribution of cycles and paths in multichromosomal breakpoint graphs and the expected value of rearrangement distance. BMC Bioinformatics 16 (Suppl 19), S1 (2015). https://doi.org/10.1186/1471-2105-16-S19-S1
Published:
DOI: https://doi.org/10.1186/1471-2105-16-S19-S1