Full text
Progressive alignment of genomic signals by multiple dynamic time warping Helena Skutkova a, n , Martin Vitek a,b , Karel Sedlar a , Ivo Provaznik a,b a Department of Biomedical Engineering, Brno University of Technology, Technicka 12, 616 00 Brno, Czech Republic b International Clinical Research Center –Center of Biomedical Engineering, St. Anne's University Hospital Brno, Pekarska 53, 656 91 Brno, Czech Republic HIGHLIGHTS We propose a new method for adapting the lengths of multiple genomic signals. The multiple signal alignment combines clustering and dynamic time warping. We proposed a correlation based modification of dynamic time warping. The correlation in sliding window evaluates the local homology. GRAPHICAL ABSTRACT article info Article history: Received 17 November 2014 Received in revised form 21 July 2015 Accepted 3 August 2015 Available online 20 August 2015 Keywords: Genomic signal processing Multiple alignment Correlation Phylogenetic tree Similarity distance abstract This paper presents the utilization of progressive alignment principle for positional adjustment of a set of genomic signals with different lengths. The new method of multiple alignment of signals based on dynamic time warping is tested for the purpose of evaluating the similarity of different length genes in phylogenetic studies. Two sets of phylogenetic markers were used to demonstrate the effectiveness of the evaluation of intraspecies and interspecies genetic variability. The part of the proposed method is modification of pairwise alignment of two signals by dynamic time warping with using correlation in a sliding window. The correlation based dynamic time warping allows more accurate alignment dependent on local homologies in sequences without the need of scoring matrix or evolutionary models, because mutual similarities of residues are included in the numerical code of signals. &2015 The Authors. Published by Elsevier Ltd. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/). 1. Introduction The growing volume of genomic data in public databases highlights the importance of discovering of more effective approaches to their processing. The utilization of signal processing tools for genomic data analyses forms a new sub-discipline of bioinformatics called genomic signal processing (Anastassiou, 2001). Through numerous special events and scientificmeetings(e.g.Wang et al., 2004; Kung et al., 2010; Dougherty et al., 2005; Braga-Neto et al., 2010)itwasdetermined that the genomic signal processing is not only an alternative approach but also plays a full-fledged role in analysis of genetic information. The main advantages of genomic signal processing consist of ability to detect and describe characteristic properties of genetic information which are invisible to the naked eye (Tao et al., 2013; Florquin et al., 2005; Song and Yan, 2012). The character based methods(4charactersfornucleotidesA,C,G,T)typicallyusethe analysis of only those point mutations which are visible. The computational demand of character based methods is another limitation in their application especially on a large amount of data. Here, we focus only on phylogenetic problems in bioinformatics. The growing number of whole genome records in databases is ideal for comprehensive Contents lists available at ScienceDirect journal homepage: www.elsevier.com/locate/yjtbi Journal of Theoretical Biology http://dx.doi.org/10.1016/j.jtbi.2015.08.007 0022-5193/&2015 The Authors. Published by Elsevier Ltd. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/). n Corresponding author. Tel.: þ420 541 146 659. E-mail addresses: [email protected].cz (H. Skutkova), [email protected].cz (M. Vitek), [email protected].cz (K. Sedlar), prov[email protected].cz (I. Provaznik). Journal of Theoretical Biology 385 (2015) 20–30
phylogenetic study leading to building the tree of life (Delsuc et al., 2005). The complexity of the character-based methods such as maximum likelihood method makes their utilization impossible for this purpose (Chor and Tuller, 2006). On the other hand, the distance based methods using pairwise distances for classification are computationally feasible, but the previous indispensable step consisting of multiple sequence alignment (MSA) again complicates the calculation (Montanola et al., 2013; Wang and Jiang, 1994). The phylogenetic analysis by genomic signal processing tools has two possible approaches. The first approach represented by “alignment-free”methods usually evaluates the pairwise distances based on difference of characteristic attributes (Vinga and Almeida, 2003). The characteristic attributes can be derived directly from the character sequences e.g. frequencies of words of a specificlengthasdinucleotides or triplets, commonly known as k-word or k-mer methods (Otu and Sayood, 2003; Deng et al., 2011; Kolekar et al., 2012; Yu, 2013; Wen et al., 2014). Alternatively, the alignment-free characteristic features can be extracted from signal or numerical representation of DNA by signal processing tools e.g. Fourier power spectrum or wavelet transform coefficients (Machadoetal.,2011;Yinetal.,2014;Hoang et al., 2015). Into the last category of alignment-free methods can be included Chaos Game Representation (CGR) techniques using chaos theory for representation of genetic code (Deschavanne et al., 1999; Almeida et al., 2001). Generally, the alignment-free methods allow reduction of long character sequences of DNA to short representative numerical vectors (or matrices) for similarity evaluation without need of alignment. This transformation is almost always degenerative; the original genetic information of DNA sequences is lost. The result similarity measure is only global; it does not evaluate the local homology and in some cases (e.g. CGR methods) a global measure of similarity is difficult to interpret. That is accomplished via the second approach represented by genomic signal classification methods. We start from the fact that the representation of DNA sequence by genomic signal is taxonomically specific(Cristea, 2003; Yao et al., 2008). The genomic signal represents sequence profile of changes of characteristic property depending on sequence position. The local homology in two or more sequences appears as a similar trend in their signals. The comparison of genomic signals based on local similarities requires the positional adjustment of similar segments. The similarity of signals with the same length (without the indels type of mutations) can be evaluated even without the alignment (Cristea and Tuduce, 2011; Cristea and IEEE, 2012). The majority of gene and especially genomesequencescontainsalarge number of indels. A suitable tool for signal length alignment (sequence alignment) is required. The classification of genomic signals using the dynamic time warping (DTW) pairwise alignment was introduced in Skutkova et al. (2013). The mentioned approach for DNA classification is based on multiple alignment of more than two sequences. This paper presents a multiple DTW (mDTW) substitute for MSA in signal form. The mDTW was designed for phylogenetic classification of genomic signals with different lengths. The applicability of mDTW for phylogenetic study and its correspondence with standard phylogenetic methods will be subject to testing. The mDTW itself does not provide better results or computational speed up, but redundancy of genetic information observed in genomic signal offers the possibility of signal decimation and thereby operational complexity reducing (Skutkova et al., 2013; Sedlar et al., 2014). 2. Methodology 2.1. Signal specification Although the main purpose of our new alignment technique is obvious from the title, the multiple DTW is also suitable for many other different applications besides genomic signal processing. Generally, the input data is set of 1D signals with different lengths requiring alignment. The same length allows the evaluation of mutual similarities e.g. phylogenetic analysis of genomic signals. The choice of cumulated phase (Cristea, 2002) as genomic signal representation used in further testing was implemented for its taxonomy specific features (Cristea, 2003; Skutkova et al., 2013). The main requirement for input signals is equidistant sampling of x-axis. The wide range of available numerical representations of DNA sequences is thus limited to graphical representation enabling the projection from multidimensional space (2D, 3D) to 1D, where the x-axis represents the position in DNA sequences and y-axis is some characteristic parameter changing in dependence on the sequence position. The alternative method for cumulated phase could be 1D projection of DNA “walk”curve (Berger et al., 2004), or nucleotide density curves (Maderankova and Provaznik, 2011). Outside the scope of genomic signals, most of waveforms (a curve showing the shape of a wave at a given time) fulfill requirements on the input data for the multiple DTW e.g. ECG, EEG, speech signal, etc. The time axis corresponds with the positional information in genomic signal. The signal parameters as length, size or amplitude influence the choice of parameters of multiple DTW as will be described below. 2.2. Multiple signal alignment Our proposed algorithm for multiple genomic signal alignment performs a similar role as multiple sequence alignment algorithms for biological sequence of symbols representing nucleotides or amino acids. For this reason, we were inspired by them. Like many present commercial software, the multiple DTW alignment of signals is based on a progressive alignment algorithm using hierarchical clustering (Feng and Doolittle, 1987). The algorithm function is shown by flowchart in Fig. 1. Prior a systematic description of the all blocks that compose multiple alignment process, the principle of pairwise alignment shall be clarified. The common dynamic time warping algorithm allowing length adaptation of two signals (Skutkova et al., 2013; Sakoe and Chiba, 1978) was modified for our purposes. The proposed modification involves evaluation of local similarities by correlation instead of distance calculation. 2.2.1. Correlation based dynamic time warping –cDTW The dynamic time warping is an algorithm of dynamic programming used to partial time shape matching of two signals. The basic principle consists of three main steps: calculation of table of local differences between each pair of signals samples; conversion of the local differences table to table of accumulated distances; searching for the best path through the table to obtain the optimal signal matching (Sakoe and Chiba, 1978). In our case, it is necessary to make two changes of this convention. The first one is formal, because the time series does not occur at genomic signals. The conversion consists of positional information coding in x-axis, instead of time variable. The second modification justifies labeling “cDTW”in the subchapter title and in the fifth block in Fig. 1. The calculation of local differences between samples from two signals is replaced by determining the correlation coefficients in a sliding window. This idea combines dynamic programing with k-tuple sequence alignment approach on which are based some alternative heuristic alignment methods as FASTA (Pearson, 1998) or BLAST (Altschul et al., 1997). These heuristic sequence alignment approaches are used for a rapid scanning of sequences to localize sequence patterns (words) with length k. These k-tuples are scored by a scoring matrix, the words with small scores are eliminated and remaining words are locally aligned. The similarity evaluation by H. Skutkova et al. / Journal of Theoretical Biology 385 (2015) 20–30 21
correlation in a sliding window is similar to scoring of k-tuples but subsequent utilization of local correlation coefficient to create the distance matrix for dynamic programing is different. The principle of this step is demonstrated in Fig. 2.Thesegmentof one signal with length wis sequentially shifted along the second signal. The shift of window walong the second signal is marked by symbol j. After the window reaches the end of the second signal, the selected window in the firstsignalisshiftedbyonesampleandthe whole process is repeated. The shift of window in the first signal is indexed by i. The Pearson correlation coefficient (corrcoef) c(i,j)is determined in each step for segments with the same length wfrom both signals addressed in table by i,jshift. The Pearson corrcoef is within the range 〈1; þ1〉, where the value 1 corresponds with maximum similarity. The conventional evaluation of similarity in matrix of local differences or accumulated distances assumes that the cost of similarity between two same signals is equal to zero. The normalization of corrcoef values c(i,j)toc N (i,j) is used for maintaining the principle of accumulated distances determination. The normalization is explained in Fig. 2B. The method of calculation of values in the table of accumulated distances D(i,j) was chosen with respect to the requirement for an extension of both signals with the same weight Di;jðÞ¼min Di1;jðÞþc N i;jðÞ Di1;j1ðÞþc N i;jðÞ Di;j1ðÞþc N i;jðÞ 8 > < > : ð1Þ Fig. 2C shows the different states of window moving along the signal. The variant C1 explains the treating of boundary conditions. The signal S 2 is extended by half-window length on both sides through repetition of the first or the last value of signal S 2 . The variant C1 shows the initial position of the window, where the shift of window jis equal to zero. The shift of window in Fig. 2C2 represents an ordinary case, where corrcoef between two segments from two signals with different trends and different positions iajis within the range cϵ〈1; þ1). The case where c¼1 is shown in Fig. 2C3, the positions i,jof selected segments are still not equal, but trends are the same. In common DTW method, the local similarities are evaluated as a difference of values on the y-axis (e.g. amplitudes of signals). So, the different size of both signals on y-axis causes failure to detect similarities in the trend. The similar trend of genomic signals represents the similarities in genetic code and the different size on y-axis can be caused by different lengths of both signals. The influence of different length on the size of signals can be removed by detrendisation (Skutkova et al., 2013), but this step can cause loss of genetic information. However, our modified cDTW method evaluates the local similarity by Pearson correlation coefficient which is not affected by different offset of both signals. The result of local similarities of signal segments in sliding window depends on choice of numerical map for conversion of DNA sequences to signal form and used metrics. The cumulated phase contains position specific information and also Pearson correlation coefficient depends on the order of elements in the vector. The conservation of positional information in chosen signal representation or similarity metrics is essential for the function of the algorithm. 2.2.2. Progressive alignment utilization The pairwise alignment of two signals by DTW requires finding the optimal path in 2D matrix of accumulated distances. The each additional signal causes an increase of matrix dimension. It is hard to imagine finding an optimal path in more than 3D space (for three signals). In addition, it is very computationally demanding – the order of growth is approximately O(n m ) for realization of mway alignment of length n. The heuristic approach, such as progressive alignment, allows to reduce the order of growth of computational complexity to O(mn 2 )(Wang and Jiang, 1994). This is accomplished by systematic repetition of hierarchical aligning of two signals according to the guide tree. The guide tree is the result of cluster analysis allowing sequential adjustment of signal pair from most similar to more distant. The Neighbor-Joining (NJ) method (Saitou and Nei, 1987) was chosen for construction of the guide tree by the example of CLUSTAL series algorithms (Chenna et al., 2003; Larkin et al., 2007). The adequacy of the choice of NJ guide tree is justified by the evolutionary correctness against the common cluster analysis methods (e.g. UPGMA). The respecting of least squares principle provides a minimum number of length adaptations for length integrity achievement (Bryant et al., 2007; Mihaescu et al., 2009). The construction of the guide tree (3rd block in Fig. 1) depends on the previous calculation of the distance matrix (2nd block in Fig. 1). The signal cross-correlation (xcorr) was chosen for the similarity degree evaluation between two waveforms with different lengths. The alternative approach requiring pairwise alignment of all pairs of signals with subsequent similarity determining (e.g. by Euclidean distance metric) was computationally too demanding. A similar alignment solution in a symbolic sequence could be performed by a gapless pairwise local alignment (Karlin and Altschul, 1993). Whereas the calculation of similarity between signals for a guide tree construction is only approximate, the massive decimation of signal representations of long sequences (e.g. whole genomes) can be advantageous before the calculation of cross-correlations. The output of the cross-correlation is a Multiple DTW Input signals Pairwise cross-correlation Calculate distance matrix NJ „guide tree“ construction Select 2 neighbor (remaining) signals (clusters) Alignment of 2 neighbor signals cDTW Replacing 2 neighbor signals by average signal Re-alignment of clusters content More than 1 signal? Signals aligned on the same length yes no Fig. 1. Flowchart of multiple DTW. H. Skutkova et al. / Journal of Theoretical Biology 385 (2015) 20–3022
cross-correlation signal (vector) R 12 with length 2N1, where Nis a length of the longest signal. The peak of xcorr signal corresponds to the position of the best match of mutually shifted signals. This maximum xcorr value was used as a similarity measure of two signals in distance table. The xcorr signal was normalized in order to eliminate the influence of different size (amplitude) of signals. The normalized value of the peak of xcorr signal r 12NORM is hereafter referred as the xcorrcoef. The normalization of xcorr signal was realized by dividing by the normalization coefficient n 12 , so the auto-correlations at zero lag are identically 1.0. R 12 ðmÞ¼ X Nm1 i¼0 S 1 ðiþmÞUS 2 ðiÞmZ0 R 21 ðmÞmo0 8 > > < > > : ; n 12 ¼ffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi X N i¼0 S 1 ðiÞ UX M j¼0 S 2 ðjÞ v u u t; r 12NORM ¼1 n 12 maxðR 12 Þ;ð2Þ The S 1 and S 2 are vectors of values representing both signals with length Nand Mrespectively and mis mutual shift of both signals. Before placing the values to the distance matrix for construction NJ guide tree, it is necessary to flip the range of values of xcorrcoef, so the maximum similarity of two signals is equal 0, as in the case of corrcoef for cDTW. Fig. 3 demonstrates how the individual steps of progressive alignment adjust lengths of individual signals. At first, we have four signals (S 1 –S 4 ) with different lengths. The distance matrix and NJ guide tree were determined (Fig. 3A–I step). According to the gray marked guide tree, the first selected neighbors (4th block in Fig. 1) are signals S 3 and S 4 . The stage Fig. 3B–I shows the neighbor signals S 3 and S 4 aligned to the same length by pairwise cDTW and hereafter referred as S 3a and S 4a (a¼aligned). The other two signals are left unchanged in the first step. The distance matrix and the guide tree are reduced by one, the average signal S 34 is determined from signals S 3a and S 4a (Fig. 3A–II step). The average signal is equivalent to the sequence consensus, but two signal values are more feasible to average than two symbols (e.g. nucleotide symbols A, C, G and T). The utilization of average signal position 100 200 w i position 100 200 position 100 200 j 01....L 2 0 1 : : L 1 position 100 200 0 0 0 j = 0 CN= ez is 0 ij L1 L2 S1 S2 w … window size i … offset of selected window in S1 i[0,L ]1 c ez is ez i s ezis j … offset of selected window in S2 j [0,L ] 2 Fig. 2. The principle of cDTW determination: (A) Two signals S 1 and S 2 with different lengths L 1 and L 2 respectively. The selected segment from S 1 specified by length wand shift iis marked with a dotted line. (B) Table of normalization correlation coefficient c N and equations for their calculation. (C) The principle of shifting the window with selected segment from signal S 1 along the signal S 2 : (1) The boundary conditions solution; (2) Symbol jlabels a general shift of window along signal S 2 . Two selected segments marked by dotted lines are correlated. (3) The correlation between corresponding segments of genomic signals. S1 S2 S3 S4 S3a S4a S1 S2 S1 S2 S34 S1a S2a S3a S4a S12 S34 S12a S34a I. II. III. S1234 (IV.) S1f S2f S3f S4 f S1ra S2ra S3ra S4ra result: Fig. 3. The principle of mDTW determination: (A) A progressive alignment procedure using hierarchical clustering. (B) The development of signals length in each step of progressive alignment. I–IV represent the steps in progressive alignment. Symbols: a –aligned signals, ra –re-aligned signals, f –the final form of the signals. H. Skutkova et al. / Journal of Theoretical Biology 385 (2015) 20–30 23
does not cause distortion there, because the average signal of two previous aligned signals serves only as an auxiliary vector in clustering process. The average genetic information from them is not transmitted to next results. The second nearest neighbors S 1 and S 2 are aligned in second step and the average signal S 12 is determined just as in the first step. Now, we have two pairs of signals with the same length within the couple, but mutually different (Fig. 3B–II step). This fact respects the last cluster of guide tree containing two average signals S 12 and S 34 (Fig. 3A–III step). After next application of cDTW we obtain aligned signals S 12a and S 34a . The final alignment of all four input signals is achieved through realignment process (ra) according to optimal path from cDTW of S 12a and S 34a alignment. In this particular case, the signal insertion was placed only in S 34a , consequently the same insertion was placed on the same position in the signals S 3 and S 4. Generally, the cluster content re-alignment block in Fig. 1 again performs alignment of signals previously aligned separately. The signal at lower levels in the cluster will be aligned multiple times, on the other hand, the signals represented by a separated external branch in the guide tree only once. The described four blocks (4th– 7th blocks in Fig. 1) realize the cycle of progressive alignment terminated by 8th decision block. This corresponds to Fig. 3A–IV step, the last average signal S 1234 does not require length adjustment to some other signal and the cycle is thus terminated. The result four signals (S 1f –S 4f ) have the same length longer than any original, but this is not implicit. The final length of all signals must be equal or greater than maximal length of original signals. 3. Results and discussion The results from testing of proposed multiple DTW algorithm are problematically displayable and comparable with MSA. The genomic signal alignment is suitable especially for long DNA sequences, but on such a large scale the alignment of symbolic form of DNA sequences becomes unreadable. The interpretation of results of proposed method will be presented on the particular application. The phylogenetic analysis is one of the most affected methods by wrong multiple sequence alignment. The classification of mutual similarity of properly aligned genomic signals will be compared with the results of phylogenetic analysis of symbolic sequences multiple alignment. 3.1. Test data sets The standard phylogenetic markers 18S rRNA, 16S rRNA were selected for this purpose (Hillis and Dixon, 1991; Field et al., 1988). The already compiled data sets from regular phylogenetic studies were used for proper evaluation of proposed method. The first set consisting of 40 tetrapod 18S ribosomal RNA gene represents problematic alignment even for MSA in symbolic form (Xia et al., 2003). The second set was chosen for verifying the ability of the method to separate sequences of the same species. The 42 sequences of 16S rRNA genes from 6 primate species (family Hominidae) were tested for this purpose (Noda et al., 2001). The particular sequences names and their identifiers will be shown in result figures of phylogenetic trees. The third dataset used in this paper was compiled to demonstrate the effectiveness of the proposed method for analysis of whole genome similarity. Fourteen whole genomes of bacteria from Firmicutes phylum were selected with regard to the possibility of evaluating taxonomy at class, family and species level. Their list and taxonomy classification is shown in Table 1. The process of phylogenetic analysis of DNA sequences in the form of genomic signals is shown in Fig. 4. There is apparent division of block diagram in two major parts: genomic signal processing and genomic signal classification. Table 1 List of used bacterial genomes. NCBI ID Species Length [bp] Class Order Genus NC_020272 Bacillus amyloliquefaciens IT-45 3 928 857 Bacilli Bacillales Bacillus NC_019896 Bacillus subtilis str. BSP1 4 043 754 Bacilli Bacillales Bacillus NC_020244 Bacillus subtilis XF-1 4061186 Bacilli Bacillales Bacillus NC_015687 Clostridium acetobutylicum DSM 1731 3 942 462 Clostridia Clostridiales Clostridium NC_017174 Clostridium difficile M120 4 308 325 Clostridia Clostridiales Peptoclostridium NC_017175 Clostridium difficile M68 4047729 Clostridia Clostridiales Peptoclostridium NC_007622 Staphylococcus aureus RF122 2 742 531 Bacilli Bacillales Staphylococcus NC_007623 Staphylococcus aureus VC40 2 692 570 Bacilli Bacillales Staphylococcus NC_007168 Staphylococcus haemolyticus JCSC1435 2 685 015 Bacilli Bacillales Staphylococcus NC_008533 Streptococcus pneumoniae D39 2 046 115 Bacilli Lactobacillales Streptococcus NC_017591 Streptococcus pneumoniae INV104 2 142 122 Bacilli Lactobacillales Streptococcus NC_017592 Streptococcus pneumoniae OXC141 2 036 867 Bacilli Lactobacillales Streptococcus NC_003098 Streptococcus pneumoniae R6 2 038 615 Bacilli Lactobacillales Streptococcus NC_008533 Thermoanaerobacterium thermosaccharolyticum DSM 571 2 785 752 Clostridia Thermoanaerobacterales Thermoanaerobacterium H. Skutkova et al. / Journal of Theoretical Biology 385 (2015) 20–3024
3.2. Genomic signal processing The first super-block of genomic signal processing tools includes also the block of multiple DTW. The other three blocks form the pre-processing part differing according to the particular application. The choice of cumulated phase for conversion from symbolic representation of DNA to genomic signal was explained in Section 2.1. The numerical map for conversion to complex space is defined by complex coordinates: A [1,j]; C [1, j];G[1,j]; T [1,j]. The different type of complex mapping provides the same results of signal alignment, but taxonomy specific trend of chosen map makes it advantageous for the subsequent phylogenetic analysis (Cristea, 2003). The trend of cumulated phase is evaluated as cumulative sum of phase component of complex coordinate of symbol in DNA sequence. The dashed line marked blocks are optional. Their application is preferable especially for very long sequences as whole genome or chromosome. The signal decimation block, as its name suggests, realizes reduction of input signal size by downsampling. This step causes the loss of information at high frequencies, but frequency analysis of genomic signals proved that the major part of signal information is found on lower frequencies. Despite the loss of genetic information, the remaining information in genomic signals after downsampling allows to classify species based on whole genome sequences, which is hardly possible in normal situations. Genomic signal representation is characterized by taxonomic features in a large scale (whole genomes) but also in partial segments (genes, CDS). However, the large scale trend complicates the recognition of local similarities, which is necessary for the signal alignment by standard DTW. The problem of large scale detrending can be easily solved, but distinguishing the large and the small scale trend is not trivial. The large scale detrendisation can cause loss of information about the local similarities in some cases. The cDTW utilization in mDTW allows aligning of signals without detrendisation, but still the very different trends of two signals limit the range of values for selection of window length w. The detrendisation allows us to use a smaller window with a smaller overlap, which reduces the computational demands. The utilizations of detrendisation and decimation blocks were already discussed in Skutkova et al. (2013) and Sedlar et al. (2014), so there are mentioned only marginally. The genes selected for testing and comparison with the usual phylogenetic method do not require their application. 3.2.1. The DTW modifications comparison The DTW methods align local segments of signals based on local distances between values of signals (phase on y-axis for cumulated phase variant) on each position. The alignment of genomic signals requires adjustment of local similarities in trends of signals, because the similar trends represent the homology in DNA sequence. The insertion/deletion mutation type causes different size of local trends due to calculation process of cumulated phase, though the shape remains the same. The cDTW modification successfully solves this problem. Fig. 5 shows an alignment of two genomic signals by different modifications of DTW. The original signals are presented in Fig. 5A. The longer of both signals (18S rRNA human gene, K03432) contains in a comparison with the shorter one (18S rRNA rat gene, K01593) two considerable insertions at the beginning and at the end of the sequence. Although the middle parts of the signals have a practically the same shape, the different size of their values is evident. The application of classic DTW algorithm for length adaptation of shorter signal to longer (Fig. 5B) one failed in this case. Even common variant of DTW is adapting the length of both signals mutually (Fig. 5C), but this approach is still based on local differences between values which cannot estimate the insertion at the start and at the end of human signal. The best estimate of both insertions was performed by cDTW modification (Fig. 5C). The values of adjusted signals in Fig. 5B and C are more consistent but DTW causes distortion by adjustment of signals positions that do not correspond to each other. 3.2.2. The mDTW and multiple sequence alignment The result of mDTW applied to 40 genomic signals of 18S rRNA is shown in Fig. 6B.Themultiplesequencealignmentofthesamesetof sequences realized by Clustal W2 algorithm (online tool with default settings available on website http://www.ebi.ac.uk/Tools/msa/clus N input sequences Conversion to N signal representations Signals decimation Calculate distance matrix N x N Multiple DTW Detrendisation Phylogenetic tree construction Genomic signal processing Genomic signal classification Fig. 4. The block diagram of phylogenetic analysis of genomic signals. -150 -100 -50 0 50 100 signal1 signal2 500 1000 1500 2000 -1 1-150 -100 -50 0 50 100 150 signal1 signal2 500 1000 1500 2000 -1 1 -150 -100 -50 0 50 100 150 signal1 signal2 1000 2000 3000 -1 1 -150 -100 -50 0 50 100 150 signal1 signal2 500 1000 1500 2000 -1 1 sequence position (bp) corrcoef phase (rad) Fig. 5. The comparison of genomic signals alignment results by different DTW modifications: (A) Two original genomic signals of 18S rRNA genes from human (signal 1, longer) and rat (signal 2, shorter). (B) The genomic signals aligned by classic DTW method, the shorter signal is adapted to the longer one based on differences between the local values. (C) The genomic signals aligned by classic DTW method, both signals are mutually adapted based on differences between the local values. (D) The genomic signals aligned by cDTW method, both signals are mutually adapted based on correlation coefficients evaluated in a sliding window. The bottom figures –the similarity of genomic signals evaluated by correlation coefficients. H. Skutkova et al. / Journal of Theoretical Biology 385 (2015) 20–30 25
talw2/) was evaluated for comparison (Fig. 6A). The indels segments represented by scoring gaps (—) in sequence form are represented by linear segments without a change of value in signal form. The advantage of using cumulated phase representation is that this signal form does not contain segments without phase changes. The aligned signals can be still re-converted to symbolic representation, where the plateaus are substitutable by gaps. The segment containing the greatest consensus in signal form on positions 136–2145 bp in aligned signals corresponds with mutual segment of DNA sequences selected on positions 139–2144 bp. The segment in symbolic representation of multiple alignment was selected by sequence consensus. The corresponding segment in signal alignment was found by similarity measure in Fig. 6C, evaluated as the average corrcoef in a floating window. 3.3. Genomic signals classification The BIONJ method (Gascuel, 1997) for evaluation of phylogenetic relationship based on genomic signal similarity was chosen. The character based methods as maximum parsimony or maximum likelihood included in above mentioned phylogenetic studies are not applicable on signal data. The BIONJ is sufficiently precise and fast alternative of distance based methods, but phylogeny accuracy of result depend on similarity measure used as evolutionary distance in phylogenetic tree. The similarity analysis of genomic signals requires designing appropriate measure. The standard bootstrapping statistic test was used for evaluation of phylogenetic tree. Both results of phylogenetic analysis in Figs. 8 and 9 have marked bootstrap support values evaluated by 100 pseudo-replications. 3.3.1. The similarity measure of two aligned signals The many distance metrics was described for the evaluation of similarity of two signals in signal processing (e.g. Euclidean distance, Cosine distance, City block distance). Most of them can be used for signals similarity classification, but the result scale of phylogenetic tree does not correspond to evolutionary measure. The bottom images in Fig. 5 or in Fig. 6C show a similarity degree between signals evaluated based on position. However, the pairwise similarity between two aligned signals must be evaluated by a single number. The similarity metric as proportional distance for genomic signals is necessary to additionally define. The calculation is based on the sum of the differences of two signals; in the case of cumulated phase representation it is a phase difference. Fig. 7A shows the dependence of phase difference between two signals on the sequence position. The gradual increase of the value of phase difference corresponds with the point mutations occurrence. The position of point mutations is evaluated by using derivation function of phase difference signal. The number of point mutations relative to the length of signals represents the proportional distance as it is usual for describing of symbolic sequences of DNA. The proportional distance can be weighted by size of local differences between signals in point mutations positions as shown in Fig. 7B. The proportional distances determined as pairwise distances of all pairs of genomic signals can be composed to distance matrix (6th block in Fig. 4) and utilized for phylogenetic analyses. This modification is not appropriate for some evolutionary processes, but it allows enhancing the resolution of species within clusters where it is necessary. 3.3.2. Tetrapod phylogeny based on 18S rRNA The similarity of aligned signals from Fig. 6B was evaluated by proposed pairwise proportional distance metric without weighting. TheresultphylogenetictreeisshowninFig. 8.Thebasicdivisionisto 200 400 600 800 1000 1200 1400 1600 1800 2000 2200 -100 0 100 200 400 600 800 1000 1200 1400 1600 1800 2000 2200 0 1 1 sequence (signal) position ( bp ) sequences phase (rad ) corrcoeff mutual segment of genomic signals: 136 – 2145 bp mutual segment of DNA sequences: 139 – 2144 bp 2358 Fig. 6. The comparison of multiple alignment of genomic signals and symbolic DNA sequences of 40 tetrapod genes of 18S rRNA: (A) The illustration of the result of multiple sequence alignment realized by CLUSTAL W2 algorithm. (B) The result of multiple alignment of genomic signals realized by mDTW. (C) The mutual similarity of aligned signals evaluated by average correlation coefficients. 200 250 300 350 -40 -20 0 sequence position ( bp) 400 800 1200 1600 2000 0 100 400 800 1200 1600 2000 0 20 40 X06778 Oryctolagus cuniculus M10098 Homo sapiens Weighting point differences Phasedifference Point mutations sequence position(bp) phase ( rad ) cumulated phase ( rad ) Fig. 7. Point mutation detection between two aligned genomic signals: (A) Phase difference is determined between two genomic signals represented by cumulated phase. Point mutations are absolute value of derivation of phase difference signal. (B) The column height of point mutations is weighted by local difference between signals bottom –the detail of segment between 200–350 bp. H. Skutkova et al. / Journal of Theoretical Biology 385 (2015) 20–3026
mammals, birds, reptiles, amphibians and one representative fish – Latimeria chalumnae. The inaccuracy in assignment of Latimeria close to amphibians cluster is caused by midpoint rooted method ensuring the tree integrity. The complication in alignment of 18S rRNA sequences lies in the different length of mammalian and avian – reptilian genes. The previous phylogenetic studies preferred the cutting off indels segments at the beginning and the end of mammalian sequences in multi-alignment process. Then, the phylogenetic analysis is due to the similarity of nucleotide frequencies between mammalian and avian sequences (GC content) susceptible to assignment of the birds closer to mammals than to reptiles (Huelsenbeck et al., 1996; Bernardi, 1993). So, the alignment-free methods for organisms classification based on characteristic nucleotide frequencies (Otu and Sayood, 2003; Yu, 2013; Kolekar et al., 2012)maybeaffected the same. The phylogenetic analysis of signals aligned based on mDTW correctly classifies the reptiles and the birds to each other before the mammals, because the similarity depends on the similar trend not the similar frequencies. The two reptiles are incorrectly assigned to one cluster, despite the current vertebrate taxonomy nomenclature (Meyer and Zardoya, 2003; Federhen, 2012)recognizing Alligator mississippiensis as a relative closer to Aves.Thisdivisionis caused by insufficient genetic variability in data sets of 18S rRNA for their separation to individual clusters and is consistent with the Xia et al. (2003). The NJ based methods often group together one of the threeratsequenceswiththemousesequences(Bruno et al., 2000), but the proportional distances of genomic signals allow the correct classification. The two records of rat sequences (K01593, X01117) evaluated as the closest in the tree are unified in NCBI database at present. It is interesting that the record X82564 of mouse gene from reference phylogenetic study is described as 45S pre rRNA gene in public database and has length 22 118 bp. The segment from this gene corresponding with other mouse 18S rRNA genes was selected by BLAST and used for our testing. The selected fragment had the specific trend in genomic signal common to 18S rRNA genes and was correctly assigned to the cluster with other rodents. The internal division of avian cluster does not correspond to the conventional taxonomy of birds. The six avian species (AF173612 Gallus gallus,AF173614Anas platyrhynchos,AF173610Dromaius novaehollandiae, AF173609 Apteryx australis,AF173611Coturnix pectoralis, AF173613 Ortalis guttata)aresignificantly separated from other 18 speciesasinXia et al. (2003). The remaining 18 bird species are almost indistinguishable by conventional phylogenetic methods; their genetic variability consists of maximum 8 point mutations on 1.8 kbp. The 18S rRNA is not suitable for estimation of aves interspecies relationships. Fig. 8 shows that the proportional distance between avian species estimated from the genomic signal representation of 18S rRNA genes allows increase of their resolution within cluster. However, even there the increase of the differences between the species is not caused by contained genetic information, but due to the choice of computational window. The further adjustment of parameters as weight, window length or window shift would result to adding variability to classification process which does not correspond with the real genetic variability. 3.3.3. The ability to distinguish the same species The 16S rRNA mitochondrion gene is known as a suitable phylogenetic marker able to distinguish even very close species (Galtier et al., 2009). The advantage of 16S rRNA as phylogenetic marker is presence of genetic variability in indels mutations not only in substitutions. The range of length of hominoid's genes in our study is between 1537–1715 bp. The difference of lengths almost 200 bp for such close species is appreciable and their phylogenetic analysis requires responsive tool for length adjustment. Fig. 9 shows the phylogeny reconstruction based on aligned genomic signal representations of 16S rRNA genes. The relationship of 6 great apes species was evaluated correctly (Prado-Martinez et al., 2013; Noda et al., 2001) with 100% bootstrap support. The weighted proportional distance of genomic signals was used for differentiation of several different L11288 Latimeria chalumnae AJ279506 Ranodon sibiricus X02995 Xenopus laevis X04025 Xenopus laevis AF115860 Sphenodon punctatus AF173605 Alligator mississippiensis AF173612 Gallus gallus AF173610 Dromaius novaehollandiae AF173609 Apteryx australis AF173611 Coturnix pectoralis AF173614 Anas platyrhynchos AF173613 Ortalis guttata AF173627 Upupa epops AF173624 Galbula pastazae AF173617 Urocolius macrourus AF173615 Picoides pubescens AF173637 Larus glaucoides AF173628 Cuculus pallidus AF173638 Charadrius semipalmatus AF173632 Grus canadensis AF173616 Tyrannus tyrannus AF173618 Musophaga porphyreolopha AF173631 Turnix sylvatica AF173625 Coracias caudata AF173622 Chordeiles acutipennis AF173619 Apus affinus AF173623 Trogon collaris AF173636 Ciconia nigra AF173630 Columba livia AF173626 Tockus nasutus X01117 Rattus norvegicus K01593 Rattus norvegicus X00686 Mus musculus X82564 Mus musculus M11188 Rattus norvegicus K03432 Homo sapiens M10098 Homo sapiens SU13369 Homo sapiens X03205 Homo sapiens X06778 Oryctolagus cuniculus 0.2 birds Aves) mammals (Mammalia) ‘reptiles’ (Reptilia) fish (Sarcopterygii) amphibians (Amphibia) 100% 100% 100% 67% 42% 100% 100% 100% 100% 92% Fig. 8. The tetrapod phylogeny evaluated from the differences between aligned genomic signal representations of 18S rRNA genes. 10945314 10945315 10945310 10945307 10945313 10945311 10945306 10945308 10945309 10945305 14588668 10945303 10945304 10945302 14588663, #66, #67 14588664, #65 KC 417443, FJ748731, #36, #49, #56, #57 HQ260949, HM156692, #93, #95, #96 HM156694 HM156691 AF346976 AF346969 10945297 14669866 14669860,#61,#62, 14669864 14669863 14669865 10945301 14669859 10945299 10945298, #300 14279000, #02, #03, #07 14279011, #14, #16 14279009 14279013 14279006 14279001, #15 14279012 14279010 14278999, #9004 14279005, #08 0.02 Pongo abelii Pongo pygmaeus orangutan (Pongo) human (Homo) gorilla (Gorilla) chimpanzee (Pan)Pan troglodytes Pan paniscus 100% 100% 100% 93% 99% 100% 100% 100% 96% Fig. 9. The hominoid phylogeny evaluated from the differences between aligned genomic signal representations of 16S rRNA genes. H. Skutkova et al. / Journal of Theoretical Biology 385 (2015) 20–30 27
records from each species. The scale of weighted distance is influenced by size of cumulative phase, so result values can reach enormous size (e.g. millions of radians for whole genome). The normalization as in thecaseofcorrcoef(2) was used for approximation on conventional values. The bootstrap support decreases slightly within clusters of some species. This fact is noticeable especially for the “youngest” species human and chimpanzees. The diversity of primary structure of these records within species is smaller than for the others. We deliberately added, in comparison with the original study, several other records for human 16S rRNA genes. It is obvious, that these recordshavepracticallythesameprimarystructuresandweightingof the proportional distances correctly did not add any extra information about genetic diversity. 3.3.4. The mDTW parameters settings As in the case of multiple sequence alignment the accuracy of the result of mDTW depends on the appropriately selected alignment parameters. Advantage against to MSA is that the mDTW does not require the scoring matrix for weighting of substitution cost. Since, in numerical representation each sequence symbol has a specific numerical value characteristic according to its chemical properties, the substitution score is given by difference of values which represent two substituted symbols. Analogy to gaps penalties in MSA are weights of tree possible directions in calculation of table of accumulated distances (3). Di;jðÞ¼min Di1;jðÞþv w c N i;jðÞ Di1;j1ðÞþd w c N i;jðÞ Di;j1ðÞþh w c N i;jðÞ 8 > < > : ;ð3Þ The choice of weighting factors h w ,d w ,v v ratio (horizontal, diagonal and vertical directions respectively) determines the preference between increasing or maintaining of the sequence length. The weights for horizontal and vertical directions should be consistent if not preferred by sequences otherwise. The diagonal weight is set to a value lower than the horizontal (vertical) weight if the original sequences contain mostly substitution type of mutation against to indels, then we prefer the maintaining of the sequence lengths. The most important parameters are the length and the shift of the window in cDTW calculation. The generally recommended length of the window is values between 1/100 and 1/200 length of the longest sequence. The classificationintoorder(for18SrRNA)orinterspecies variability evaluation corresponds with the theoretical expectations in this range of window lengths. The classification of 16S rRNA was slightly different only in clustering of very similar human records. The choice of length for construction of phylogenetic tree from 18S rRNA gene was complicated by poorly defined reference of avian genes clustering. Fig. 10 shows the dependence of classification variability based on window size. The classification differences were evaluated as number of different nodes against to topology in Fig. 8.basedonthe Robinson–Foulds metric (Robinson and Foulds, 1981). In the range of window length between 8–30 bp occurred changes in clustering of problematic 18 species of avian during the classification. The classification of other species to order was stable in this range. The range between 8–30 bp can be suitable for classification of organisms to order, the higher values allow reliable classification only to the class. The value of the window size must be an even because divisibility of the two is required in boundary conditions. 3.3.5. The whole genome alignment for estimation of bacterial phylogeny The step for the shift of the window along the signal should be always equal 1 for evaluation of point mutations. Therefore, the previous two examples do not allow analysis of the influence of larger step to genomic signal alignment and subsequent classification. The comparison of whole genomes or chromosomes does not require such 10 20 30 40 50 60 70 80 90 100 0 5 10 15 20 classification differences window size [bp ] w = 8 ~ 30 order classification class classification 4 Fig. 10. The dependence of classification differences on the change of window size for cDTW performance –evaluated for 40 sequences of 18S rRNA vertebrate genes. 5000 10000 15000 0 1 0123 4 5 x 106 -0.4 0 1 signal position [bp] signal position [-] norm. phase [-] S. haemolyticus S. aureus VC40 S. aureus RF122 S. pneumoniae R6 S. pneumoniae D39 S. pneumoniae OXC141 S. pneumoniae INV104 B. subtilis XF1 B. subtilis BSP1 B. amyloliquefaciens T. thermosaccharolyticum C.difficile M120 C.difficile M68 C.acetobutylicum Clostridia Bacilli T.thermosaccharolyticum S.pneumoniae R6 S.pneumoniae OXC141 S.pneumoniae INV104 S.pneumoniae D39 S.haemolyticus S.aureus VC40 S.aureus RF122 C.difficile M120 C.difficile M68 C.acetobutylicum B.subtilis XF1 B.subtilis BSP1 B.amyloliquefaciens norm. phase [-] Fig. 11. Phylogeny classification of bacterial whole genome signals. (A) Phylogenetic tree for 14 representatives of firmicutes phylum reconstructed from multiple aligned 2 8 decimated genomic signals. (B) Cumulated phases of bacterial whole genome sequences (upper). Cumulated phases after re-assembly with oriC finder, decimation by 8 level of decomposition and multiple alignment to the same length. H. Skutkova et al. / Journal of Theoretical Biology 385 (2015) 20–3028