class Bio::BlastXMLParser::XmlIterator

Iterate a BLAST file yielding (lazy) results

Public Class Methods

new(blastfilename) click to toggle source
# File lib/bio/db/blast/xmliterator.rb, line 8
def initialize blastfilename
  @fn = blastfilename
end

Public Instance Methods

to_enum() click to toggle source
# File lib/bio/db/blast/xmliterator.rb, line 12
def to_enum
  logger = Bio::Log::LoggerPlus['bio-blastxmlparser']
  logger.info("parsing (:nosplit) #{@fn}")
  NokogiriBlastXml.new(File.new(@fn)).to_enum
end