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