Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bgzip support

39 views
Skip to first unread message

ArK

unread,
Apr 3, 2019, 12:11:09 PM4/3/19
to
Hi,
I'm looking for a way to manipulate bgzip files in Tcl. Basically bgzip is a gzip-compatible format with an extra field in the headers to allow random access. It is used in bioinformatics tools such as tabix.

You can take a look at the C code here: https://github.com/lh3/samtools/blob/master/bgzf.c
There exists a Python implementation in Biopython: https://github.com/biopython/biopython/blob/master/Bio/bgzf.py

I'm not really sure how to add the support for this in Tcl, as it is built on top of zlib to allow the seek operation. Would it be possible to develop something similar to the command used for gzip:
zlib push bgzip ?

Regards,
ArK
0 new messages