grabix
grabix copied to clipboard
a wee tool for random access into BGZF files.
Hey - this is a great little utility. Any interest in tagging a release so this can be distributed via home brew or Linux brew? Thanks!
Previous src allowed 1 set of gets, then closed the file. Now you open, can make several calls, then close.
--- grabix-0.0~git20130718.orig/grabix.cpp +++ grabix-0.0~git20130718/grabix.cpp @@ -261,7 +261,7 @@ srand(seed); ``` // reservoir sample ``` - size_t s, N, result_size; - uint64_t N=0, result_size=0; vector sample; kstring_t *line; line = new...
--- grabix-0.0~git20130718.orig/Makefile +++ grabix-0.0~git20130718/Makefile @@ -1,2 +1,7 @@ +LDFLAGS+= -lstdc++ -lz +CFLAGS+=-Wall all: - gcc -Wall -O2 -o grabix grabix.cpp bgzf.c -lstdc++ -lz - gcc $(CFLAGS) -o grabix grabix.cpp bgzf.c...
One of the bits created for the Debian package. Enjoy. Steffen .TH GRABIX 1 "July 18, 2013" .SH NAME grabix - program to do something .SH SYNOPSIS .B bgzip .RI...
grab can be _much_ faster if we just use a simple getc(). The overhead of getline() is rather absurd. This makes a big difference for large files such as the...