Ruby binding for the tabix file indexing routines within the samtools package samtools.sourceforge.net/
Tabix provides utilities for indexing and subsequently querying regions of interest from large tab delimited files.
Files are indexed on three columns: [group, pos1, pos2] and must be position sorted
This gem was modeled on the bio-samtools gem: github.com/helios/bioruby-samtools
gem install bio-tabix
Compress the file
The following command will run the bgzip utility. You must supply input and output filenames. If you don't compress your data first, it will be compressed when the file is opened appending '.bgzf' to the filename. Bio::Tabix::TFile.compress(in_file,compressed_file)