News for hackers. Stuff that matters.
Re:OpenZL: An Open Source Format-Aware Compression Framework by felixhandte on Monday October 06, 2025 @03:51PM (#45495506)
It was really hard to resist spilling the beans about OpenZL on this recent HN post about compressing genomic sequence data [0]. It's a great example of the really simple transformations you can perform on data that can unlock significant compression improvements. OpenZL can perform that transformation internally (quite easily with SDDL!).

[0] https://news.ycombinator.com/item?id=45223827

Re:OpenZL: An Open Source Format-Aware Compression Framework by bede on Monday October 06, 2025 @04:46PM (#45496138)
Author of [0] here. Congratulations and well done for resisting. Eager to try it!

Edit: Have you any specific advice for training a fasta compressor beyond that given in e.g. "Using OpenZL" (https://openzl.org/getting-started/using-openzl/)

Re:OpenZL: An Open Source Format-Aware Compression Framework by perching_aix on Monday October 06, 2025 @04:52PM (#45496197)
That post immediately came to my mind too! Do you maybe have a comparison to share with respect to the specialized compressor mentioned in the OP there?

> Grace Blackwell’s 2.6Tbp 661k dataset is a classic choice for benchmarking methods in microbial genomics. (...) Karel Břinda’s specialist MiniPhy approach takes this dataset from 2.46TiB to just 27GiB (CR: 91) by clustering and compressing similar genomes together.

Re:OpenZL: An Open Source Format-Aware Compression Framework by Gethsemane on Monday October 06, 2025 @05:27PM (#45496522)
I'd love to see some benchmarks for this on some common genomic formats (fa, fq, sam, vcf). Will be doubly interesting to see its applicability to nanopore data - lots of useful data is lost because storing FAST5/POD5 is a pain.
Re:OpenZL: An Open Source Format-Aware Compression Framework by jltsiren on Monday October 06, 2025 @06:09PM (#45496863)
OpenZL compressed SAM/BAM vs. CRAM is the interesting comparison. It would really test the flexibility of the framework. Can OpenZL reach the same level of compression, and how much effort does it take?

I would not expect much improvement in compressing nanopore data. If you have a useful model of the data, creating a custom compressor is not that difficult. It takes some effort, but those formats are popular enough that compressors using the known models should already exist.

Re:OpenZL: An Open Source Format-Aware Compression Framework by terrelln on Monday October 06, 2025 @06:19PM (#45496945)
Do you happen to have a pointer to a good open source dataset to look at?

Naively and knowing little about CRAM, I would expect that OpenZL would beat Zstd handily out of the box, but need additional capabilities to match the performance of CRAM, since genomics hasn't been a focus as of yet. But it would be interesting to see how much we need to add is generic to all compression (but useful for genomics), vs. techniques that are specific only to genomics.

We're planning on setting up a blog on our website to highlight use cases of OpenZL. I'd love to make a post about this.

Re:OpenZL: An Open Source Format-Aware Compression Framework by bede on Monday October 06, 2025 @06:55PM (#45497227)
For BAM this could be a good place to start: https://www.htslib.org/benchmarks/CRAM.html

Happy to discuss further

Re:OpenZL: An Open Source Format-Aware Compression Framework by terrelln on Monday October 06, 2025 @07:04PM (#45497290)
Amazing, thank you!

I will take a look as soon as I get a chance. Looking at the BAM format, it looks like the tokenization portion will be easy. Which means I can focus on the compression side, which is more interesting.

Re:OpenZL: An Open Source Format-Aware Compression Framework by fwip on Monday October 06, 2025 @11:45PM (#45499198)
Another format that might be worth looking at in the bioinformatics world is hdf5. It's sort of a generic file format, often used for storing multiple related large tables. It has some built-in compression (gzip IIRC) but supports plugins. There may be an opportunity to integrate the self-describing nature of the hdf5 format with the self-describing decompression routines of openZL.
Re:OpenZL: An Open Source Format-Aware Compression Framework by felixhandte on Tuesday October 07, 2025 @02:06PM (#45506575)
Re:OpenZL: An Open Source Format-Aware Compression Framework by jayknight on Monday October 06, 2025 @05:38PM (#45496611)
And a comparison between CRAM and openzl on a sam/bam file. Is openzl indexable, where you can just extract and decompress the data you need from a file if you know where it is?
Re:OpenZL: An Open Source Format-Aware Compression Framework by terrelln on Monday October 06, 2025 @05:40PM (#45496624)
> Is openzl indexable

Not today. However, we are considering this as we are continuing to evolve the frame format, and it is likely we will add this feature in the future.

Re:OpenZL: An Open Source Format-Aware Compression Framework by felixhandte on Tuesday October 07, 2025 @01:10PM (#45505827)
Update: let's continue discussing genomic sequence compression on https://github.com/facebook/openzl/issues/76.