NYX: Format-aware, learned compression across omics file types

NYX is a format-aware, learned compression system built on the OpenZL framework that significantly improves both compression speed and ratios for various omics file types by exploiting their inherent data structures, outperforming existing format-specific compressors while maintaining lossless efficiency.

Patsakis, M., Chronopoulos, T., Mouratidis, I., Georgakopoulos-Soares, I.

Published 2026-03-17
📖 5 min read🧠 Deep dive
⚕️

This is an AI-generated explanation of a preprint that has not been peer-reviewed. It is not medical advice. Do not make health decisions based on this content. Read full disclaimer

Imagine you are running a massive library that holds the entire history of human life, written in the language of DNA. Every day, new books (genetic data) are added, and the shelves are overflowing. The problem isn't just that there are too many books; it's that the current way we store them is incredibly wasteful.

Right now, most libraries treat these biological "books" like a giant, messy pile of random paper scraps. They shove them into a generic box (using tools like gzip) without looking at what's actually written on the pages. This is like trying to pack a suitcase by throwing in a mix of socks, books, and laptops without folding anything or using the empty spaces between them. It works, but your suitcase is huge, heavy, and hard to carry.

Enter NYX, a new, smart packing system designed specifically for the unique "language" of biology.

The Problem: The "One-Size-Fits-All" Suitcase

Scientists have been trying to solve this for years. Some have built specialized suitcases just for DNA (like Genozip), but they are often complicated, hard to maintain, and only work for one specific type of book. Others just use the generic boxes, which leave a lot of empty air in the suitcase.

The issue is that biological data isn't random. It has patterns, just like a language.

  • FASTQ files (raw DNA reads) are like sentences with a very limited vocabulary (only A, C, G, T).
  • VCF files (genetic variations) are like a list of typos in a book, where most pages are identical and only a few words change.
  • H5AD files (single-cell data) are like massive spreadsheets where most cells are empty.

Generic compressors don't know these rules. They see a stream of bytes and try to guess. NYX, however, is like a super-smart librarian who knows exactly how these specific books are written.

The Solution: NYX's Three-Step Magic

NYX works in three simple stages, acting like a master packer:

  1. The Translator (Preprocessing): Before packing, NYX reads the file and reorganizes it. Imagine taking a messy pile of clothes and sorting them by type, color, and size, then folding them perfectly. NYX does this with data, turning messy streams into neat, predictable columns that are easy to compress.
  2. The Learner (Training): NYX doesn't just guess; it learns. It looks at a sample of the data and builds a custom "packing map." If it's packing a VCF file, it learns, "Oh, this file always has these specific columns, and the numbers repeat in this pattern." It creates a blueprint for the most efficient packing job possible.
  3. The Packer (Compression): Using the blueprint, NYX compresses the data. Because it understands the structure, it can shrink the file size dramatically—much more than a generic tool could.

The Results: Smaller Suitcases, Faster Trips

The paper tested NYX against the old ways (generic tools like gzip and specialized tools like Genozip) using real-world biological data.

  • Smaller Size: NYX shrank the files significantly more than the competition. For example, on one type of data (BED), it made the files 53% smaller than the best generic tool. On another (FASTQ), it was 36% smaller.
  • Faster Speed: Usually, when you compress something more, it takes longer to unpack. But NYX is fast. It didn't just shrink the files; it unpacked them much faster than the specialized tools. In fact, for some file types, it was 27 times faster to unpack than the old standard.

Think of it this way: If the old method was like folding a shirt by hand and putting it in a box, NYX is like a robot that folds the shirt perfectly, compresses it into a vacuum-seal bag, and can instantly pop it back open when you need it, all while using less space.

Why This Matters

This isn't just about saving a few megabytes. The world of genetic data is growing so fast that storage and transfer costs are becoming a bottleneck.

  • Cheaper Storage: Smaller files mean less money spent on hard drives and cloud storage.
  • Faster Science: Moving data between labs is instant, meaning researchers can share and analyze results faster.
  • One Tool to Rule Them All: Instead of needing a different tool for every file type, NYX is a unified system that handles almost all major biological formats (FASTA, FASTQ, VCF, etc.) with the same high performance.

The Catch

Like any new technology, it has a few quirks.

  • Setup Time: To get the best results, NYX needs a little time to "learn" the specific file type first (about 10 minutes), though this is a one-time cost.
  • CPU Usage: Unpacking the data requires a bit of extra processing power to put the pieces back together perfectly, though this is usually negligible on modern computers.

The Bottom Line

NYX is a game-changer for biology. It takes the chaotic, massive world of genetic data and organizes it with a level of intelligence that generic tools can't match. It proves that by understanding the structure of the data, we can store more, spend less, and do science faster. It's the difference between throwing your clothes in a bag and using a high-tech vacuum sealer: same clothes, but you can fit a whole wardrobe in the space of a single t-shirt.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →