[BioRuby] GFF iterator feature

Hien Le hien.le at mail.mcgill.ca
Wed Sep 26 15:17:39 UTC 2007


Hello all,

I've been using Bio::GFF lately and couldn't seem to find a built-in 
way to iterate through the arrays of GFF lines. Am I missing something? 
Could future versions include such a feature?

For the moment, I've been adding an 'each' method to the class as follows:

class GFF < Bio::GFF::GFF3
  include Enumerable
  def each
    @records.each { |record| yield record }
  end
end

-H.



More information about the BioRuby mailing list