Class Bio::Blast::WU::Report::Hit
In: lib/bio/appl/blast/wublast.rb  (CVS)
Parent: Default::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.

Methods

new   score  

Attributes

n_number  [R]  n-number (???)
pvalue  [R]  p-value

Public Class methods

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.

[Source]

# File lib/bio/appl/blast/wublast.rb, line 285
          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

Returns score.

[Source]

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

[Validate]