Abstract
Background
Sequence comparison is a fundamental step in many important tasks in bioinformatics; from phylogenetic reconstruction to the reconstruction of genomes. Traditional algorithms for measuring approximation in sequence comparison are based on the notions of distance or similarity, and are generally computed through sequence alignment techniques. As circular molecular structure is a common phenomenon in nature, a caveat of the adaptation of alignment techniques for circular sequence comparison is that they are computationally expensive, requiring from super-quadratic to cubic time in the length of the sequences.
Results
In this paper, we introduce a new distance measure based on q-grams, and show how it can be applied effectively and computed efficiently for circular sequence comparison. Experimental results, using real DNA, RNA, and protein sequences as well as synthetic data, demonstrate orders-of-magnitude superiority of our approach in terms of efficiency, while maintaining an accuracy very competitive to the state of the art.
Background
Biological motivation
Circular molecular structures are present, in abundance, in all domains of life: bacteria, archaea, and eukaryotes; and in viruses. They can be composed of either amino or nucleic acids. The following is an overview of such occurrences, and exhaustive reviews can be found in [1] (proteins) and [2] (DNA).
Double-stranded, circular chromosomes and plasmids are found in most bacteria and archaea. Whole-genome comparison is a very useful tool in classifying bacterial strains, as well as inferring phylogenetic associations between them. This is due to the dense structure of bacterial chromosomes, caused by the absence of introns, and the organisation of genes into operons. The extended benefit of aligning plasmids is the ability to identify important genes, such as antibiotic resistance genes, thereby enabling their study and exploitation by genetic engineering techniques [3].
The most familiar examples of such structures in eukaryotes are mitochondrial (MtDNA) and plastid DNA. MtDNA is, in most cases, inherited solely from the mother, and so is generally conserved. Human MtDNA is double-stranded, with a length of 16,569 base pairs (bp), consisting of just 37 genes encoding 13 proteins and 24 RNA molecules [4]. The absence of recombination in these sequences allows them to be used as simple indicators of phylogenetic evolution, and their high mutation rate is a powerful discriminative feature [5, 6]. There also exist smaller structures, called extrachromosomal circular DNA, which are similar to plasmids in bacterial cells. They are described as one of the characteristics of genomic plasticity in eukaryotes [7] and may derive from MtDNA [8].
It is common knowledge that many viral genomes are circular. Viral genomes vary greatly in size and structure. They can be made up of either RNA or DNA, and can be single- or double-stranded. Multiple sequence alignment of viral genomes can be useful in the elucidation of novel sites of interest [9], as well as the inference of evolutionary relationships [10]. This is particularly important in studying their pathogenicity, due to the rapid rate of mutation of viruses. Viroids are plant pathogens that comprise very small, single-stranded, circular RNA. Their multiple sequence alignment could prove useful in the analysis of their secondary structures and, therefore, the mechanisms by which they infect host plant cells [11].
Naturally-occuring circular proteins are found in both prokaryotes and eukaryotes [1]. Bacteriocins are very small toxins produced by bacteria in order to compete with closely-related bacterial strains. Many of these are circular, including gassericin A, found in Lactobacillus gasseri LA39 [12], and circularin A, found in Clostridium beijerinckii [13]. An interesting phenomenon known to occur naturally in linear protein structures is circular permutation [14]. This can be exemplified by swaposins: proteins highly-similar to saposins, resulting from circularly permuted linear peptide sequences [15]. The ability to align linear sequences from circular proteins can significantly speed up and enhance their analyses, and could also lead to the discovery of novel pairs of circularly permuted proteins.
Our problem
Conventional tools, designed for linear sequences, could yield an incorrectly high genetic distance between closely related circular sequences. Indeed, when sequencing molecules, the position where a circular sequence starts can be totally arbitrary. Due to this arbitrariness, a suitable rotation of one sequence would give much better results for a pairwise alignment, and hence highlight a similarity that any linear alignment would miss. A practical example of the benefit this can bring to sequence analysis is the following. Linearized human (NC_001807) and chimpanzee (NC_001643) MtDNA sequences, obtained from GenBank [16], do not start in the same region. Their pairwise sequence alignment using EMBOSS Needle [17] (default parameters) gives a similarity of 85.1 % and consists of 1195 gaps. However, taking different rotations of these sequences into account yields a much more significant alignment with a similarity of 91 % and only 77 gaps. This example motivates the design of efficient algorithms that are specifically devoted to the comparison of circular sequences [18–20].
In this paper, we consider the pairwise circular sequence comparison problem. Under the edit distance model, it consists in finding an optimal linear alignment of two circular strings. This problem, for two strings x and y of length m and , respectively, can be solved under the edit distance model in time [21]. Several other super-quadratic [22] and approximate quadratic-time [23] algorithms exist. Trivially, for molecular biology applications, the same problem can be solved in time , if extending the problem with scoring matrices and affine gap penalty scores. A direct application of pairwise circular sequence comparison is progressive multiple circular sequence alignment [11, 24, 25]. Multiple circular sequence alignment has also been considered in [26] under the Hamming distance model.
To the best of our knowledge, there is no fast (that is, with sub-quadratic time complexity) and exact (or at least very accurate) algorithm for circular sequence comparison under some realistic model (that is, allowing indels). Taking into account edit distance rather than Hamming distance is computationally challenging as the search space for seeking similarity is wider. Algorithms that speed up the process of string matching, by filtering out candidate positions in which a particular string can never occur, are known as filters. Filters that work for Hamming distance do not work in general for edit distance [27] as well. An exception to this are the q-gram filtering techniques [28] that have successfully been used for string matching under the edit distance model (e.g. [29–31]), as well as for multiple local alignments, both under the Hamming [32] and edit [31] distance models.
Our contribution
We present new efficient q-gram-based methods for pairwise circular sequence comparison. Specifically, our contribution is threefold.
We introduce the -blockwiseq-gram distance between two strings x and y, that is, a more powerful generalization of the q-gram distance introduced as a string distance measure in [28]. Intuitively, and similarly to [29–31], this generalization comprises partitioning x and y in blocks each, as evenly as possible, computing the q-gram distance between the corresponding block pairs, and then summing up the distances computed blockwise.
We present an algorithm based on the suffix array [33] that finds the rotation of x such that the -blockwise q-gram distance between the rotated x and y is minimal, in time and space , where and , thereby solving exactly the circular sequence comparison problem under the -blockwise q-gram distance measure. We also present a simple heuristic algorithm to solve an approximate version of the problem.
We present an experimental study, using real and synthetic data, which demonstrates orders-of-magnitude superiority of our approach, in terms of efficiency, while maintaining an accuracy very competitive to the optimal obtained after considering all rotations of x against y using EMBOSS Needle.
The paper is organized as follows. "Definitions and properties" section gives some preliminary definitions, notation, and properties. "Algorithms" section describes two algorithms, one is a heuristic approach and the other is an exact algorithm for circular sequence comparison under the -blockwise q-gram distance measure. "Implementation" section provides details of the implementation of the algorithms. "Experimental results" section presents the experimental results of the performance and accuracy of the algorithms. Finally, "Conclusions" section gives some concluding remarks and future proposals. A preliminary version describing a subset of the results in this paper appeared in [34].
Definitions and properties
We begin with a few definitions, following [35]. We think of a stringx of lengthm as an array , where every x[i], , is a letter drawn from some fixed alphabet of size . We refer to any string as a q-gram. The empty string of length 0 is denoted by . A string x is a factor of a string y if there exist two strings u and v, such that . Let x be a non-empty string and y be a string. We say that there is an occurrence of x in y, or, simply, that xoccurs iny, when x is a factor of y. The Parikh vector associated with a string is denoted by and represents a vector of size , where each component denotes the number of occurrences in w of the corresponding letter from .
Consider the strings x, y, u, and v, such that . If , then x is a prefix of y. If , then x is a suffix of y. We denote by SA the suffix array of y of length n, that is, an integer array of size n storing the starting positions of all lexicographically sorted suffixes of y, i.e. for all , we have [33]. Let lcp (r, s) denote the length of the longest common prefix between and , for all positions r, s on y, and 0 if they do not have a common prefix. We denote by LCP the longest common prefix array of y defined by LCP, for all , and LCP. The inverse iSA of the array SA is defined by , for all . SA, iSA, and LCP of y can be computed in time and space [36].
A circular string of length m can be viewed as a traditional linear string which has the left- and right-most letters wrapped around and glued together in some way. Under this notion, the same circular string can be seen as m different linear strings, which would all be considered equivalent. Given a string x of length m, we denote by , , the ith rotation of x and . For instance, the string has the following rotations: , , and so on.
We give some further definitions following [28]. The q-gram profile of a string x is the vector , where and denotes the total number of occurrences of q-gram in x. The q-gram distance between two strings x and y is defined as
1 |
Note that is a pseudo-metric as can be 0 even if . has the following properties [28] for all of length at least q.
Positivity:
Symmetry:
Triangular inequality:
, for
, for a non-length-increasing morphism h on .
Example 1
Let , , and . Table 1 shows the q-gram profiles of strings x and y and the q-gram distance between them. Each row represents the frequency of a q-gram in the given string. For succinctness of presentation, only those rows with frequency greater than zero (in either string) are shown, as well as rows representing , , , and as points of reference.
Table 1.
(a) | |
0 | |
0 | |
1 | |
0 | |
1 | |
1 | |
0 | |
1 | |
0 | |
1 | |
0 | |
1 | |
0 | |
0 | |
(b) | |
0 | |
1 | |
0 | |
0 | |
1 | |
0 | |
1 | |
0 | |
0 | |
0 | |
1 | |
1 | |
1 | |
0 | |
(c) | |
0 | |
1 | |
1 | |
0 | |
0 | |
1 | |
1 | |
1 | |
0 | |
1 | |
1 | |
0 | |
1 | |
0 |
For a given integer parameter , we define a generalization of the q-gram distance in (1) by partitioning x and y in blocks as evenly as possible, and computing the q-gram distance between each pair of blocks, one from x and one from y. The rationale is to enforce locality in the resulting overall distance. For the sake of presentation in the rest of the paper, we assume that the lengths and are both multiples of , so that x and y are conceptually partitioned into blocks, each of size for x and for y.
Definition 1
Given strings x of length m and y of length and integers and , the -blockwiseq-gram distance is defined as
2 |
Example 2
Following Example 1, let and , , and . Further let , and , be the two blocks of x and y, respectively. Table 2 shows the q-gram profiles of strings , , , and ; and the q-gram distance between and and the q-gram distance between and .
Table 2.
(a) | |
0 | |
0 | |
0 | |
0 | |
0 | |
1 | |
0 | |
1 | |
0 | |
0 | |
0 | |
0 | |
0 | |
0 | |
(b) | |
0 | |
0 | |
0 | |
0 | |
0 | |
0 | |
0 | |
0 | |
0 | |
0 | |
0 | |
1 | |
1 | |
0 | |
(c) | |
0 | |
0 | |
0 | |
0 | |
0 | |
1 | |
0 | |
1 | |
0 | |
0 | |
0 | |
1 | |
1 | |
0 | |
(d) | |
0 | |
0 | |
0 | |
0 | |
1 | |
0 | |
0 | |
0 | |
0 | |
0 | |
0 | |
1 | |
0 | |
0 | |
(e) | |
0 | |
1 | |
0 | |
0 | |
0 | |
0 | |
1 | |
0 | |
0 | |
0 | |
0 | |
0 | |
0 | |
0 | |
(f) | |
0 | |
1 | |
0 | |
0 | |
1 | |
0 | |
1 | |
0 | |
0 | |
0 | |
0 | |
1 | |
0 | |
0 |
In this paper, we consider the following problem, where we search for the ith rotation of x that minimizes its blockwise distance from y as defined in (2). Ties are broken arbitrarily.
Circular Sequence Comparison (CSC)
Input: strings x and y of lengths m and , respectively, and integers and
Output:i such that is minimal
Algorithms
We use the following result to first give a naïve solution to the CSC problem.
Lemma 1
[28] If we have space available, then theq-gram distance can be computed in time and extra space , where and .
We then apply Lemma 1 to each pair of blocks of x and y separately.
Lemma 2
If we have space available, then the-blockwiseq-gram distance can be computed in time and extra space , where and .
The naïve algorithm, denoted by nCSC, computes for the values
for all ; we report position i such that is minimal. This requires the application of Lemma 2, m times. Therefore, we obtain the following.
Lemma 3
If we have space available, then algorithm nCSC solves the CSC problem in time and extra space .
Algorithm hCSC: a Heuristic algorithm
Here we give a simple heuristic algorithm, denoted by hCSC, to solve the CSC problem faster than nCSC, and return an approximation of the best rotation.
Step 1: We split in non-overlapping string blocks of length . We obtain strings , such that , for all . We split y in non-overlapping string blocks of length . We obtain strings , such that , for all .
Step 2: For a given sequence of strings and y, we compute the -blockwise q-gram distance as follows
We compute , for all . We choose such that is minimal, for all . In other words, we have found a window of length m starting at position , such that , consisting of blocks of length each, that minimizes its -blockwise q-gram distance from y.
Step 3: To perform a refinement on the position of the window, we consider all starting positions included in the two blocks starting at positions and . This includes starting positions in total—we do not need to consider position as this was already considered by another window in Step 2. Similarly to Step 2, we obtain the -blockwise q-gram distance between the window starting at position i and y, for all . We report position such that is minimal, for all .
Analysis Step 1 can be done trivially in time . If we have space available, then, by Lemma 1, can be computed in time . By Lemma 2, can be computed in time . Hence, Step 2 can be done in time . In Step 3, the blockwise q-gram distance between a single window and y can be computed in time . There exist such windows. Hence, Step 3 can be done in time . Overall, the algorithm requires time and space .
For practical purposes, setting and gives an algorithm with time complexity and space complexity .
Algorithm saCSC: an exact suffix-array-based algorithm
The above heuristic hCSC does not guarantee to find the exact value i, for which is minimal. In particular, when we identify in Step 2, that is, the j for which is minimal, we take into account only the values of j such that . Thus, Step 3 cannot guarantee that , the local minimum obtained by shifting the window positions to the right and left of , is minimal for all . In this section, we give a fast and exact algorithm, denoted by saCSC, to find i such that is minimal, based on the suffix array (see "Definitions and properties" section).
We partially follow the idea from [37]. This work investigates the string matching problem in the setting of k-abelian equivalences: two strings are considered k-abelian equivalent for some positive integer k, if they have the same length and share the same factors of length at most k, including multiplicities. Note that if k is greater than or equal to the string’s length, then the strings must be equal. A version of this result, called extended k-abelian equivalence, focuses only on the factors of length k. By setting , it is quite straightforward to notice the equivalence with q-grams. Therefore, in order to avoid confusion we will refer to the former notion from now on as q-abelian equivalence.
In [37], the authors propose a linear-time algorithm to solve the string matching problem when looking at q-abelian equivalent strings: given a string x of length m, a string y of length , and a positive integer , all factors of y that are q-abelian equivalent to x can be found in time and space . The idea of the algorithm in [37] consists in constructing the suffix array of the string xy, and ranking sets of identical q-length prefixes of suffixes in the suffix array in the order of their appearance. Then it constructs new strings based on this ranking, and solves the problem as in the jumbled matching case [38], i.e. identifying all factors of y that have the same Parikh vector as x.
We first describe our algorithm for a single block () and then address the general case ().
Basic algorithm for. We construct the suffix array of the string xxy and assign a rank to the prefix with length q of each suffix with length at least q, based on its order in the suffix array. That is, the first suffixes, of length at least q, in the suffix array, all sharing the same prefix of length q, will get rank 0; the next suffixes, of length at least q, sharing the same prefix of length q, different from the previous one, will get rank 1, and so on. Next, based on this ranking, we construct two new strings of length and of length , such that , if j is the rank of the q-length prefix of the th suffix of xx in the suffix array of xxy (the same goes for y). It is not difficult to see that the ranks go up at most to value . However, we can reduce this value to by introducing two new ranks and : we can conceptually replace by every letter of that does not occur in , and by every letter of that does not occur in . Hence we can consider that the new strings and are defined over an integer alphabet of size at most.
Example 3
Let , , and . We denote xxy by z.
i | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
z[i] | G | A | G | T | C | T | A | G | A | G | T | C | T | A | T | C | T | A | G | C | G |
6 | 17 | 1 | 8 | 13 | 19 | 4 | 15 | 11 | 20 | 0 | 7 | 18 | 2 | 9 | 5 | 16 | 12 | 3 | 14 | 10 | |
0 | 2 | 2 | 6 | 1 | 0 | 1 | 4 | 3 | 0 | 1 | 7 | 1 | 1 | 5 | 0 | 3 | 2 | 1 | 5 | 4 | |
2 | 0 | 1 | 2 | 0 | |||||||||||||||||
2 | 0 | 1 |
Here, denotes that and denotes that does not occur in y.
We observe that when identifying the q-gram distance between two blocks, we can apply the idea in [37], with the only difference that we should also maintain a Parikh vector that stores the differences between the number of occurrences of q-grams (in fact the new letters given by the ranks) in the current block of xx and y. Moreover, at the time of the construction of , we also construct a Parikh vector , storing for each letter of , the number of its occurrences in . Notice that . Later on, when computing the q-gram distances, we can construct another vector to store the letter differences between and the Parikh vector covering the letters of associated with a window of length m on the string xx. This gives us the current Parikh difference and, in fact, represents the q-gram distance between the two analyzed blocks, where . Apart from these, we only need another vector of size m, which stores at each position i the actual q-gram distance between y and the window starting at position i in xx, which is the ith rotation of x.
We use a sliding window of length m to maintain the above information. When the window is shifted one position to the right, we have to add to the difference-vector the previous first element of the window, and deduct from it the current last element of it. The distance between and the factor of starting at position i is thus updated using, in addition, the value of the q-gram distance as follows. If, after adding the previous first element to the vector, we have a non-positive value at this position, we update the distance by decreasing the previous value by 1; otherwise, we increase it by 1. If, after deducting the current last element to the vector, we have a non-negative value at this position, we update the distance by decreasing the previous value by 1; otherwise, we increase it by 1. The distance will never be less than the number of occurrences of . Furthermore, if the previous first element was , the new distance decreases by 1, and for every newly added , it increases by 1. As these operations require constant time, after going once through with , we obtain the list of distances from y to each rotation in linear time.
We are now able to give a more formal description of the steps to solve the CSC problem for , which follow a dynamic programming scheme.
Step 1: Construct the SA, iSA, and LCP of xxy. Rank the q-length prefixes of suffixes using -array queries. Construct and , as well as , the Parikh vector storing, for each letter of , the number of its occurrences in ; making proper use of letters and , the ranks that do not occur in either or , respectively. Further, create and
Example 4
Following Example 3, let , , , and .
i | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
z[i] | G | A | G | T | C | T | A | G | A | G | T | C | T | A | T | C | T | A | G | C | G |
2 | 0 | 1 | 2 | 0 | |||||||||||||||||
2 | 0 | 1 |
The table below represents vector , right after the execution of Step 1, which implies that .
0 | |
2 | |
0 | 1 |
1 | 1 |
2 | 1 |
Step 2: Read the first letters of , which constitute our sliding window of length m on the string xx. When reading letter , update by decreasing by 1 the value of the newly read letter, and update , by either increasing the current value of the distance when there were read too many of the current letters, or decreasing it, when more of these letters still occur in
Example 5
Following Example 4, the table below represents vector , right after the execution of Step 2, which implies that .
3 | |
2 | |
0 | 0 |
1 | 1 |
2 | 0 |
Step 3: Let i be the current position in and repeat this step, one position at a time. Shift the window to the right, update the information for
and calculate , based on this information, sequentially applying the two following rules
Example 6
Following Example 5, the table below represents vector at iteration of Step 3, which implies that . This is in fact the best rotation of x, that is, .
2 | |
2 | |
0 | 0 |
1 | 0 |
2 | 0 |
Correctness Steps 1 and 2 are trivially correct as at the end of them we have that is the difference between and the vector corresponding to the window. These operations follow directly from the definitions of and , and are followed by a simple traversal of the suffix array in order to obtain the ranks and create the and vectors. Also, , which was initially the number of letters in , is decreasing as long as the difference between the vectors for a specific letter is non-negative (thus, we still have more occurrences of that letter in compared to the window), and increasing otherwise. In Step 3, we update the difference vector by increasing the value at position and decreasing that of the new letter added to the difference. The q-gram distance at that position is based on the values of the newly obtained difference vector, as well as the q-gram distance at the previous position: if , then obviously there were more letters in than in the window, thus we need to decrease, while, if , then there were at least as many letters in the window as in , and taking one out increases the distance. The complementary reasoning applies to the newly added letter . The value of never goes below the number of occurrences of in (it is equal to that, when all other elements of are 0) and represents the q-gram distance between y and , the corresponding window of length m starting at position i in xx.
Analysis In Step 1, constructing SA, iSA, and LCP of xxy can be done in time and extra space ("Definitions and properties" section). Furthermore, the construction of , , , , and is done with the same time and space cost. In Step 2, updating and after reading each letter takes constant time, as we execute two operations, thus in total. Constant time is required for each iteration in Step 3 to compute the value of , , and update , since a constant number of operations are executed, thus in total. Hence, we can solve the CSC problem for in time and space .
General algorithm for. We can now generalize this algorithm to solve the CSC problem for any , which gives algorithm saCSC. We maintain a Parikh vector for each block, and apply the above basic algorithm for the jth block in each string, computing their q-gram distance. If we denote by and , for all , the Parikh vectors of and of the q-gram distances, respectively, as well as by the q-gram distance between the jth block of y and , then the updates will be given by the formulae below. Hence, at each position , we can update all of the Parikh vectors corresponding to the blocks, as previously described, in time . As an example, see here the modification of the previous Step 3, with the other two steps being easily adapted in a similar fashion.
Step 3’: When shifting the window one position to the right from position i, update the information for every , where , as follows
and calculate , based on this information, sequentially applying the two following rules
Therefore, we obtain the following result.
Theorem 1
Algorithm s solves the CSC problem in aCSC time and space.
Implementation
We implemented algorithms nCSC, hCSC, and saCSC as the program CSC. Given one of the three methods, two sequences x and y in (Multi)FASTA format, the number of blocks, and the length q of the q-grams, CSC finds the rotation of x (or an approximation of it) that minimizes its -blockwise q-gram distance from y. The implementation is distributed under the GNU General Public License (GPL), and it is available freely at http://www.github.com/solonas13/csc.
For comparison purposes, we implemented a naïve algorithm that compares all rotations of x against y using the Needleman-Wunsch algorithm [39] with substitution matrices and affine gap penalty scores [40]; we denote this implementation by cNW. We also implemented the following heuristics. We first use the Smith-Waterman local alignment algorithm [41] to search for the best local alignment of x and y and then use a central match from this local alignment to anchor the global alignment (see also [11]); we denote this implementation by hSW.
Refining algorithm saCSC
The application of the -blockwise q-gram distance via algorithm saCSC suggests that an optimal or a close-to-optimal rotation of x can be found when compared to cNW. Due to the locality property offered by the newly introduced distance notion, it is reasonable to assume that the close-to-optimal rotation returned by saCSC may be refined via some quick heuristics that take into consideration the blocks at both ends.
Let be the close-to-optimal rotation of x returned by saCSC. We introduce a new input parameter , which defines the length L of the prefixes and suffixes of and y to be considered in the refinement as follows:
We take p block(s) of the prefix of , concatenate it with a string of equal length L comprised only of letter $, where , and concatenate that with p block(s) of the suffix of to form a new string of length 3L. We do the same with y to form a new string .
The refinement algorithm works by taking all rotations of and comparing their similarity to . Each rotation of is compared to excluding when a $ letter is found at index 0 of the rotation of . We measure the similarity between the strings for which equality between letters are positively valued; inequalities, insertions, and deletions are negatively valued; and comparisons involving $ are neither positively nor negatively valued. The goal of rotating serves to find the rotation that maximizes the similarity to and, to this end, we make use of the Needleman-Wunsch algorithm. The rotation of which results in the maximum score is chosen as the best rotation, and hence, the final rotation of x is computed based on this rotation of . Ties are broken arbitrarily. We denote this new algorithm, consisting of saCSC and the refinement stage, by saCSCr.
The application of the Needleman-Wunsch algorithm on strings of length 3L has a time complexity of . Considering all rotations of results in a time complexity of for the refinement step. Overall, saCSCr takes time .
Example 7
Consider the following pair of strings obtained from saCSC
and the following pair of strings formed for .
The Needleman-Wunsch algorithm for all rotations of and string gives the following optimal alignment
which tells us that a refined rotation is in fact , where
Experimental results
The following experiments were conducted on a desktop computer using one core of Intel® CoreTM i7-2600 CPU at 3.4GHz and 12GB of RAM under 64-bit GNU/Linux. All programs were compiled with gcc version 4.7.3. We used both synthetic data and real data. All input datasets referred to in this section are publicly maintained at the same web-site. First, in "Accuracy"–"Time performance" sections, we establish the quality (accuracy and performance) of our methods. Then, in "Application to synthetic data"–"Application to real data" sections, we show applications of our methods.
Accuracy
We began with simulating three DNA sequence datasets using INDELible [42], with each dataset consisting of 12 sequences (denoted by ), each of length approximately 2500 bp (denoted by ). INDELible produces linear sequences with substitutions, insertions, and deletions at rates defined by the user. Three unique substitution rates (denoted by ) were set, per dataset, using the substitution model JC69 (Jukes-Cantor, 69): 5, 20, and 35 %. The insertion and deletion rates were set, respectively, to 4 and 6 % (denoted by and ), relative to substitution rate of one, similar to those observed in MtDNA in primates and mammals [25]. We refer to these datasets as Original.
To allow for comparison of the performance of the algorithms in realigning randomly rotated sequences, which should be similar to those obtained from sequencing circular DNA structures, such as MtDNA, one random rotation was generated in each sequence in all datasets, creating new datasets which will be referred to as Random. Using the three Random datasets allowed us to test the accuracy of hCSC and saCSC; notice that nCSC and saCSC always return the same rotation. For each Random dataset, an all-against-all sequence comparison was performed. That is, all 66 possible pairs of sequences in each dataset were given as input to both hCSC and saCSC. was set to and q was set to . The resultant re-rotated sequences were aligned using EMBOSS Needle (default parameters) and the similarity scores were compared to those of the Original and Random datasets, which were input directly to EMBOSS Needle (default parameters). The results can be found in Fig. 1.
The results show that: (a) hCSC and saCSC yield significantly improved similarity scores compared to those obtained from giving Random datasets as input directly to EMBOSS Needle; and (b) hCSC and saCSC yield similarity scores that are identical or almost identical—notice that the black (Original), green (hCSC), and blue (nCSC/saCSC) points coincide—to those obtained from giving Original datasets as input directly to EMBOSS Needle. This implies that algorithms hCSC, nCSC, and saCSC return the rotation maximizing the similarity score for all pairwise comparisons.
Hence, we establish here that the introduced distance measure coupled with the respective algorithms consistently yield a very high accuracy, compared to the standard measure [17, 39, 40], for both low and high substitution rates.
Time performance
We then compared the time performance of the algorithms. Each algorithm was given a pair of randomly generated sequences starting from bp and doubling 8 times to a length of bp. It was expected that the slowest algorithm would be cNW which runs in time . Then it would be algorithm nCSC which runs in time , then algorithm hCSC, which runs in time , and lastly algorithm saCSC, which runs in time .
Initially, was set to and q was set to . The results in Fig. 2 demonstrate orders-of-magnitude superiority of saCSC compared to cNW and nCSC, confirming our theoretical findings. Algorithm hCSC is the second fastest. Although was set to , saCSC clearly outperforms hCSC, due to the use of a highly optimized implementation of the suffix-array construction [43], thus highlighting the importance of suitably implemented data structures such as suffix arrays.
Since the time complexities of hCSC and saCSC depend on , we repeated the same experiment with these two algorithms setting to and q to —notice that q does not affect the time efficiency of the algorithms. The results in Fig. 2 show that hCSC and saCSC are still the fastest, even though , and that saCSC is clearly the fastest of all. As expected for , we observe that hCSC and saCSC become gradually slower as m grows.
More algorithms could have been included in the comparison but their (at least) quadratic time complexity [22, 23] prevents them from competing with saCSC.
Application to synthetic data
For evaluating the proposed methods for circular sequence comparison in some relevant application, we also implemented the following pipeline for distance-based phylogenetic reconstruction of a dataset with N circular sequences.
For each pair (x, y) of the N sequences, we use one method for circular sequence comparison to compute the best rotation .
A similarity score for is then computed using EMBOSS Needle (default parameters) and stored in cell [x, y] of an similarity score matrix.
The similarity score matrix is transformed into a distance matrix by converting each score into a distance relative to the maximum score in the similarity score matrix.
Neighbour joining clustering is performed on the distance matrix, using NINJA [44], to produce a phylogenetic tree.
Phylogenetic trees were constructed by NINJA [44], for the aforementioned Random datasets, using output from the following algorithms: cNW (EMBOSS default parameters), hSW (see introduction of "Implementation" section, EMBOSS default parameters), and saCSCr (, , and ). Notice that, output from cNW should be the same as from EMBOSS Needle (default parameters) with the Original datasets as input. In terms of accuracy, the Robinson-Foulds (RF) distance metric [45, 46] was used to compare the three resultant phylogenetic trees with the tree resulting from EMBOSS Needle (default parameters) on the Original and Random datasets, denoted by NW(o) and NW(r), respectively. RF distance can be defined as the number of operations required to transform one tree in to another. If two isomorphic trees share the same labelling then they have an RF distance of 0. The results displayed in Table 3 clearly show that saCSCr and cNW produce the most accurate results with these nine datasets. As also shown in [11], hSW followed by EMBOSS Needle (default parameters) can often result in sub-optimal global alignments.
Table 3.
Dataset | NW(r) | cNW | hSW | saCSCr |
---|---|---|---|---|
<12, 2500, 0.05, 0.06, 0.04> | 16 | 0 | 0 | 0 |
<12, 2500, 0.20, 0.06, 0.04> | 12 | 0 | 0 | 0 |
<12, 2500, 0.35, 0.06, 0.04> | 4 | 0 | 0 | 0 |
<25, 2500, 0.05, 0.06, 0.04> | 44 | 0 | 0 | 0 |
<25, 2500, 0.20, 0.06, 0.04> | 24 | 0 | 0 | 0 |
<25, 2500, 0.35, 0.06, 0.04> | 16 | 0 | 0 | 0 |
<50, 2500, 0.05, 0.06, 0.04> | 86 | 0 | 6 | 0 |
<50, 2500, 0.20, 0.06, 0.04> | 84 | 0 | 0 | 0 |
<50, 2500, 0.35, 0.06, 0.04> | 56 | 0 | 0 | 0 |
The number of sequences in the dataset is denoted by ; denotes their lengths; denotes the substitution rate; and denote the relative insertion and deletion rates, respectively
In terms of time performance, the elapsed time required for each method to process each dataset was recorded and the results are displayed in Table 4. It is clear, from the results presented heretofore, that saCSCr outperforms all other algorithms by at least one order of magnitude.
Table 4.
Dataset | cNW | hSW | saCSCr |
---|---|---|---|
<12, 2500, 0.05, 0.06, 0.04> | 10,139.36 | 72.43 | 6.90 |
<12, 2500, 0.20, 0.06, 0.04> | 9888.84 | 80.91 | 6.57 |
<12, 2500, 0.35, 0.06, 0.04> | 10,052.33 | 80.16 | 6.28 |
<25, 2500, 0.05, 0.06, 0.04> | 46,311.85 | 369.02 | 27.61 |
<25, 2500, 0.20, 0.06, 0.04> | 46,230.07 | 375.41 | 28.92 |
<25, 2500, 0.35, 0.06, 0.04> | 46,289.99 | 400.30 | 30.44 |
<50, 2500, 0.05, 0.06, 0.04> | 122,165.95 | 1563.96 | 125.63 |
<50, 2500, 0.20, 0.06, 0.04> | 121,810.69 | 1617.89 | 123.12 |
<50, 2500, 0.35, 0.06, 0.04> | 120,679.32 | 1662.82 | 123.77 |
The number of sequences in the dataset is denoted by ; denotes their lengths; denotes the substitution rate; and denote the relative insertion and deletion rates, respectively
Application to real data
We have concluded thus far that using and results in a reasonable trade-off between running time and accuracy. In the following section, where necessary, we adopt these values and multiply or divide them by a constant factor (factor of two), depending on the length of the input sequences.
DNA sequences
Pairwise sequence comparison. As the input dataset, we used two real sequences from GenBank: human (NC_001807) and chimpanzee (NC_001643) MtDNA sequences. The MtDNA genome size for human is 16,571 bp and for chimpanzee is 16,554 bp. Their pairwise sequence alignment using EMBOSS Needle (default parameters) gives a similarity of . We used cNW (EMBOSS default parameters) to obtain the rotation of NC_001807 that maximizes its similarity score with NC_001643. This experiment took approximately 28 h and the resultant rotation 578 of NC_001807 improved the similarity score to . This result was then compared to those obtained from saCSC (equivalent to saCSCr with ) and saCSCr with varying parameters, displayed in Table 5.
Table 5.
q | p | Rotation | |
---|---|---|---|
5 | 50 | 0 | 566 |
5 | 50 | 1 | 578 |
5 | 0 | 567 | |
5 | 1 | 578 | |
5 | 0 | 583 | |
5 | 1 | 578 | |
5 | 0 | 566 | |
5 | 1 | 578 |
The convergence of the results after the additional step of refinement (see Table 5 in italics) demonstrates the convenience and necessity of saCSCr.
For clarity of presentation hereafter, instead of using , we denote by the length of the block chosen in algorithm saCSCr.
We repeated this experiment with the human and gorilla (NC_011120) MtDNA sequences. The MtDNA genome size for gorilla is 16,412 bp. Their pairwise sequence alignment using EMBOSS Needle (default parameters) gives a similarity of . After using saCSCr to rotate sequence NC_001807 (, , and ), EMBOSS Needle (default parameters) gave a significantly improved similarity of .
Finally, note that the experiments which used saCSC and saCSCr each took a fraction of a second to run.
Distance-based phylogenetic reconstruction Three datasets of 16 primate, 12 mammalian and 19 mixed mammalian and primate MtDNA sequences, of average length 16,500 bp, were obtained from GenBank. We followed the same pipeline as described in "Application to synthetic data" section. The RF distance between the trees produced by cNW (EMBOSS default parameters), and the trees produced by saCSCr (, , and ) followed by EMBOSS Needle (default parameters), was 0.
RNA sequences
Eighteen viroid sequences were obtained from RefSeq, a database of curated molecular biological sequences [47]. Their lengths and target hosts vary, ranging from 348 to 371 bp and infecting peppers and citrus fruits, respectively. We followed the same pipeline as described in "Application to synthetic data" section. The RF distance between the tree produced by cNW (EMBOSS default parameters), and the tree produced by saCSCr (, , and ) followed by EMBOSS Needle (default parameters), was 0.
Protein sequences
Linear, circularly-permuted protein sequences Eight sequences of proteins, of average length 950 amino acids, belonging to -glucosidase family [48] were obtained from the UniProt protein database [49]. We followed the same pipeline as described in "Application to synthetic data" section. The RF distance between the tree produced by cNW (EMBOSS default parameters), and the tree produced by saCSCr (, , and ) followed by EMBOSS Needle (default parameters), was 0.
Naturally-occurring circular proteins Ten bacteriocin protein sequences, of average length 20 amino acids, were obtained from Cybase [50], a database of cyclical protein sequences. We followed the same pipeline as described in "Application to synthetic data" section. The RF distance between the tree produced by cNW (EMBOSS default parameters), and the tree produced by saCSCr (, , and ) followed by EMBOSS Needle (default parameters), was 0.
Conclusions
In this paper, we introduced a new distance measure for sequence comparison based on q-grams, and showed how it can be applied effectively and computed efficiently for circular sequence comparison. The most efficient algorithm presented here, saCSC, solves our defined problem CSC, exactly. Extensive experimental results, using both real and synthetic data, show that it maintains an accuracy very competitive to the optimal obtained after considering all rotations of x against y naïvely using global alignments. We also showed that algorithm saCSCr can bridge the gap between the optimal solution and our approximation via an additional refinement step. Finally, the presented experimental study demonstrates orders-of-magnitude superiority of our approach in terms of runtime efficiency. Our immediate target is to implement algorithm saCSCr in BEAR [24], a state-of-the-art tool for improving multiple circular sequence alignment.
Authors’ contributions
RG, CSI, RM, NP, and SPP devised the algorithms. SPP, AR, and FV implemented the algorithms. AR and FV conducted the experiments. All authors contributed equally in writing up the manuscript. All authors read and approved the final manuscript.
Acknowledgements
The publication costs for this article were funded by the Open Access funding scheme of King's College London. RG and NP have been partially supported by the Italian Ministry of Education, Universities, and Research (MIUR) under PRIN 2012C4E3KT national research project AMANDA—Algorithmics for Massive and Networked Data, and by the University of Pisa under PRA 2015 project Computational Methods for Personalized Medicine. RM is supported by the P.R.I.M.E. programme of DAAD co-funded by BMBF and the EU’s 7th Framework Programme (#605728), and the Newton International Fellowship co-funded by the Royal Society and the British Academy. FV is supported by an EPSRC Grant (Doctoral Training Grant #EP/M506357/1).
Competing interests
The authors declare that they have no competing interests.
Contributor Information
Roberto Grossi, Email: grossi@di.unipi.it.
Costas S. Iliopoulos, Email: c.iliopoulos@kcl.ac.uk
Robert Mercas, Email: robert.mercas@kcl.ac.uk.
Nadia Pisanti, Email: pisanti@di.unipi.it.
Solon P. Pissis, Email: solon.pissis@kcl.ac.uk
Ahmad Retha, Email: ahmad.retha@kcl.ac.uk.
Fatima Vayani, Email: fatima.vayani@kcl.ac.uk.
References
- 1.Craik DJ, Allewell NM. Thematic minireview series on circular proteins. J Biol Chem. 2012;287(32):26999–27000. doi: 10.1074/jbc.R112.390344. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Helinski DR, Clewell DB. Circular DNA. Annu Rev Biochem. 1971;40:899–942. doi: 10.1146/annurev.bi.40.070171.004343. [DOI] [PubMed] [Google Scholar]
- 3.Del Castillo CS, Hikima JI, Jang HB, Nho SW, Jung TS, Wongtavatchai J, Kondo H, Hirono I, Takeyama H, Aoki T. Comparative sequence analysis of a multidrug-resistant plasmid from Aeromonas hydrophila. Antimicrob Agents Chemother. 2013;57:120–129. doi: 10.1128/AAC.01239-12. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Taanman JW. The mitochondrial genome: structure, transcription, translation and replication. Biochem Biophys Acta Bioenerg. 1999;1410(2):103–123. doi: 10.1016/S0005-2728(98)00161-3. [DOI] [PubMed] [Google Scholar]
- 5.Goios A, Pereira L, Bogue M, Macaulay V, Amorim A. mtDNA phylogeny and evolution of laboratory mouse strains. Genome Res. 2007;17(3):293–298. doi: 10.1101/gr.5941007. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Wang Z, Wu M. Phylogenomic reconstruction indicates mitochondrial ancestor was an energy parasite. PLoS One. 2014;10(9):e110685. doi: 10.1371/journal.pone.0110685. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Cohen S, Houben A, Segal D. Extrachromosomal circular DNA derived from tandemly repeated genomic sequences in plants. Plant J. 2008;53(6):1027–1034. doi: 10.1111/j.1365-313X.2007.03394.x. [DOI] [PubMed] [Google Scholar]
- 8.Kuttler F, Mai S. Formation of non-random extrachromosomal elements during development, differentiation and oncogenesis. Semin Cancer Biol. 2007;17:56–64. doi: 10.1016/j.semcancer.2006.10.007. [DOI] [PubMed] [Google Scholar]
- 9.Brodie R, Smith AJ, Roper RL, Tcherepanov V, Upton C. Base-by-base: single nucleotide-level analysis of whole viral genome alignments. BMC Bioinform. 2004;5:96. doi: 10.1186/1471-2105-5-96. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Bray N, Pachter L. MAVID: constrained ancestral alignment of multiple sequences. Genome Res. 2004;14(4):693–699. doi: 10.1101/gr.1960404. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Mosig A, Hofacker IL, Stadler PF. Comparative analysis of cyclic sequences: viroids and other small circular RNAs. GCB. 2006;83:93–102. [Google Scholar]
- 12.Kawai Y, Saito T, Kitazawa H, Itoh T. Gassericin A; an uncommon cyclic bacteriocin produced by Lactobacillus gasseri LA39 linked at N-and C-terminal ends. Biosci Biotech Biochem. 1998;62(12):2438–2440. doi: 10.1271/bbb.62.2438. [DOI] [PubMed] [Google Scholar]
- 13.Kemperman R, Kuipers A, Karsens H, Nauta A, Kuipers O, Kok J. Identification and characterization of two novel clostridial bacteriocins, circularin A and closticin 574. Appl Environ Microbiol. 2003;69(3):1589–1597. doi: 10.1128/AEM.69.3.1589-1597.2003. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Weiner J, Bornberg-Bauer E. Evolution of circular permutations in multidomain proteins. Mol Biol Evol. 2006;23(4):734–743. doi: 10.1093/molbev/msj091. [DOI] [PubMed] [Google Scholar]
- 15.Ponting CP, Russell RB. Swaposins: circular permutations within genes encoding saposin homologues. Trends Biochem Sci. 1995;20(5):179–180. doi: 10.1016/S0968-0004(00)89003-9. [DOI] [PubMed] [Google Scholar]
- 16.Benson DA, Karsch-Mizrachi I, Lipman DJ, Ostell J, Rapp BA, Wheeler DL. GenBank. Nucleic Acids Res. 2000;28:15–18. doi: 10.1093/nar/28.1.15. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Rice P, Longden I, Bleasby A. EMBOSS: the European molecular biology open software suite. Trends Genet. 2000;16(6):276–277. doi: 10.1016/S0168-9525(00)02024-2. [DOI] [PubMed] [Google Scholar]
- 18.Barton C, Iliopoulos CS, Pissis SP. Fast algorithms for approximate circular string matching. Algorithms Mol Biol. 2014;9:1–10. doi: 10.1186/1748-7188-9-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Barton C, Iliopoulos CS, Pissis SP. Language and automata theory and applications—9th international conference, LATA 2015, Proceedings. In: Dediu AH, Formenti E, Martin-Vide C, Truthe B, editors. Average-case optimal approximate circular string matching. Berlin: Springer; 2015. pp. 85–96. [Google Scholar]
- 20.Athar T, Barton C, Bland W, Gao J, Iliopoulos CS, Liu C, Pissis SP. Fast circular dictionary-matching algorithm. Math Struct Comput Sci. 2015;FirstView:1–14. doi: 10.1017/S0960129515000134. [DOI] [Google Scholar]
- 21.Maes M. On a cyclic string-to-string correction problem. IPL. 1990;35(2):73–78. doi: 10.1016/0020-0190(90)90109-B. [DOI] [Google Scholar]
- 22.Marzal A, Barrachina S. Speeding up the computation of the edit distance for cyclic strings. ICPR. 2000;2:891–894. [Google Scholar]
- 23.Bunke H, Buhler U. Applications of approximate string matching to 2D shape recognition. Pattern Recognit. 1993;26(12):1797–1812. doi: 10.1016/0031-3203(93)90177-X. [DOI] [Google Scholar]
- 24.Barton C, Iliopoulos CS, Kundu R, Pissis SP, Retha A, Vayani F. Proceedings of lecture notes in computer science. In: Bampis E, editor. Accurate and efficient methods to improve multiple circular sequence alignment. In experimental algorithms—14th international symposium, SEA. Berlin: Springer; 2015. pp. 247–258. [Google Scholar]
- 25.Fernandes F, Pereira L, Freitas AT. CSA: an efficient algorithm to improve circular DNA multiple alignment. BMC Bioinform. 2009;10:1–13. doi: 10.1186/1471-2105-10-230. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26.Lee T, Na JC, Park H, Park K, Sim JS. Finding consensus and optimal alignment of circular strings. Theor Comput Sci. 2013;468:92–101. doi: 10.1016/j.tcs.2012.11.018. [DOI] [Google Scholar]
- 27.Pisanti N, Giraud M, Peterlongo P. Filters and seeds approaches for fast homology searches in large datasets. In: Elloumi M, Zomaya AY, editors. Algorithms in computational molecular biology. Hoboken: Wiley; 2010. pp. 299–320. [Google Scholar]
- 28.Ukkonen E. Approximate string-matching with -grams and maximal matches. Theor Comput Sci. 1992;92:191–211. doi: 10.1016/0304-3975(92)90143-4. [DOI] [Google Scholar]
- 29.Burkhardt S, Crauser A, Ferragina P, Lenhof HP, Rivals E, Vingron M. -gram based database searching using a suffix array (QUASAR). In: RECOMB ’99 proceedings of the third annual international conference on Computational molecular biology. New York, NY: ACM; 1999. p. 77–83.
- 30.Rasmussen K, Stoye J, Myers E. Efficient -gram filters for finding all epsilon-matches over a given length. J Comput Biol. 2006;13(2):296–308. doi: 10.1089/cmb.2006.13.296. [DOI] [PubMed] [Google Scholar]
- 31.Peterlongo P, Sacomoto GA, do Lago AP, Pisanti N, Sagot MF. Lossless filter for multiple repeats with bounded edit distance. Algorithm Mol Biol. 2009;4:3. doi: 10.1186/1748-7188-4-3. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Peterlongo P, Pisanti N, Boyer F, do Lago AP, Sagot MF. Lossless filter for multiple repetitions with hamming distance. JDA. 2008;6(3):497–509. [Google Scholar]
- 33.Manber U, Myers EW. Suffix arrays: a new method for on-line string searches. SIAM J Comput. 1993;22(5):935–948. doi: 10.1137/0222058. [DOI] [Google Scholar]
- 34.Grossi R, Iliopoulos CS, Mercas R, Pisanti N, Pissis SP, Retha A, Vayani F. Circular sequence comparison with q-grams. In: Pop M, Touzet H, editors. Algorithms in bioinformatics—15th international workshop, WABI 2015, Atlanta, GA, USA, September 10–12, 2015, Proceedings. Berlin: Springer; 2015. pp. 203–216. [Google Scholar]
- 35.Crochemore M, Hancart C, Lecroq T. Algorithms on strings. New York: Cambridge University Press; 2007. [Google Scholar]
- 36.Fischer J. Inducing the LCP-Array. In: Dehne F, Iacono J, Sack J-R, editors. 12th WADS, Volume 6844 of LNCS. 2011. p. 374–85.
- 37.Ehlers T, Manea F, Mercaş R, Nowotka D. -Abelian pattern matching. In: Shur AM, Volkov MV, editors. 18th DLT, Volume 8633 of LNCS. 2014. p. 178–90.
- 38.Burcsi P, Cicalese F, Fici G, Lipták Z. Algorithms for jumbled pattern matching in strings. Int J Found Comput Sci. 2012;23(2):357–374. doi: 10.1142/S0129054112400175. [DOI] [Google Scholar]
- 39.Needleman SB, Wunsch CD. A general method applicable to the search for similarities in the amino acid sequence of two proteins. J Mol Biol. 1970;48(3):443–453. doi: 10.1016/0022-2836(70)90057-4. [DOI] [PubMed] [Google Scholar]
- 40.Gotoh O. An improved algorithm for matching biological sequences. J Mol Biol. 1982;162(3):705–708. doi: 10.1016/0022-2836(82)90398-9. [DOI] [PubMed] [Google Scholar]
- 41.Smith TF, Waterman MS. Identification of common molecular subsequences. J Mol Biol. 1981;147:195–197. doi: 10.1016/0022-2836(81)90087-5. [DOI] [PubMed] [Google Scholar]
- 42.Fletcher W, Yang Z. INDELible: a flexible simulator of biological sequence evolution. Mol Biol Evol. 2009;26(8):1879–1888. doi: 10.1093/molbev/msp098. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 43.Gog S, Beller T, Moffat A, Petri M. From theory to practice: plug and play with succinct data structures. In: Gudmundsson J, Katajainen J, editors. 13th international symposium on experimental algorithms, (SEA 2014). 2014. p. 326–37.
- 44.Wheeler TJ. Large-scale neighbor-joining with NINJA. In: Salzberg S, Warnow TJ, editors. Algorithms in bioinformatics, Springer; 2009. p. 375–89.
- 45.Robinson D, Foulds LR. Comparison of phylogenetic trees. Math Biosci. 1981;53:131–147. doi: 10.1016/0025-5564(81)90043-2. [DOI] [Google Scholar]
- 46.Sukumaran J, Holder MT. DendroPy: a python library for phylogenetic computing. Bioinformatics. 2010;26(12):1569–1571. doi: 10.1093/bioinformatics/btq228. [DOI] [PubMed] [Google Scholar]
- 47.Pruitt KD, Tatusova T, Maglott DR. NCBI reference sequences (RefSeq): a curated non-redundant sequence database of genomes, transcripts and proteins. Nucleic Acids Res. 2007;35(suppl 1):D61–D65. doi: 10.1093/nar/gkl842. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 48.Rojas A, Romeu A. A sequence analysis of the -glucosidase sub-family B. FEBS Lett. 1996;378:93–97. doi: 10.1016/0014-5793(95)01412-8. [DOI] [PubMed] [Google Scholar]
- 49.UniProt Consortium UniProt: a hub for protein information. Nucleic Acids Res. 2015;43(Database issue):D204–D212. doi: 10.1093/nar/gku989. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 50.Wang CK, Kaas Q, Chiche L, Craik DJ. CyBase: a database of cyclic protein sequences and structures, with applications in protein discovery and engineering. Nucleic Acids Res. 2008;36(suppl 1):D206–D210. doi: 10.1093/nar/gkm953. [DOI] [PMC free article] [PubMed] [Google Scholar]