Sha256: bdeaf57c6fd90ef68261af73c8145e3fce52f3c03be275ac4c592692fd70b8be

Contents?: true

Size: 398 Bytes

Versions: 4

Compression:

Stored size: 398 Bytes

Contents


module Bio
  module BlastXMLParser

    # Iterate a BLAST file yielding (lazy) results
    class XmlIterator
      def initialize blastfilename
        @fn = blastfilename
      end
      
      def to_enum
        logger = Bio::Log::LoggerPlus['bio-blastxmlparser']
        logger.info("parsing (:nosplit) #{@fn}")
        NokogiriBlastXml.new(File.new(@fn)).to_enum
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bio-blastxmlparser-2.0.4 lib/bio/db/blast/xmliterator.rb
bio-blastxmlparser-2.0.3 lib/bio/db/blast/xmliterator.rb
bio-blastxmlparser-2.0.2 lib/bio/db/blast/xmliterator.rb
bio-blastxmlparser-2.0.1 lib/bio/db/blast/xmliterator.rb