class Bio::Blast::WU::Report::Hit

Bio::Blast::WU::Report::Hit contains information about a hit. It may contain some Bio::Blast::WU::Report::HSP objects.

Because it inherits Bio::Blast::Default::Report::Hit, please also refer Bio::Blast::Default::Report::Hit.

Attributes

n_number[R]

n-number (???)

pvalue[R]

p-value

Public Class Methods

new(data) click to toggle source

Creates a new Hit object. It is designed to be called only internally from the Bio::Blast::WU::Report::Iteration class. Users should not call the method directly.

# File lib/bio/appl/blast/wublast.rb, line 406
def initialize(data)
  @f0hitname = data.shift
  @hsps = []
  while r = data.first
    if r =~ /^\s*(?:Plus|Minus) +Strand +HSPs\:/ then
      data.shift
      r = data.first
    end
    if /\A\s+Score/ =~ r then
      @hsps << HSP.new(data)
    else
      break
    end
  end
  @again = false
end

Public Instance Methods

score() click to toggle source

Returns score.

# File lib/bio/appl/blast/wublast.rb, line 424
def score
  @score
end