pure ruby bgzip reader. currenty, index is not supported.
Add this line to your application's Gemfile:
gem 'bgzfrb'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install bgzfrb
TODO: Write usage instructions here
require 'bgzrfb'
fname = 'a.vcf.gz'
BGZF::Reader.open(fname) do |f|
f.each_line do |line|
print line
end
end