1. Introduction

In the recent years, an exponential growth of sequence data in DNA databases has been observed by biologists; the importance of understanding genetic sequences coupled with the difficulty of working with such immense volumes of DNA sequence data underscores the urgent need for supportive visual tools. Recently, graphical representation is well regarded which can offer visual inspection of data and provide a simple way to facilitate the similarity analysis and comparison of DNA sequences [15]. Because of its convenience and excellent maneuverability, currently, all kinds of methods based on graphical representation have been extensively applied in relevant realms of bioinformatics.

Until now, there are many different graphical representation methods having been proposed to numerically characterize DNA sequences on the basis of different multiple-dimension spaces. For example, Liao et al. [69], Randic et al. [1013], Guo et al. [14, 15], Qi et al. [16], Dai et al. [17, 18], and Dorota et al. [19] proposed different 2D graphical representation methods of DNA sequences, respectively. Liao et al. [2023], Randic et al. [24, 25], Qi et al. [26], Yu et al. [27], and Aram et al. [28] proposed different 3D graphical representation methods of DNA sequences, respectively. Liao et al. [29], Tang et al. [30], and Chi et al. [31] proposed different 4D graphical representation methods of DNA sequences, respectively. In addition, Liao et al. [32] also proposed a kind of 5D representation method of DNA sequences and so on.

In these approaches mentioned above, most of them adopt the leading eigenvalues of some matrices, such as L/L matrices, M/M matrices, E matrices, covariance matrices, and D/D matrices, to weigh the similarities/dissimilarities among the complete coding sequences of β-globin genes of different species. Because the matrix computation is needed to obtain the leading eigenvalues, these methods are usually computationally expensive for long DNA sequences. Furthermore, in some of these approaches, their results of similarities/dissimilarities analysis are not quite reasonable, and there are some results that do not accord with the fact [7, 9].

To degrade the computational complexity and obtain more reasonable results of similarities/dissimilarities analysis of DNA sequences, in this article, we propose a new 2D graphical representation of DNA sequences based on triplets, in which, we present a new concept of ‘weight’ for 64 triplets and a new concept of ‘weight deviation’ to weigh the similarities/dissimilarities among the complete coding sequences of β-globin genes of different species. Compared with some existing graphical representations of the DNA sequences, our new scheme has the following advantages: (1) no matrix computation is needed, and (2) it can characterize the graphical representations for DNA sequences exactly and obtain reasonable results of similarities/dissimilarities analysis of DNA sequences.

2. Proposed 2D graphical representation of DNA sequence

Codon is a specific sequence of three adjacent nucleotides on the mRNA that specifies the genetic code information for synthesizing a particular amino acid. As illustrated in Table 1, there are total 20 amino acids and 64 codons in the natural world, and each of these codons has a specific meaning in protein synthesis: 64 codons represent amino acids and the other 3 codons cause the termination of protein synthesis.

Table 1 Relationship between 20 different kinds of most common amino acids and 64 different kinds of mRNA codons

For the 64 codons illustrated in Table 1, their corresponding triplets of DNA are illustrated in Table 2.

Table 2 The corresponding triplets of 64 codons

Based on the above 64 triplets of DNA illustrated in Table 2, we define a new mapping Ψ to map each of these triplets into a different weight. Obviously, the mapping Ψ shall satisfy the following rule: for any two pairs of triplets (X1, Y1) and (X2, Y2), where X1, Y1, X2, and Y2 are all triplets, if the corresponding codons of X1 and Y1 code the same amino acid but the corresponding codons of X2 and Y2 code two different amino acids, then there shall be |Ψ (X1) − Ψ (Y1)| < |Ψ (X2) − Ψ (Y2)|. So, according to the above rule and for the sake of convenience, weights consist of amino acid and codon. Amino acid is the integer part of weight, and codon is the fractional part of weight. Alanine is defined as 1, arginine is defined as 2, and the rest can be done in the same manner. Codons of every amino acid are reordered, so the first codon of alanine's (GCT) weight value is 1.1. We design the detailed mapping rules of Ψ as illustrated in Table 3.

Table 3 The mapping rules of Ψ

For example, from Table 3, we will have Ψ (GCT) = 1.1, Ψ (GCC) = 1.2, Ψ (ATG) = 20.1, etc., and in addition, we can propose a novel 2D graphical representation of DNA sequences as follows:

Let G = g1, g2, g3g N be an arbitrary DNA primary sequence, where g i ∈ {A, T, G, C} for any i ∈ {1, 2,…, N}, and then, we can transform G into a sequence of triplets such as G = t1, t2, t3t M , where M = [N/3] and t i is a triplet of DNA for any i ∈ {1, 2,…, M}. Thereafter, we can define a new mapping Θ to map G into a plot set as illustrated in the formula (1).

Θ G = 1 , Ψ t 1 , 2 , Ψ t 2 , , M , Ψ t M
(1)

As for the complete coding sequences of β-globin genes of 11 species illustrated in the Table 4, each of them can be mapped into a plot set by using the new given mapping Θ, and the 2D graphical representations corresponding to the complete coding sequences of β-globin genes of human, chimpanzee, and opossum are shown in Figures 1, 2, and 3, respectively.

Figure 1
figure 1

The 2D graphical representations of the complete coding sequences of β-globin genes of human.

Figure 2
figure 2

The 2D graphical representations of the complete coding sequences of β-globin genes of chimpanzee.

Figure 3
figure 3

The 2D graphical representations of the complete coding sequences of β-globin genes of opossum.

Table 4 The complete coding sequences of β-globin genes of 11 species

3. Similarity analysis of DNA sequence

Let G = g1, g2, g3g N be an arbitrary complete coding sequence, where g i ∈ {A, T, G, C} for any i ∈ {1, 2,…, N}, and G = t1, t2, t3t M be its corresponding sequence of triplets, where M = [N/3] and t i is a triplet of DNA for any i ∈ {1, 2,…, M}. Then, we define a function δ and let δ (t i ) represent the total number of times that the triplet t i repeats in the sequence of triplets G = t1, t2, t3t M for any i ∈ {1, 2,…, M}.

Let T1 = GCT, T2 = GCC, T3 = GCA, T4 = GCG, T5 = CGT, T6 = CGC, T7 = CGA, T8 = CGG, T9 = AGA, T10 = AGG, T11 = GAT, T12 = GAC, T13 = AAT, T14 = AAC, T15 = TGT, T16 = TGC, T17 = GAA, T18 = GAG, T19 = CAA, T20 = CAG, T21 = GGT, T22 = GGC, T23 = GGA, T24 = GGG, T25 = CAT, T26 = CAC, T27 = ATT, T28 = ATC, T29 = ATA, T30 = CTT T31 = CTC, T32 = CTA, T33 = CTG, T34 = TTA, T35 = TTG, T36 = AAA, T37 = AAG, T38 = TTT, T39 = TTC, T40 = CCT, T41 = CCC, T42 = CCA, T43 = CCG, T44 = TCT, T45 = TCC, T46 = TCA, T47 = TCG, T48 = AGT, T49 = AGC, T50 = ACT, T51 = ACC, T52 = ACA, T53 = ACG, T54 = TGG, T55 = TAT, T56 = TAC, T57 = GTT, T58 = GTC, T59 = GTA, T60 = GTG, T61 = ATG, T62 = TAA, T63 = TAG, and T64 = TGA.

Thereafter, according to Table 2, since there are a total of 64 triplets of DNA, then we can construct a set of 64 vectors {<T1, δ (T1)>, <T2, δ (T2)>,…, <T64, δ (T64)>} for the given sequence of triplets G = t1, t2, t3t M as follows: if T i  = t j ∈ {t1, t2, t3,…t M }, then δ (T i ) = δ (t j ), else δ (T i ) =0, for any i ∈ {1, 2,…, 64} and j ∈ {1, 2,…, M}.

For convenience, we call {<T1, δ (T1)>, <T2, δ (T2)>,…, <T64, δ (T64)>} as the triplet-repeat model set of G.

For any two given complete coding sequences A and B, suppose that their triplet-repeat model sets are {<T1, X1>, <T2, X2>,…, <T64, X64>} and {<T1, Y1>, <T2, Y2>,…, <T64, Y64>}, respectively. Then, on the basis of the 2D graphical representation given in the previous Section 2, we can define the weight deviation between the two DNA sequences A and B as the following formula (2) to measure the similarity between A and B.

WD A , B = i = 1 64 X i Y i Ψ T i 64
(2)

Obviously, the above formula (2) satisfies the fact that the smaller the weight deviation between the two DNA sequences A and B, the higher the degree of similarity of A and B. According to formula (2), the detailed similarity/dissimilarity matrix obtained for the coding sequences listed in Table 4 is illustrated in Table 5. Basing on the similarity matrix (Table 5) constructs a phylogenetic tree, which is shown in Figure 4.

Figure 4
figure 4

Phylogenetic tree based on the similarity matrix (Table 5 ).

Table 5 The similarity/dissimilarity matrix for the coding sequences of Table 1 based on the weight deviation

Observing Table 5, it is easy to find out that human, gorilla, and chimpanzee are most similar to each other, and the pairs like gorilla-chimpanzee (with weight deviation of 1.1266), human-gorilla (with weight deviation of 4.3359), and human-chimpanzee (with weight deviation of 5.2500) are the most similar species pairs, but Gallus and opossum are the most dissimilar to the others (with weight deviation bigger than 11). It is consistent with the fact that Gallus is not a mammal, whereas the others are mammals, and opossum is the most remote species from the remaining mammals. Similar results have been obtained in other papers by different approaches [2, 5, 7, 9, 33].

For testing the validity of our method, the existing results of the examination of the degree of similarity/dissimilarity of the coding sequences of β-globin genes of several species with the coding sequence of the human β-globin gene by means of approaches using alternative DNA sequence descriptors [2, 5, 7, 9] are listed in Table 6 for comparison.

Table 6 The similarity/dissimilarity of the coding sequences

From Table 6, we can find that the pairs like human-gorilla and human-chimpanzee are the two most similar species pairs when adopting (A) the method of our work, (B) the method of [2], (C) the method of [5], and (D) the method of [7], which is in accordance with the fact that gorilla and chimpanzee are the two most closest species of human, but when adopting (E) the method of [9], the most similar species pair is human-goat, which is obviously not correct. In addition, the pairs like human-Gallus and human-opossum are the two most dissimilar species pairs when adopting (A) the method of our work, (C) the method of [5], and (E) the method of [9], which is in accordance with the fact that Gallus is not a mammal, whereas the others are mammals, and opossum is the most remote species from the remaining mammals. However, when adopting (D) the method of [7], the two most dissimilar species pairs are human-opossum and human-lemur, which is obviously not reasonable also.

4. Conclusion

In this paper, we propose a new 2D graphical representation for DNA sequences based on triplets, and associating with a newly introduced concept of weight of triplets and a newly designed measure of similarity named weight deviation, we propose a new method to make similarity analysis of DNA sequences, in which no matrix computation is needed and reasonable and useful approaches for both computational scientists and molecular biologists to effectively analyze DNA sequences can be provided at the same time.