AMGC: Adaptive match-based genomic compression algorithm

Jia Wang, Yi Niu, Tianyi Xu, Mingming Ma, Dahua Gao, Guangming ShiarXiv 2023 · DOI

Abstract

Next-Generation Sequencing (NGS) technologies generate vast quantities of genomic data, creating significant storage and transmission challenges. This paper introduces AMGC (Adaptive Matching-based Genome Compression), a novel reference-based compression algorithm. By exploiting the non-uniform distribution of sequencing errors and the local linear correlation of read positions, AMGC achieves an average 81.23% improvement in compression ratio over current state-of-the-art methods.

Introduction

The rapid advancement of NGS machines, such as the Illumina NovaSeq 6000, allows for the production of up to 3TB of data in just two days. This data is primarily stored in FASTQ files, which consist of read identifiers, quality scores, and genetic sequences (reads). While quality score compression has seen significant progress, the compression of read sequences often relies on flawed assumptions: that matching positions are uniformly distributed and that sequencing errors occur randomly. AMGC addresses these physical and chemical biases inherent in the sequencing process to provide superior compression efficiency.

Methods

AMGC utilizes three specialized modules to optimize the reference-based compression pipeline:

  1. Bit-plane-based Differential refpos Encoding: Recognizing that DNA is sequenced in a specific order, AMGC identifies that matching positions (refpos) of adjacent reads often grow linearly. It uses median filtering to smooth noise and encodes data using efficient bit-planes.
  2. Adaptive Binary mispos Encoding: Sequencing errors are more frequent at the "tail" of a read due to chemical decay during synthesis. AMGC employs a high-order context model to learn this distribution and predict mismatch positions (mispos) more effectively.
  3. Recursive Split Matching: To minimize the size of the expensive "unmapped" sequence block, AMGC recursively splits reads that fail initial matching. This allows the algorithm to "save" high-quality segments of a read even if other parts contain errors.
The AMGC workflow: (a) file splitting, (b) data categorization into name, read, and quality blocks, (c) the matching model, and (d) encoding strategies.

Key Insights: The Locality of Sequencing

A core innovation of AMGC is treating the sequence of matching positions as a 1D signal with a locally growing trend. By applying signal processing techniques, the algorithm isolates predictable growth from random noise. Furthermore, by accounting for the chemical degradation of enzymes during the sequencing process—which causes error spikes at the end of reads—AMGC turns a biological limitation into a compression advantage.

Scatter plot demonstrating the linear growth trend and locality of read positions on the reference genome.

Results and Performance

The algorithm was evaluated against industry standards including GTZ, LEON, HARC, PgRC, and gzip using AVS-G benchmark datasets (Human, Mouse, and Arabidopsis).

  • Compression Ratio: AMGC outperformed the second-best compressor (AVS-G) by an average of 81.23%, with gains reaching 204% on specific datasets.
  • Efficiency: The algorithm significantly reduced the storage footprint of matching positions, mismatch positions, and unmapped sequences.
  • Complexity: While AMGC requires more RAM (e.g., 34.7GB for large human datasets), its time complexity remains comparable to existing high-performance tools, making it a viable solution as high-capacity memory becomes more accessible.

Conclusion

AMGC represents a significant leap in genomic data storage efficiency by moving away from idealized mathematical models toward an approach that respects the physical realities of sequencing. Future work will focus on extending these techniques to spatial omics data and developing more sophisticated k-mer mapping tools to further enhance the initial matching phase.

Summary updated

BibTeX
@misc{wang2023amgc,
  author = {Jia Wang and Yi Niu and Tianyi Xu and Mingming Ma and Dahua Gao and Guangming Shi},
  title = {{AMGC: Adaptive match-based genomic compression algorithm}},
  year = {2023},
  eprint = {2304.01031},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.01031},
}
Figure