Class: Bio::MAF::BGZFChunkReader

Inherits:
Object
  • Object
show all
Defined in:
lib/bio/maf/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(f, _chunk_size) ⇒ BGZFChunkReader

Returns a new instance of BGZFChunkReader.



77
78
79
80
# File 'lib/bio/maf/parser.rb', line 77

def initialize(f, _chunk_size)
  @f = f
  @r = Bio::BGZF::Reader.new(f)
end

Instance Attribute Details

#fObject (readonly)



75
76
77
# File 'lib/bio/maf/parser.rb', line 75

def f
  @f
end

#rObject (readonly)



75
76
77
# File 'lib/bio/maf/parser.rb', line 75

def r
  @r
end

Instance Method Details

#posObject



82
83
84
# File 'lib/bio/maf/parser.rb', line 82

def pos
  r.tell
end

#read_chunkObject



86
87
88
# File 'lib/bio/maf/parser.rb', line 86

def read_chunk
  r.read_block
end

#read_chunk_at(vo, _size) ⇒ Object



90
91
92
# File 'lib/bio/maf/parser.rb', line 90

def read_chunk_at(vo, _size)
  r.read_block_at(vo)
end