[Paper Review] Encoding DNA sequences by integer chaos game representation
This paper introduces an integer Chaos Game Representation (iCGR) that encodes DNA sequences into three unique integers—sequence length and two coordinate integers—enabling lossless compression, encryption, and steganography. The method achieves 2 bits per nucleotide, reducing storage needs by 75% compared to standard 8-bit encoding, while preserving full sequence information through iterative integer mapping of nucleotide positions.
DNA sequences are fundamental for encoding genetic information. The genetic information may not only be understood by symbolic sequences but also from the hidden signals inside the sequences. The symbolic sequences need to be transformed into numerical sequences so the hidden signals can be revealed by signal processing techniques. All current transformation methods encode DNA sequences into numerical values of the same length. These representations have limitations in the applications of genomic signal compression, encryption, and steganography. We propose an integer chaos game representation (iCGR) of DNA sequences and a lossless encoding method DNA sequences by the iCGR. In the iCGR method, a DNA sequence is represented by the iterated function of the nucleotides and their positions in the sequence. Then the DNA sequence can be uniquely encoded and recovered using three integers from iCGR. One integer is the sequence length and the other two integers represent the accumulated distributions of nucleotides in the sequence. The integer encoding scheme can compress a DNA sequence by 2 bits per nucleotide. The integer representation of DNA sequences provides a prospective tool for sequence compression, encryption, and steganography. The Python programs in this study are freely available to the public at https://github.com/cyinbox/iCGR
Motivation & Objective
- To develop a lossless numerical encoding method for DNA sequences that enables efficient compression, encryption, and steganography.
- To overcome limitations of existing numerical representations that produce sequences of equal length to the original DNA, hindering storage and processing.
- To create a one-to-one integer mapping of DNA sequences using iterated function systems based on nucleotide positions and types.
- To demonstrate that tri-integers (n, X, Y) can uniquely represent and reconstruct any DNA sequence without loss of information.
- To achieve significant storage reduction by encoding each nucleotide in only 2 bits, compared to 8 bits in standard representation.
Proposed method
- Represents each nucleotide (A, C, G, T) as a coordinate vector in a 2D square space with vertices assigned as A=(1,1), T=(-1,1), C=(-1,-1), G=(1,-1).
- Uses iterative integer functions to compute cumulative coordinates: p_i,x = p_{i-1,x} + 2^{i-1} * α_{i,x} and similarly for y-coordinate.
- Encodes a DNA sequence of length n into three integers: n (length), X (final x-coordinate), and Y (final y-coordinate) from the iCGR trajectory.
- Decodes the sequence by reversing the iteration: p_{i-1,x} = p_{i,x} - 2^{i-1} * α_{i,x}, using the sign of the coordinate difference to recover each nucleotide.
- Employs a one-to-one mapping between nucleotide types and coordinate vectors to ensure unique and reversible encoding.
- Applies the method to real genomic sequences, including the human globin gene, to validate compression and reconstruction accuracy.
Experimental results
Research questions
- RQ1Can DNA sequences be losslessly encoded into three integers while preserving all sequence information?
- RQ2Does the integer CGR representation enable significant compression beyond standard 8-bit nucleotide encoding?
- RQ3Can the encoding and decoding process detect errors during data transfer due to the uniqueness of the tri-integer representation?
- RQ4Is the iCGR method suitable for genomic applications such as encryption and steganography?
- RQ5What is the average bit cost per nucleotide when using the iCGR encoding compared to conventional methods?
Key findings
- The iCGR method encodes any DNA sequence into three integers: sequence length n, and two coordinate integers X and Y, enabling full reconstruction.
- The method achieves a compression rate of 2 bits per nucleotide, representing a 75% reduction in storage compared to 8-bit symbolic encoding.
- For the Homo sapiens globin gene (171 bp), the total bit size of the tri-integers was 349 bits, equating to 2.041 bits per nucleotide.
- The encoding is bijective: each DNA sequence maps to a unique set of tri-integers, and each tri-integer set uniquely decodes to the original sequence.
- The method inherently supports error detection, as any corruption in the tri-integers will result in an invalid or non-matching sequence during decoding.
- The iCGR representation preserves all statistical and structural features of the original sequence, enabling use in genomic signal processing and analysis.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.