ouch icon indicating copy to clipboard operation
ouch copied to clipboard

bgzf support

Open Quantumplation opened this issue 2 years ago • 1 comments

bgzip files are an extension to gzip that takes advantage of the fact that you can have arbitrary data before and after the actual contents of the gzip file; it concatenates together a bunch of gzip files in 64kb chunks, and then uses an index file to record the offsets of the gzip headers. This lets you decompress subsets of the file if you know where to look, without having to decompress the whole file.

Currently, ouch interprets these files as a normal gzip file, and so only unpacks the first 64kb chunk.

It'd be great to get full bgzf support :)

Quantumplation avatar Aug 03 '23 15:08 Quantumplation

@marcospb19 https://crates.io/crates/gzp has some bgzf support but I haven't looked much into it

vrmiguel avatar Oct 25 '25 04:10 vrmiguel