Sha256: 95e8fd4b3b21591eecfeaa76bd4d5ad591a3907de7221da7ccd17dce5d86b33b

Contents?: true

Size: 352 Bytes

Versions: 12

Compression:

Stored size: 352 Bytes

Contents

#! /usr/bin/ruby

require 'rubygems'
require 'nokogiri'

include Nokogiri

input = Nokogiri::XML(File.new("test/data/nt_example_blastn.m7"))

input.root.xpath("//Iteration").each do | e |
  print "---- "
  print e.xpath("Iteration_iter-num/text()"),"\n"
  print e.xpath("Iteration_hits/Hit/Hit_hsps/Hsp/Hsp_score/text()").map {|n| n.to_s}, "\n"

end


Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
bio-blastxmlparser-2.0.4 sample/nokogiri_dom.rb
bio-blastxmlparser-2.0.3 sample/nokogiri_dom.rb
bio-blastxmlparser-2.0.2 sample/nokogiri_dom.rb
bio-blastxmlparser-2.0.1 sample/nokogiri_dom.rb
bio-blastxmlparser-2.0.0 sample/nokogiri_dom.rb
bio-blastxmlparser-1.1.2 sample/nokogiri_dom.rb
bio-blastxmlparser-1.1.1 sample/nokogiri_dom.rb
bio-blastxmlparser-1.1.0 sample/nokogiri_dom.rb
bio-blastxmlparser-1.0.1 sample/nokogiri_dom.rb
bio-blastxmlparser-1.0.0 sample/nokogiri_dom.rb
bio-blastxmlparser-0.6.1 sample/nokogiri_dom.rb
bio-blastxmlparser-0.6.0 sample/nokogiri_dom.rb