Dynamic compression schemes for graph coloring

Harun Mustafa, Ingo Schilken, Mikhail Karasikov, Carsten Eickhoff, Gunnar Rätsch, André Kahles · DOI

TL;DR

This paper introduces two novel methods, a lossless wavelet trie-based approach and a lossy Bloom filter-based approach, for efficiently compressing the "colorings" of de Bruijn graphs, which represent vast amounts of genomic sequencing data. These methods significantly reduce memory requirements, enabling more dynamic and scalable analysis of this data.

What Problem Does This Paper Address?

The explosion of high-throughput DNA sequencing has generated an unprecedented volume of data. While assembly graphs are a useful way to represent this data, they can be memory-intensive. Specifically, "colored" de Bruijn graphs, which associate metadata (like sample origin or taxonomic information) with graph edges, are particularly challenging to store and query efficiently. Existing methods often struggle with the scale and dynamic nature of this data. This paper tackles the problem of compressing these graph colorings, aiming to reduce memory footprints while allowing for efficient updates and queries, which is crucial for biomedical research.

Methods

The authors propose two distinct compression schemes:

  • Lossless Compression with Wavelet Tries: This method adapts the wavelet trie data structure, a compact prefix tree for bit vectors, to compress the "annotation matrix" that represents the graph coloring. The key innovation is a parallel construction algorithm using trie merging, which allows for efficient building and dynamic updates of the compressed coloring. This approach leverages correlations between matrix columns to achieve good compression.
  • Lossy Compression with Bloom Filters: For scenarios where exact reconstruction isn't critical, a probabilistic approach using Bloom filters is presented. Bloom filters are efficient for approximate set membership queries. The authors enhance this by incorporating graph topology information. They use "neighborhood-based correction," where the colorings of adjacent edges in the graph are used to correct potential false positives in the Bloom filters, significantly improving compression ratios.

Datasets

The evaluation used a variety of real-world datasets, including:

  • Viral datasets: Virus100, Virus1000, Virus50000 (representing increasing numbers of genomes).
  • Bacterial dataset: Lactobacillus.
  • Human genome datasets: chr22+gnomAD and hg19+gnomAD.

These datasets were chosen to represent diverse color distributions, annotation matrix sizes, and graph topologies, providing a robust testbed for the proposed methods.

Key Insights and Ideas

  • Topology is Key: Both compression schemes demonstrate that leveraging the underlying graph's topology is crucial for achieving significant compression improvements. This is a departure from purely data-structure-centric approaches.
  • Lossy Compression Pays Off: Dropping the requirement for perfect lossless compression, especially with Bloom filters, leads to dramatic memory savings (up to three orders of magnitude) while maintaining high accuracy.
  • Dynamic Updates are Feasible: The proposed wavelet trie method is designed for dynamic updates (adding/removing colors or edges), which is essential for evolving biological datasets.
  • Parallelism is Achievable: The parallel construction of wavelet tries and the inherent parallelism of Bloom filters allow for efficient processing of large datasets.

Key Results

  • Wavelet Tries: Outperformed general compression methods like gzip and VARI, and performed comparably or slightly better than bzip2 and Rainbowfish. Using "class indicator bits" (a form of topology-informed compression) improved compression ratios by up to tenfold on some datasets.
  • Bloom Filters: Achieved dramatic improvements, offering compression ratios over an order of magnitude better than bzip2 and Rainbowfish at 95% accuracy. For example, they reduced the bits per edge from 5.8 to 0.35 for the Virus100 dataset. Neighborhood correction led to 70-fold decreases in bits per edge for similar accuracies.
  • Update Times: Wavelet tries were an order of magnitude faster for updates, and Bloom filters were two orders of magnitude faster compared to previous methods.

Limitations and Future Work

  • Wavelet Trie Limitations: The performance of wavelet tries can degrade on datasets with very sparse and mutually exclusive rows, leading to tree imbalance. Future work could involve more principled approaches to determine optimal backbone paths and row ordering.
  • Bloom Filter Limitations: The neighborhood-based correction relies on the presence of long, identically-colored paths. In datasets with shorter paths, this assumption is less effective. Future work could explore alternative probabilistic set representations that support item removal and decouple graph access from filter access.
  • Scalability of Bloom Filters: For rapidly growing datasets, Bloom filters might require re-initialization. Future research could focus on improving scaling properties and exploring compressed Bloom filters.

Summary updated

BibTeX
@article{mustafa2019dynamic,
  author = {Harun Mustafa and Ingo Schilken and Mikhail Karasikov and Carsten Eickhoff and Gunnar Rätsch and André Kahles},
  title = {{Dynamic compression schemes for graph coloring}},
  journal = {Bioinformatics},
  year = {2019},
  doi = {10.1093/bioinformatics/bty632},
}
Figure