APP下载

Similarity Estimation Between DNA Sequences Based on Local Pattern Histograms of Binary Images

2016-06-02YuseiKoboriStoshiMizut

Genomics,Proteomics & Bioinformatics 2016年2期

Yusei KoboriStoshi Mizut*b



Similarity Estimation Between DNA Sequences Based on Local Pattern Histograms of Binary Images

Yusei Koboria,Satoshi Mizuta*,b

Graduate School of Science and Technology,Hirosaki University,Hirosaki,Aomori 036-8561,Japan

Received 30 March 2015;revised 19 September 2015;accepted 23 September 2015 Available online 27 April 2016

Handled by Le Zhang

KEYWORDS

Genome sequence;

Mitochondria;

Bitmap image;

Occurrence frequency;

Distance measure

Abstract Graphical representation of DNA sequences is one of the most popular techniques for alignment-free sequence comparison. Here,we propose a new method for the feature extraction of DNA sequences represented by binary images,by estimating the similarity between DNA sequences using the frequency histograms of local bitmap patterns of images. Our method shows linear time complexity for the length of DNA sequences,which is practical even when long sequences,such as whole genome sequences,are compared. We tested five distance measures for the estimation of sequence similarities,and found that the histogram intersection and Manhattan distance are the most appropriate ones for phylogenetic analyses.

E-mail: slmizu@hirosaki-u.ac.jp(Mizuta S).

aORCID: 0000-0003-0953-8723.

bORCID: 0000-0002-9890-3448.

Peer review under responsibility of Beijing Institute of Genomics,Chinese Academy of Sciences and Genetics Society of China.

http://dx.doi.org/10.1016/j.gpb.2015.09.007

1672-0229Ⓒ2016 The Authors. Production and hosting by Elsevier B.V. on behalf of Beijing Institute of Genomics,Chinese Academy of Sciences and Genetics Society of China.

This is an open access article under the CC BY license(http://creativecommons.org/licenses/by/4.0/).

Introduction

Sequence alignment[1,2]is generally used to estimate similarities between relatively short sequences less than about several thousand characters,such as nucleotide sequences or amino acid sequences. However,the time complexity of the alignment is the square of the sequence length,thus the long sequence length may result in enormous amount of computation time[3]. Therefore,to reduce the time required for comparing long sequences such as whole genome sequences,developing so-called alignment-free methods becomes a necessity.

Graphical representation of biological sequences represents one of the most popular methods for the alignment-free sequence comparison[4]. Various methods based on graphical representation have been introduced,and almost all methods share the common basic procedure. Every base type in a DNA sequence is replaced by an individual vector in a twodimensional(2D)[5,6],three-dimensional(3D)[7,8],or even higher-dimensional[9]expression space. These vectors are then connected successively,drawing a trajectory in the expression space and finally,the distances between the trajectories,or graphs,are calculated according to a predefined distance measure. While there exist many methods in the field of graphical representation of biological sequences as mentioned above,further improvement in terms of the performance and the calculation time is still required.

In this study,we propose a new method for sequence comparison based on the graphical representation. We expressed a DNA sequence as a binary image—each pixel of a binary image was plotted in either black or white—in a twodimensional space,and counted the occurrence frequencies of 3×3 bitmap patterns in the binary image. The distance between the binary images was measured based on the frequency histograms of the bitmap patterns. Five frequentlyused distance measures were evaluated for their performance in determining the distance between histograms based on the phylogeny of 31 mitochondrial genome sequences. These include histogram intersection[10],Manhattan distance,Bhattacharyya distance[11],Jensen-Shannon divergence[12],and Kendall’s rank correlation coefficient[13].

Figure 1 Three independent assignments of vectors on the xy-plane to individual nucleotides

Methods

Generating a binary image from a DNA sequence

We describe here the step-by-step procedure used to generate a binary image from a DNA sequence.

Graphical representation of a DNA sequence

Firstly,we assigned 2D numerical vectors on the xy-plane,which are perpendicular or in opposite directions to each other,to A,T,G,and C. The number of independent variations of the assignments was 3!/2 = 3,including the assignments that can be transformed into each other by 90-degree rotations or the inversions with respect to vertical or horizontal axes(Figure 1). We chose the assignment presented in Figure 1A,where nucleotides A and T are placed in the upper quadrants,and G and C in the lower ones,so that the GC content of a DNA sequence can be grasped easily from the resultant graphical representation. Note that,the assignment presented in Figure 1B is also acceptable,but better results are obtained with the former assignment as shown in Figure 1A. Therefore,the assignment given in Figure 1A is adopted throughout this article. Then,a 2D graph can be drawn by consecutively connecting the vectors assigned to the nucleotides of a DNAsequence. Agraphical representation of a sequence,“ACATATG”,is represented in Figure 2A.

Figure 2 Generating a binary image of sequence“ACATATG”

Multiplying weighting factors

In order to extract potential information conveyed by individual nucleotides,we introduced weighting factors,based on a Markov chain model,into the process of binary images generation[14]. To emphasize rare patterns that appear in genome sequences,we used self-information I(E),the amount of information that is received when a certain event E occurs,as the weighting factor. Let P(E)be the probability that event E occurs,I(E)is defined as I(E)= -log2P(E)in bit units. A trajectory for each genome sequence in a 2D plane is drawn as follows:

where Riis the coordinate of the ith point on the trajectory,Vkis the vector assigned to the kth nucleotide of the genome sequence,and wkis the corresponding weighting factor I(E). Here,we defined P(E)according to the second order Markov chain. The probability that nucleotide z occurs after a pair of nucleotides xy(x,y,z∈{A,T,G,C})is calculated usingwhere Nxyzand Nxys(z,s∈{A,T,G,C})are the numbers of occurrence of triplets xyz and xys,respectively,which were measured in all analyzed DNA sequences.

Procedure of the graphical representation with weighting factors is illustrated in Figure 2. Suppose that P(A|AC),P(T| CA),P(A|AT),P(T|TA),and P(G|AT)are 0.20,0.66,0.41,0.31,and 0.44,respectively,the weighting factors are calculated as 2.3,0.60,1.3,1.7,and 1.2,respectively. The first two in a series of vectors represented in Figure 2A are drawn without weighting factors,because the corresponding weighting factors are not available. Due to the occurrence of“AC”in the preceding doublet,the third vector“A”is multiplied by 2.3,i.e.,the weighting factor calculated for P(A|AC). Similarly,the remaining vectors are multiplied by the corresponding weighting factors. As a result,the graphical representation of sequence“ACATATG”is modified as shown in Figure 2B.

Generating a binary image

A binary image is a digitized image in which each pixel is set as either 0 or 1 typically plotted in white and black,respectively. In this study,we set“1”for the pixels that include at least a portion of a vector,and“0”for all other cases. The graphical representation of a DNA sequence shown in Figure 2B was then converted to a binary image(Figure 2C).

Local patterns of pixels of a binary image

Local pattern is defined as a bitmap image composed of the adjacent pixels in a certain size of window. Each pixel of a binary image has two value options(0 and 1),and therefore,the number of local patterns is 2n,where n is the number of pixels in a window. Very large windows are dominated by white pixels,while the windows that are too small cannot have enough variations to express a DNA sequence. Therefore,for this study we chose the window size of 3×3,where the number of the local patterns is 29= 512. Local pattern with pixels that are all white was not included in the local pattern histograms,because it represents the empty background of the images.

A serial number was assigned to each local pattern by lining up the pixels from the upper left corner to the lower right with the upper left corner being the highest bit. Pixels were expressed as binary numbers(“0”for white and“1”for black). Figure 3 shows five examples of the local patterns of window size 3×3,with their serial numbers shown below,which will help readers to understand the relationships between the local patterns and their serial numbers.

Counting the occurrence frequencies of the local patterns

Occurrence frequencies of the local patterns were counted by sliding a 3×3 window by one pixel per move over the binary image. If the trajectory of the graphical representation of a DNA sequence is like a random walk,the average distance between the origin and the terminus of the trajectory would be O(L1/2),where L is the sequence length,and the rectangle area covering the whole trajectory is proportional to L. Consequently,the computation time to count the occurrence frequencies would become O(L). However,this is not the case in reality. In most cases,the trajectory is not like a random walk but is a curved line of length O(L). Therefore,the computation time to count the occurrence frequencies becomes O(L2),which is the equivalent of the pairwise sequence alignment.

To reduce the computation time,we developed a new method for counting the occurrence frequencies. As shown in Figure 4,a binary image is divided into squares of 10×10 pixels and squares containing at least one black pixel are marked when generating the binary image(gray squares in Figure 4). Occurrence frequencies of the local patterns are counted only in the marked areas. Let W and H be the width and length of the aggregate region of the marked areas,respectively,then the computation time of counting is estimated approximately as O(WH). For the binary images generated from mitochondrial genomes,W is almost independent of the genome length L,and H is proportional to L(see Results and discussion). Therefore,the computation time is reduced to O(L). There remains room for improvement by reducing the numerical coefficient. For instance,this coefficient can be reduced using a variable grid size instead of the fixed size of 10×10,which can be adjusted adaptively for the individual counting areas. In addition,since the counting procedure is performed independently on the individual areas of the binary images,parallel processing can be implemented for the counting procedure,which would further boost the performance of our method.

Figure 3 Five examples of local patterns with their serial numbers below

Distance measures between local pattern histograms

Different measures can be used to estimate the similarity/ dissimilarity between two histograms. In this study,we chose five commonly-used measures and compared their performance in the distance measures between the local pattern histograms,which could be employed in our method. These include histogram intersection(HI)[10],Manhattan distance (MD),Bhattacharyya distance(BD)[11],Jensen-Shannondivergence(JS)[12],and Kendall’s rank correlation coefficient (τ)[13]. Their definitions and the modifications in this study are listed in Table 1. piand qiare the occurrence frequencies of the local pattern of serial number i in histograms P and Q,respectively;and N is the largest serial number of the local patterns(i.e.,N = 511 for 3×3 pixel local patterns). Note that in the calculation of the distances,the occurrence frequencies are normalized to be

Figure 4 Counting areas on a binary image

Evaluation of the calculated distances among the local pattern histograms

To evaluate the calculated distances,we reconstructed phylogenetic trees from the distance matrix based on each distance measure listed in Table 1. We then computed the Robinson-Foulds(R-F)distances[16]between our trees and a reference tree reconstructed using ClustalW based on the multiple sequence alignment of the mitochondrial genome sequences. The R-F distances were calculated by TREEDIST program in Phylogeny Inference Package PHYLIP[17].

Results and discussion

Genome sequences analyzed

Mitochondrial genome sequences of 31 mammalian species (Table 2)with their respective accession numbers and lengths,were obtained from the NCBI GenBank. These species were selected for comparison according to Huang et al. [6],except ape,Sumatran orangutan,goat,and giant panda genomes,for simplicity. Mitochondrial genomes are widely used to study genome evolution and phylogenetic inference,which show a high mutation rate compared with the nuclear genomes and a nearly uniform size across mammalian species[18].

Table 1 Five distance measures used in this study

Table 2 Mitochondrial genomes analyzed

Weighting factors calculated from the occurrence frequencies of trinucleotides

We counted the number of occurrences of every tri-nucleotide in all the mitochondrial genome sequences listed in Table 2 by sliding a window of length three one nucleotide per move,and calculated the weighting factors as described in the Methods section. The occurrence frequencies of all tri-nucleotides detected in each genome sequence are listed in Table S1. The obtained weighting factors are shown in Table 3. The highvalue of weighting factors indicate that the corresponding tri-nucleotides rarely occur in the genome sequences,whereas low value of weighting factors indicates that the corresponding tri-nucleotides occur frequently in the genome sequences. To validate the robustness of the weighting factors shown in Table 3,we randomly selected 15 species(out of the original 31 genome sequences)and recalculated the weighting factors. We repeated this trial 100 times and obtained the average values very similar to those presented in Table 3,with the maximum standard deviation of 0.07(data not shown). These results suggest that the weighting factors shown in Table 3 represent a snapshot of a comprehensive picture of the mammalian mitochondrial genomes examined.

Table 3 Calculated weighting factors for each tri-nucleotide

Graphical representations of mitochondrial genomes

Graphical representations of the 31 mammalian mitochondrial genomes were drawn by our method without(Figure 5)and with weighting(Figure 6),respectively. The trajectories on the graphs in Figure 5 look very similar to each other,except for slight differences of their gradients. On the other hand,closely-related species,such as primates,cats,elephants,and bears,share similar trajectories,whereas trajectories between distant species are different(Figure 6). Comparing the graphs with and without weighting indicated that weighting makes it possible to distinguish even between the graphs of closelyrelated species. This demonstrates the effectiveness of our method of graphical representation for the visual inspection of the sequence similarities.

Local pattern histograms counted on the graphical representations

We counted the occurrence frequencies of the local patterns for the 31 mammalian species,and constructed the local pattern histograms to explore which patterns are dominant. These histograms are shown in Figure S1. Local patterns 1,4,10,34,64,84,136,160,256,and 273 are detected more than 1000 times in each genome sequence. These local patterns are frequent because all vectors assigned to the nucleotides are on the diagonal lines of the xy-plane(Figure 1),and the binary images do not contain many black pixels. These frequent local patterns are depicted in Figure S2.

Construction of phylogenetic trees based on the local pattern histograms

A phylogenetic tree was reconstructed to evaluate our method from the calculated distance matrix based on HI,using Unweighted Pair Group Method with Arithmetic mean (UPGMA)(Figure 7). The same tree is obtained using MD. Phylogenetic trees generated based on BD,JS,and Kendall’s τ are presented in Figure S3. All the trees were drawn by the statistical analysis software R,using“ape”package. The tree based on HI(and MD)seems to be reconstructed well,since primates,elephants,cats,bears,etc. are located in their respective clades(Figure 7). On the other hand,some species are located in inadequate places on the trees based on the other distance measures. For instance,sheep is separated from buffalo-cow pair in the tree built using BD as shown in Figure S3A,pig and white rhinoceros are included in primates,and leopard is separated from cat-tiger pair in the tree built using Kendall’s τ as shown in Figure S3B.

Table 4 shows Pearson’s correlation coefficients calculated between the distance matrices based on the five distance measures. HI-MD pair and BD-JS pair are strongly correlated,confirming the topological similarity of the resultant phylogenetic trees in Figures 7 and S3. To quantitatively evaluate the phylogenetic trees built in this study,we measured the Robinson-Foulds(R-F)distances[16]between the trees we constructed and a reference tree reconstructed using ClustalW based on the multiple sequence alignment of the mitochondrial genome sequences(Figure S4). As shown in Table 5,among the five distance measures,trees built with HI and MD had the lowest R-F distances with that built with ClustalW,suggesting their superior performance in building phylogenetic trees.

We compared our tree reconstructed by HI(and MD)in Figure 7 with those given by Huang et al.[6]and Yu et al. [19]for further evaluation. The overall configuration of the tree we constructed roughly agrees with the trees shown in these studies,except for the position of hedgehog. Krettek et al.[20]performed a phylogenetic analysis using concatenated sequences of 13 mitochondrial protein-coding genes of nine mammals,including human,harbor seal,cow,and hedgehog,and identified the position of hedgehog as basal relative to the other species included. Our results are consistent with those obtained by Krettek et al.[20],rather than Huang et al.[6]and Yu et al.[19].

Consideration of the execution time

We further compared the execution time for handling 31 mammalian mitochondrial genomes,between ClustalW and our method. The most time-consuming process in ClustalW is multiple sequence alignment,whereas for our method,counting the occurrence frequencies of the local patterns in the binary images is the most time-consuming step. It takes around 60 min to perform the multiple sequence alignment in ClustalW,using Intel Core i5-4690 CPU of 3.50 GHz. Nonetheless,with the same PC configuration,counting the occurrence frequencies takes about 260 s in our method,representing approximately a 14-fold decrease in execution time. Other steps in our method,such as calculating weighting factors,making distance matrices,and drawing phylogenetic trees,require several seconds at most for each.

Execution time depends on the number of sequences involved. Multiple sequence alignment by ClustalW is performed by combining pairwise sequence alignment of all the pairs of the sequences involved. Therefore,the dependency of the execution time on the number of sequences S is O(S2)for ClustalW. For the method we present in this paper,this dependency is O(S),since the counting of the occurrence frequencies of local patterns in our method is independently performed on the sequences involved.

The graphs are drawn on the xy-plane without weighting.

Figure 7 Phylogenetic tree reconstructed by our method based on HI and MD

Table 4 Pearson’s correlation coefficients of the five distance measures

Table 5 Robinson-Foulds distances calculated for the five distance measures

Conclusion

In this study,we proposed a novel alignment-free method for the estimation of similarities between DNA sequences. In this method,we express DNA sequences as binary images by replacing individual nucleotides with 2D vectors and connecting them successively. We counted the occurrence frequencies of 3×3 bitmap patterns in the binary images,and measured the distances between them based on the frequency histogramsof the bitmap patterns. We chose five frequently-used distance measures to estimate similarity/dissimilarity between two histograms: histogramintersection,Manhattan distance,Bhattacharyya distance,Jensen-Shannon divergence,and Kendall’s rank correlation coefficient.

We compared our phylogenetic trees with a reference tree reconstructed by ClustalW for mitochondrial genomes of 31 mammalian species. Among the five distance measures,histogram intersection and Manhattan distance showed the best performance in terms of Robinson-Foulds distance between the phylogenetic trees. In addition,a more appropriate positioning of hedgehog in the phylogenetic tree was obtained when compared with the phylogenetic tree reconstructed by Huang et al.[6]and Yu et al.[19].

The most time-consuming step in our method is counting the occurrence frequencies of local patterns. Its time complexity is O(L)for sequence length L,which is practical even for very long sequences.

Authors’contributions

YK carried out the data analysis and drafted the manuscript. SM conceived the project,participated in study design and coordination,and revised the manuscript. All authors read and approved the final manuscript.

Competing interests

The authors have declared that no competing interest exists.

Acknowledgments

This study was supported by the Graduate School of Science and Technology,Hirosaki University of Japan. We express a deep gratitude toward the reviewers for their very useful comments to our manuscript.

Supplementary material

Supplementary material associated with this article can be found,in the online version,at http://dx.doi.org/10.1016/j. gpb.2015.09.007.

References

[1]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:443-53.

[2]Smith TF,Waterman MS. Identification of common molecular subsequences. J Mol Biol 1981;147:195-7.

[3]Durbin R,Eddy SR,Krogh A,Mitchison G. Biological sequence analysis. Cambridge: Cambridge University Press;1998.

[4]Roy A,Raychaudhury C,Nandy A. Novel techniques of graphical representation and analysis of DNA sequences—a review. J Biosci 1998;23:55-71.

[5]Zhang ZJ. DV-curve: a novel intuitive tool for visualizing and analyzing DNA sequences. Bioinformatics 2009;25:1112-7.

[6]Huang G,Zhou H,Li Y,Xu L. Alignment-free comparison of genome sequences by a new numerical characterization. J Theor Biol 2011;281:107-12.

[7]Xie G,Mo Z. Three 3D graphical representations of DNA primary sequences based on the classifications of DNA bases and their applications. J Theor Biol 2011;269:123-30.

[9]Liao B,Li R,Zhu W,Xiang X. On the similarity of DNA primary sequences based on 5-Drepresentation. J Math Chem 2007;42:47-57.

[10]Swain MJ,Ballard DH. Color indexing. Int J Comput Vis 1991;7:11-32.

[11]Bhattacharyya A. On a measure of divergence between two statistical populations defined by their probability distributions. Bull Calcutta Math Soc 1943;35:99-109.

[12]Lin J. Divergence measures based on the Shannon entropy. IEEE Trans Inf Theory 1991;37:145-51.

[13]Kendall MG. A new measure of rank correlation. Biometrika 1938;30:81-93.

[14]Yamaguchi K,Mizuta S. A new graphical representation of DNA sequences using symmetrical vector assignment. Rev Bioinf Biometrics 2014;3:14-21.

[15]Kullback S,Leibler RA. On information and sufficiency. Ann Math Stat 1951;22:79-86.

[16]Robinson DF,Foulds LR. Comparison of phylogenetic trees. Math Biosci 1981;53:131-47.

[17]Felsenstein J. PHYLIP - phylogeny inference package(version 3.2). Cladistics 1989;5:164-6.

[18]Brown WM. Rapid evolution of animal mitochondrial DNA. Proc Natl Acad Sci U S A 1979;76:1967-71.

[19]Yu C,Liang Q,Yin C,He RL,Yau SST. A novel construction of genome space with biological geometry. DNARes 2010;17:155-68.

[20]Krettek A,Gullberg A,Arnason U. Sequence analysis of the complete mitochondrial DNA molecule of the hedgehog,Erinaceus europaeus,and the phylogenetic position of the Lipotyphla. J Mol Evol 1995;41:952-7.

LETTER

*Corresponding author.