class Bio::BlastXMLParser::NokogiriBlastHit
Attributes
parent[R]
Public Class Methods
new(hit, parent)
click to toggle source
# File lib/bio/db/blast/parser/nokogiri.rb, line 98 def initialize hit, parent @xml = hit @parent = parent end
Public Instance Methods
each() { |h| ... }
click to toggle source
# File lib/bio/db/blast/parser/nokogiri.rb, line 117 def each hsps.each { | h | yield h } end
hsps()
click to toggle source
# File lib/bio/db/blast/parser/nokogiri.rb, line 103 def hsps Enumerator.new { |yielder| @xml.children.each do | hit_field | if hit_field.name == 'Hit_hsps' hit_field.children.each do | hsp | if hsp.name == 'Hsp' yielder.yield NokogiriBlastHsp.new(hsp,self) end end end end } end
to_s()
click to toggle source
# File lib/bio/db/blast/parser/nokogiri.rb, line 122 def to_s s = <<EOM iter_num=#{parent.iter_num}, hit_id=#{hit_id}, hit_def=#{hit_def}, hit_num=#{hit_num} EOM end