Abstract
DNA sequencing technology has advanced to a point where storage is becoming the central bottleneck in the acquisition and mining of more data. Large amounts of data are vital for genomics research, and generic compression tools, while viable, cannot offer the same savings as approaches tuned to inherent biological properties. We propose an algorithm to compress a target genome given a known reference genome. The proposed algorithm first generates a mapping from the reference to the target genome, and then compresses this mapping with an entropy coder. As an illustration of the performance: applying our algorithm to James Watson's genome with hg18 as a reference, we are able to reduce the 2991 megabyte (MB) genome down to 6.99 MB, while Gzip compresses it to 834.8 MB.
Introduction
The rapid decline in DNA sequencing costs has shifted the primary challenge from data acquisition to data storage. A single human genome comprises approximately 3 billion base pairs; however, any two human genomes are over 99% identical. Standard compression tools like Gzip are "genome-blind," failing to exploit this massive inherent redundancy. This paper introduces a specialized reference-based compression algorithm that leverages known "templates" to achieve orders of magnitude better efficiency than general-purpose tools.
Methodology
The proposed algorithm addresses two key challenges in genomic data: synchronization and edit categorization. Unlike standard LZ77-based tools, this approach accounts for insertions and deletions (indels) that shift sequences relative to one another, breaking the "joint stationarity" many algorithms rely on.
Mapping with a Dynamic Window
The algorithm identifies the longest possible matches in the reference genome for segments of the target genome. To handle the drift caused by indels, a dynamic sliding window is employed. Instead of an exhaustive search, the algorithm searches within a window centered at a predicted position. This center is updated based on the median of recent match offsets, providing robustness against localized sequence changes.
Biological Edit Segmentation and Entropy Coding
Following the initial mapping, the algorithm refines the instructions needed to reconstruct the target genome. Differences are categorized into biologically meaningful edits: substitutions (SNPs), insertions, and deletions. These instructions are then compressed using an entropy coder. Delta encoding is used for positions to store distances between edits, and Golomb/Huffman coding is used to efficiently represent the resulting integers.
Results and Discussion
The algorithm was evaluated across human and plant genomes, including James Watson (JW), Han Chinese (YH), and Arabidopsis thaliana (TAIR).
As shown in the table above, the proposed algorithm significantly outperforms both general-purpose tools (Gzip) and other specialized reference-based tools (GReEn) in most scenarios. For instance, James Watson's genome was compressed to just 6.99 MB using hg18 as a reference, compared to 834.8 MB for Gzip and 18.23 MB for GReEn. In the case of Arabidopsis (TAIR9 vs TAIR8), the algorithm achieved a size of 0.0034 MB, nearly half the size of GReEn.
The results underscore the importance of the reference genome. While human-to-human compression is highly effective, the algorithm's performance can degrade if the reference is too distant or if the data contains "bursty" indels. This is evident in the Rice (TIGR) dataset, where the algorithm lost synchronization, resulting in a larger file size (29.25 MB) compared to GReEn (0.12 MB).
Conclusion and Future Work
By explicitly modeling biological variations like SNPs and indels, the proposed algorithm achieves state-of-the-art compression ratios for genomic data. Future work will focus on optimizing computational speed through parallelization and implementing random access capabilities, allowing researchers to decompress specific genomic regions without processing the entire file.
Summary updated