NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

HiCMC: High-Efficiency Contact Matrix Compressor

Yeremia Gunawan Adhisantoso, Tim K ̈orner, Fabian M ̈untefering, Jörn Östermann, Jan VogesResearch Square 2024

Abstract

Background: Chromosome organization is fundamental to biological processes such as replication, regulation, and transcription. Hi-C studies, which capture genome-wide chromosome conformation, generate vast amounts of data that are difficult to store and share. This problem is compounded by the dynamic nature of chromosome organization, requiring multiple temporal snapshots. We present the High-Efficiency Contact Matrix Compressor (HiCMC), a novel approach for efficient compression of Hi-C data.

Results: By modeling intrinsic biological structures like compartments and domains, HiCMC outperforms the state-of-the-art method CMC by approximately 8% and general-purpose methods (cooler, LZMA, bzip2) by over 50% across various cell lines and resolutions. HiCMC also integrates domain-specific metadata into its bitstreams to accelerate downstream analysis.

Conclusion: HiCMC leverages the hierarchical properties of contact matrices to achieve superior compression. It is available at https://github.com/sXperfect/hicmc.

Introduction

In genomics, Hi-C is a cornerstone technique for mapping the 3D architecture of chromosomes. It produces "contact matrices"—heatmaps representing the frequency of interactions between genomic regions. As research moves toward higher resolutions and dynamic studies, the resulting data volume has become a significant bottleneck.

Existing storage solutions often fail to exploit the specific patterns of DNA folding. General-purpose compressors (like ZIP or LZMA) are "biology-blind," while specialized formats like cooler do not fully utilize hierarchical structures such as Topologically Associating Domains (TADs). HiCMC addresses this by incorporating biological priors directly into the compression pipeline.

Methodology

HiCMC is a major extension of the previous Contact Matrix Compressor (CMC). The pipeline consists of five primary stages designed to maximize redundancy reduction through biological modeling.

The HiCMC compression pipeline, illustrating the stages from contact matrix splitting to entropy encoding.
  1. Splitting and Masking: The genome-wide matrix is divided into intra- and inter-chromosomal sub-matrices. Regions that cannot be aligned (empty rows/columns) are masked to save space.
  2. Model-based Transformation: This core innovation uses a TAD caller to identify domain boundaries. Interactions within domains are modeled as a function of genomic distance, while inter-domain interactions are modeled using constant average values.
  3. Sorting and Rearranging: Matrix values are rearranged based on the model's predictions. Grouping values with similar predicted magnitudes creates a "smoother" signal that is easier to compress.
  4. Mask-Value Decomposition: The transformed matrix is split into a binary mask (presence of interaction) and an array of actual interaction values.
  5. Entropy Coding: Final bit-level compression is performed using specialized algorithms: JBIG for masks, fpzip for model parameters, and PPMd for values.

Biological Modeling and Innovation

The fundamental insight of HiCMC is that biological structure represents predictable redundancy. Because DNA tends to form TADs, interaction patterns are not random. By using an accurate biological model, the compressor reduces the "entropy" or surprise in the data.

The model-based transformation pipeline (a) and the resulting model prediction (b) for Chromosome 17.

Crucially, while the model parameters are stored with reduced precision to save space, the overall compression remains bit-for-bit lossless. The model is used only to reorder the original data, not to replace it. Furthermore, because TAD boundaries are embedded in the bitstream, researchers can perform domain-specific analysis without re-calculating boundaries from scratch.

Results and Performance

The researchers evaluated HiCMC using the Rao et al. (2014) dataset, covering multiple human cell lines (e.g., GM12878, K562) and resolutions from 5 kb to 250 kb.

  • Compression Efficiency: HiCMC consistently achieved ~8% better compression than CMC and reduced file sizes by over 50% compared to cooler, LZMA, and bzip2.
  • Consistency: These gains were stable across all tested cell lines and resolutions.
  • Downstream Utility: The integration of structural metadata allows for faster access to specific genomic domains during analysis.

Conclusion and Future Work

HiCMC demonstrates that "putting biology into data compression" yields significant efficiency gains. While the model-based transformation is computationally intensive—particularly at high resolutions—the resulting storage savings are substantial. Future work will focus on improving performance for extremely sparse matrices (>90% empty) and exploring faster domain detection algorithms to reduce encoding overhead.

Summary updated

BibTeX
@inproceedings{adhisantoso2024hicmc,
  author = {Yeremia Gunawan Adhisantoso and Tim K ̈orner and Fabian M ̈untefering and Jörn Östermann and Jan Voges},
  title = {{HiCMC: High-Efficiency Contact Matrix Compressor}},
  booktitle = {Research Square},
  year = {2024},
  doi = {10.21203/rs.3.rs-4724082/v1},
}
Figure