module Bio::GFFbrowser::Digest::NoCacheHelpers::SeekRec
Module to fetch a line from GFF3
file and returns a parsed record
Public Class Methods
fetch(fh,fpos,parser)
click to toggle source
Fetch a record using fh and file seek position
# File lib/bio/db/gff/digest/gffnocache.rb, line 24 def SeekRec::fetch(fh,fpos,parser) return nil if fh==nil or fpos==nil fh.seek(fpos) if parser == :bioruby GFF::GFF3::BioRubyFileRecord.new(fpos, fh.gets) else GFF::GFF3::FastParserFileRecord.new(fpos, fh.gets) end end