FastqZip: An Improved Reference-Based Genome Sequence Lossy Compression Framework
Yuanjian Liu, Huihao Luo, Zhijun Han, Yao Hu, Yehui Yang, Kyle Chard, Sheng Di, Ian Foster, Jiesheng Wu
TL;DR
FastqZip introduces a reference-based FASTQ compressor that reorders reads, employs a refined sequence matching framework, and enables lossy quality-score compression, followed by final lossless compression with $\text{BSC}$ or $\text{ZPAQ}$. Its core innovations include a seed-based index with full seed-position coverage, a global+local sequence alignment that handles insertions/deletions via $\text{WFA-2}$, and a segmentation strategy that uses delta encoding and dominant quality bitmaps. Across five real datasets, FastqZip achieves about 10% higher compression ratio than Genozip, with a controllable slowdown primarily due to quality-score processing; lossy-quality options can further boost ratios. The work demonstrates strong scalability and memory efficiency on multi-core hardware, and points to future work in alternative lossless codecs and potential GPU/FPGA acceleration to further accelerate compression.
Abstract
Storing and archiving data produced by next-generation sequencing (NGS) is a huge burden for research institutions. Reference-based compression algorithms are effective in dealing with these data. Our work focuses on compressing FASTQ format files with an improved reference-based compression algorithm to achieve a higher compression ratio than other state-of-the-art algorithms. We propose FastqZip, which uses a new method mapping the sequence to reference for compression, allows reads-reordering and lossy quality scores, and the BSC or ZPAQ algorithm to perform final lossless compression for a higher compression ratio and relatively fast speed. Our method ensures the sequence can be losslessly reconstructed while allowing lossless or lossy compression for the quality scores. We reordered the reads to get a higher compression ratio. We evaluate our algorithms on five datasets and show that FastqZip can outperform the SOTA algorithm Genozip by around 10% in terms of compression ratio while having an acceptable slowdown.
