Classification of graphical representation methods.

## Abstract

Sequence comparison is one of the most fundamental tasks in bioinformatics. For biological sequence comparison, alignment is the most profitable method when the sequence lengths are not so large. However, as the time complexity of the alignment is the square order of the sequence length, the alignment requires a large amount of computational time for comparison of sequences of large size. Therefore, so-called alignment-free sequence comparison methods are needed for comparison between such as whole genome sequences in practical time. In this chapter, we reviewed the graphical representation of biological sequences, which is one of the major alignment-free sequence comparison methods. The notable effects of weighting during the course of the graphical representation introduced first by the author and co-workers were also mentioned.

### Keywords

- alignment-free
- amino acid sequence
- binary image
- DNA sequence
- mitochondria
- phylogeny

## 1. Introduction

Comparison between biological sequences is one of the most fundamental tasks in the area of bioinformatics. For relatively short sequences, such as nucleotide sequences of genes or amino acid sequences of proteins, * alignment*is the most profitable method for the sequence comparison. However, as the dependency of the computational time of the alignment on the sequence length

*is*N

*(*O

N

^{2}), the alignment is hard to be applied to comparison between sequences of large size, such as whole genome sequences. Therefore, the development of

*methods is required to analyze the similarities between the sequences of large size in practical time. One of the most actively studied methods of the alignment-free sequence comparison is*alignment-free

*[1, 2]. In addition to overcoming the time-consuming problem mentioned above, the graphical representation has the advantage that the similarities between sequences can be easily noticed visually.*graphical representation

Since the seminal paper by Hamori and Ruskin [3] was published, various kinds of sequence comparison methods based on the graphical representation have been proposed by many researchers. The basic procedure of the graphical representation is outlined as follows: first, each character in a biological sequence, which is expressed by the four-letter alphabet for nucleotide sequences and the 20-letter alphabet for amino acid sequences, is expressed by individual vectors in a certain dimensional space; next, the vectors are connected successively in a head-to-tail fashion, drawing a curve, or a * graph*, in the expression space; and last, if necessary, the distances between the graphs are calculated based on the predefined distance measures.

In this chapter, we briefly review the graphical representation methods for biological sequence comparison. In addition, we introduce our work recently published, in which weighting during the course of the graphical representation shows the notable effects.

## 2. Variations of graphical representations

The graphical representation methods are classified into some classes according to the target sequences and the dimension of the representation space. The target sequences of the graphical representation are amino acid sequences of proteins and nucleotide sequences of DNA (or RNA), including specific genes, mitochondrial genomes, and others. Table 1 summarizes the classification of the graphical representation methods published so far.

Target sequence | Dimension of expression space | Work |
---|---|---|

Specific genes | 2D | [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22] |

3D | [23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36] | |

Mitochondrial genomes | 2D | [37, 38, 39, 40, 41] |

3D | [42] | |

Others | 3D | [3, 43] |

2D | [44, 45, 46, 47, 48, 49] | |

3D | [50, 51, 52, 53] |

### 2.1. Graphical representation of DNA sequences

Biological sequences stored in data archives are expressed by the four-letter alphabet for nucleotide sequences of DNA and the 20-letter alphabet for amino acid sequences of proteins. To represent the biological sequences by graphs, it is necessary to express each character composing the sequences in numerical form.

The most popular strategy for the numerical expression is assigning vectors to respective characters in the alphabet. As for nucleotide sequences of DNA, the individual vectors of two, three, or higher dimension are assigned to four types of bases, A, T, G, and C.

#### 2.1.1. Two-dimensional representation

Figure 1 is the two-dimensional vector assignment utilized by Gates [4]. Although many variations of the assignments are given according to the layout of the four bases, the number of the independent assignments is reduced to 3!/2 = 3, when the assignments that are transformed to each other by rotation on the * xy*-plane or inversion with respect to the

*- or*x

*-axis are assumed to be equivalent. The assignments of this type including the variations with some modifications are utilized in Refs. [5, 6, 10, 16, 20, 21, 40, 41].*y

By connecting the vectors successively in a head-to-tail fashion according to each base appearing in a nucleotide sequence, a graphical representation is generated. Figure 2 shows, as an example, the graphical representation of sequence “TGAGTTC” generated by Gates’ assignment.

The assignment of Figure 1 may draw circuits in the graphical representation, leading to the loss of information that the original biological sequence has. To get rid of the degeneracy, Yau [9] introduced the assignment shown in Figure 3, which makes no circuit in the graphical representation; because the * x*-components of the vectors have all positive values, no backward motion along the

*-axis exists in the graphical representation. For comparison, Figure 4 illustrates the graphical representations of the first exon of the human β-globin gene represented by Gates’ vector assignment (Figure 1) and Yau’s vector assignment (Figure 3). There are many circuits in the graph by Gates’ assignment; on the other hand, there is no circuit in the graph by Yau’s assignment. The assignments of Yau’s type (including the variations with some modifications) are utilized in Refs. [9, 12, 15, 18, 19, 37, 38, 39].*x

Some researchers used another approach; they directly mapped bases on the * xy*-plane without vector assignment. Randić et al. plotted the

*th base of a DNA sequence on the*i

*-plane at (*xy

*,0), (*i

*,1), (*i

*,2), and (*i

*,3) for bases C, G, T, and A, respectively [7]. By connecting the plots, a*i

*is given. Figure 5 demonstrates the zigzag curve for sequence “ATGGTGCACC” given by Randić’s approach. Similar to the graphical representation given by Yau’s vector assignment (Figure 4(b)), the zigzag curve has no circuits. The approaches of this kind (including the variations with some modifications) are utilized in Refs. [8, 11, 13, 14, 17, 22].*zigzag curve

#### 2.1.2. Three-dimensional representation

Hamori and Ruskin [3] used a three-dimensional vector assignment to bases (Figure 6). Gates’ approach (Figure 1) [4] is a simplified version of this assignment. However, unlike Gates’ approach, Hamori’s assignment does not make any circuit in the resultant curve (called * H-curve*), because the

*-coordinate of the curve decreases monotonically with the positions of the bases in the original sequence. The assignments of this type (including the variations with some modifications) are utilized in Refs. [26, 27, 29, 31, 32, 33, 34, 35, 36].*z

Zhang and Zhang [43] used another three-dimensional vector assignment shown in Figure 7. The resultant curve, called * Z-curve*, may have circuits therein like the curves generated by Gates’ vector assignment (Figure 1). The assignments of this type (including the variations with some modifications) are utilized in Refs. [24, 42].

#### 2.1.3. Higher than three dimensions

The graphical representations in the space of higher than three dimensions cannot be visualized directly. Instead of direct visualization, they are expressed abstractly or projected on some spaces of lower dimensions. The approaches of this type (including the variations with some modifications) are utilized in Refs. [25, 30, 28].

### 2.2. Graphical representation of proteins

A general strategy for graphical representation of protein sequences is common to that for DNA sequences, namely, numerical expression of characters followed by mapping on certain dimensional spaces, except for the fact that the number of character types is 20 instead of 4 for DNA sequences. A detailed review of graphical representation of protein sequences is given by Randić et al. [54]. Here, we briefly mention the variations of the graphical representation scheme of proteins.

Figure 8(a) and (b) presents two-dimensional vector assignments to 20 amino acids utilized by Randić et al. [44] and Wen and Zhang [45], respectively. In Randić’s assignment, the 20 amino acids (indicated by three-letter codes) are arranged uniformly on a unit circle in alphabetical order. On the other hand, in Wen’s assignment, the horizontal and the vertical coordinates of the vectors are given by * pK*values of COOH and NH

_{a}

_{3}

^{+}of the corresponding amino acid, respectively. The assignments of Randić’s type and Wen’s type (including the variations with some modifications) are utilized in Refs. [47] and [46, 48], respectively.

Yu and Huang [49] directly mapped 20 amino acids on a two-dimensional space and drew zigzag curves similar to the curve for the case of DNA sequences given by Randić’s approach (Figure 5) [7].

He et al. [52] extended Randić’s vector assignment (Figure 8(a)) to three dimensions by adding one extra coordinate corresponding to the position of the amino acid in the original sequence, with the modification of the arrangement of the 20 amino acids on the unit circle based on the 6-bit binary gray code assigned by the codon structure of the amino acids.

## 3. Numerical characterization of graphical representations

As well as the visual evaluation of the similarities between biological sequences through their graphical representations, the quantitative estimation of the similarities also can be done by the numerical characterization of the graphs. The general method of the quantitative estimation is to construct * feature vector*s based on the various kinds of characteristics of the graphs and, then, to calculate the distances between the feature vectors based on some sort of distance measures.

For the numerical characterization, there are two kinds of methods: geometrical methods and graph-theoretical ones [2].

### 3.1. Geometrical characterization

The most simple method of the geometrical characterization was proposed by Raychaudhury and Nandy [55], in which the graphs are numerically characterized by their geometrical centers. Let * i*th point of the graph, and then the geometrical center

*is the total number of the points on the graph. The similarity/dissimilarity between the graphs of sequences, A and B, is measured by the Euclidean distance between their geometrical centers by*N

where * A*and

*refer to the corresponding sequences.*B

A more accomplished geometrical characterization was proposed by Liao et al. [37], in which they constructed a two-component feature vector based on the 2×2 covariance matrix * CM*calculated from the two-dimensional graph by

The two-component vector is given by the two eigenvalues of * CM*,

The approach proposed by Qi et al. [18] is another example of the geometrical characterization. They constructed an eight-component feature vector from the averages of the * y*-coordinates of the eight different patterns of the two-dimensional graphical representations. The similarity/dissimilarity between the graphs is measured by the Euclidean distance between the end points of their feature vectors.

### 3.2. Graph-theoretical characterization

The graph-theoretical characterization that is most widely used is the method based on the D/D (distance/distance) matrix [56]. The off-diagonal (* i*,

*) elements of the D/D matrix are defined as the quotient of the Euclidean distance between the*j

*th and the*i

*th vertices of the graph and the graph-theoretical distance between the two vertices. The D/D matrix is symmetric, and all the diagonal elements are zero by definition.*j

There are two variations of the D/D matrix. If the denominator (the graph-theoretical distance) is replaced by the sum of the geometrical lengths of the edges between the two vertices, the D/D matrix is denoted as the L/L matrix; if the denominator is replaced by the total number of the edges between the two vertices, the D/D matrix is denoted as the M/M matrix.

As an example, Table 2 demonstrates the upper off-diagonal elements of the L/L matrix calculated for the graph of sequence “TGAGTTC” in Figure 2.

G | A | G | T | T | C | |
---|---|---|---|---|---|---|

T | ||||||

G | ||||||

A | ||||||

G | ||||||

T | ||||||

T |

The feature vectors are constructed from the leading eigenvalues of the D/D matrix, which are the invariants of the matrix and can well describe the characteristics of the individual graphs. For example, Randić et al. [8] used 12-component vectors given by the first leading eigenvalues of the L/L matrices calculated from the 12 essentially different patterns of the graphical representations, and Liao and Wang [13] used three-component vectors constructed by the similar manner.

The similarity/dissimilarity between the sequences, A and B, is measured by the Euclidean distance between the end points of the corresponding feature vectors by

or the cosine of the angle between the feature vectors by

where * i*th components of the

*-component feature vectors of the sequence*K

*and*A

*, respectively.*B

## 4. Graphical representation based on binary images

The author and co-workers recently published the paper about a novel two-dimensional graphical representation of DNA sequences based on binary images [41]. In this section, we introduce our method and demonstrate the notable effects of * weighting*for the construction of the graphical representations introduced first by the author and co-workers [40].

### 4.1. Vector assignment

We used the two-dimensional vector assignment to four bases shown in Figure 9, which is a modified version of Gates’ assignment (Figure 1). We located both G and C on the same side so that the GC-contents of the target sequences can be represented on the graphs; the graphs for the sequences with high GC-contents tend to grow in the downward direction, although the tendency is not rigid due to the weighting mentioned below.

### 4.2. Introducing weighting

In order to extract potential information conveyed by individual bases in DNA sequences, we introduced * weighting*into the process of generating graphical representations; we calculated the weighting factors based on a Markov chain model and multiplied them to the vectors assigned to the bases. As the weighting factors, we used self-information, which is the amount of information that we will receive when a certain event occurs [42]. The self-information is defined by

where * P*(

*) is the probability that event*E

*occurs. We employed the conditional probability calculated based on the second-order Markov chain as*E

*(*P

*) concerning about*E

*, which are triplets of bases in the coding regions of DNA sequences.*codons

The conditional probability is calculated from the appearance frequencies of triplets of bases. For example, the probability that base A occurs after a pair of bases TC is given by

where * f*(

*) is the number of appearances of triplet*S

*. For the other combinations of bases, the conditional probabilities are calculated by a similar manner. The numbers of appearances of triplets were measured in all the DNA sequences analyzed.*S

Table 3 lists the weighting factors calculated with base 4 of the logarithm in Eq. (5) from 31 mammalian mitochondrial genomes. The weighting factor lower than 1.00 indicates that the pair of bases on the row tends to be followed by the base on the column, and on the other hand, the weighting factor higher than 1.00 indicates that, after the pair of bases on the row, the base on the column is hard to appear.

Preceding pair of bases | Third base | |||
---|---|---|---|---|

A | T | G | C | |

AA | 0.82 | 0.92 | 1.47 | 0.95 |

AT | 0.84 | 0.90 | 1.42 | 0.97 |

AG | 1.04 | 1.11 | 1.11 | 0.79 |

AC | 0.83 | 0.88 | 1.64 | 0.90 |

TA | 0.86 | 0.93 | 1.28 | 1.01 |

TT | 0.77 | 0.97 | 1.51 | 0.94 |

TG | 0.73 | 1.14 | 1.16 | 1.06 |

TC | 0.77 | 0.93 | 1.69 | 0.91 |

GA | 0.79 | 1.08 | 1.15 | 1.03 |

GT | 0.67 | 1.04 | 1.36 | 1.11 |

GG | 0.79 | 1.14 | 1.22 | 0.93 |

GC | 0.85 | 0.93 | 1.97 | 0.75 |

CA | 0.84 | 0.90 | 1.44 | 0.96 |

CT | 0.68 | 1.02 | 1.51 | 1.02 |

CG | 0.91 | 1.00 | 1.22 | 0.91 |

CC | 0.90 | 0.82 | 1.79 | 0.85 |

Let us illustrate the procedure of the graphical representation with weighting factors by a simple example. Figure 10(a) and (b) shows the graphical representations of sequence “ACATATG” by Kobori’s vector assignment (Figure 9) without and with weighting, respectively. The weighting is not applied to the first two bases, because the weighting factors are not given for the first two bases by our weighting scheme. The weighting factors for the subsequent bases A, T, A, T, and G are 0.83, 0.90, 0.84, 0.92, and 1.42, respectively (see Table 3). The vectors for the bases are multiplied by the corresponding weighting factors. As a result, the graphical representation in Figure 10(a) is modified as shown in Figure 10(b).

We demonstrate the notable effects of the weighting on the graphical representations by the real sequences. Figure 11 depicts the graphical representations of three mammalian mitochondrial genomes without weighting and with weighting. Comparing the graphs with weighting (lower row) to the graphs without weighting (upper row), it can be recognized that the characteristics of the graphs are emphasized by the weighting and the individual species can be easily distinguished.

### 4.3. Generating binary images

A binary image is defined as a digitized image composed of the pixels with two possible values (e.g., 0 and 1), which are typically assigned by * white*and

*, respectively, on the image. From the graphical representation, a binary image is generated in the following ways: if the pixels include at least a portion of a curve of the graphical representation, they are assigned 1; otherwise, they are assigned 0.*black

### 4.4. Numerical characterization by local pattern histograms

In this work, each graph is characterized by the frequency distributions of * local patterns*that appear on the graph. A local pattern is defined here as a small bitmap image of a certain size. Because each pixel of a binary image takes two variations (0 and 1), the number of the local patterns is 2

*, where*

^{n}

*is the number of the pixels of the local pattern. Local patterns of large size are dominated by white pixels, while, on the other hand, those of small size do not have enough variations to express the characteristics of the local area of a graph. For this study, therefore, we chose 3×3 as the size of the local patterns (the number of the local patterns is 2*n

^{9}=512). Figure 12 shows the examples of the local patterns of window size 3×3. Excluding the pattern of which the pixels are all white, we construct a feature vector, or a

*, of dimension 511 for each graph from the appearance frequencies of the local patterns on the graph.*local pattern histogram

### 4.5. Distance measures between local pattern histograms

There are several measures to estimate similarity/dissimilarity between two histograms. Here, we briefly mention five frequently used methods. In the following formulas, * K*is the number of the local patterns (

*= 511), and*K

*and*p

_{i}

*are the normalized appearance frequencies of the local pattern of serial number*q

_{i}

*in histograms*i

*and*P

*, respectively*Q

#### 4.5.1. Histogram intersection

Histogram intersection was proposed by Swain et al. [57] for color indexing of images, which is defined as

It ranges from 0 to 1, with 1 for * P*and

*being identical. It is converted to a distance by*Q

#### 4.5.2. Manhattan distance

Manhattan distance, also known as * city block distance*or

L

_{1}-norm, is defined as

which ranges from 0 to 2, with 0 for * P*and

*being identical.*Q

#### 4.5.3. Bhattacharyya distance

Bhattacharyya distance [58] is defined between two probability distributions from a divergence

which ranges from 0 to 1, with 1 for * P*and

*being identical. The Bhattacharyya distance is defined from the divergence by*Q

#### 4.5.4. Jensen-Shannon divergence

Jensen-Shannon divergence [59] is a symmetrized and smoothed version of Kullback–Leibler divergence [60], which is defined as

where

Here, * P*and

*being identical.*Q

#### 4.5.5. Kendall’s rank correlation coefficient

Kendall’s rank correlation coefficient [61], also known as Kendall’s * τ*, is defined as

where * X*is the number of

concordant

*is the number of*Y

*pairs, which are the*discordant

*,*i

*pairs that satisfy*j

*is the number of one kind of*r

*pairs, which are the*tie

*,*i

*pairs that satisfy*j

*pairs, which are the*tie

*is rescaled by*τ

so that * P*and

*being identical.*Q

### 4.6. Reconstruction of phylogenetic tree

Among the five distance measures mentioned above, histogram intersection and Manhattan distance showed the best performance. Figure 13 shows the phylogenetic tree of 31 mammalian species reconstructed by our method using Unweighted Pair Group Method with Arithmetic mean (UPGMA) with the histogram intersection distance measure. The same tree is given by Manhattan distance.

## 5. Conclusion

With the rapid growth of the data size in the archives of biological sequences, the demand for the alignment-free sequence comparison methods is increasing. Graphical representation is one of the major alignment-free sequence comparison methods. In addition to the visual discrimination abilities of the sequences, the graphical representation has an advantage of requiring only small computational time. The similarity/dissimilarity between a pair of sequences is calculated from the feature vectors constructed based on the graphical representation. The time complexity of the calculation is estimated to be * O*(

*), where*K

*is the dimension of the feature vector and*K

*is usually independent of the sequence length (except for a few methods). Even though the computational time to make a graph, and to construct a feature vector from the graph, may depend on the sequence length*K

*, typically*N

*(*O

*), the construction of the graph and the feature vector is needed to be done for each sequence only once. Thus, the time complexity of the sequence comparison based on the graphical representation is regarded as*N

*(*O

*), which is much less than that of the alignment,*K

*(*O

N

^{2}). From the above considerations, the graphical representation is expected to stay in the main stream of the alignment-free sequence comparison methods from now on, too.