Sha256: afbf9a95fe89315d602362193b279016b281ed05fc364fbba75b8a53ce042d2a

Contents?: true

Size: 408 Bytes

Versions: 7

Compression:

Stored size: 408 Bytes

Contents

#! /usr/bin/ruby

rootpath = File.dirname(File.dirname(__FILE__))
$: << File.join(rootpath,'lib')

require 'bio-blastxmlparser'
fn = 'test/data/nt_example_blastn.m7'
n = Bio::BlastXMLParser::XmlIterator.new(fn).to_enum
n.each do | iter |
  puts "Hits for " + iter.query_id
  iter.each do | hit |
    hit.each do | hsp |
      print hit.hit_id, "\t", hsp.evalue, "\n" if hsp.evalue < 0.001
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bio-blastxmlparser-2.0.4 sample/blastxmlparserdemo.rb
bio-blastxmlparser-2.0.3 sample/blastxmlparserdemo.rb
bio-blastxmlparser-2.0.2 sample/blastxmlparserdemo.rb
bio-blastxmlparser-2.0.1 sample/blastxmlparserdemo.rb
bio-blastxmlparser-2.0.0 sample/blastxmlparserdemo.rb
bio-blastxmlparser-1.1.2 sample/blastxmlparserdemo.rb
bio-blastxmlparser-1.1.1 sample/blastxmlparserdemo.rb