Class Bio::Blast::WU::Report::Iteration
In: lib/bio/appl/blast/wublast.rb  (CVS)
Parent: Default::Report::Iteration

Iteration class for WU-BLAST report. Though WU-BLAST does not iterate like PSI-BLAST, Bio::Blast::WU::Report::Iteration aims to keep compatibility with Bio::Blast::Default::Report::* classes. It may contain some Bio::Blast::WU::Report::Hit objects. Because it inherits Bio::Blast::Default::Report::Iteration, please also refer Bio::Blast::Default::Report::Iteration.

Methods

new   warnings  

Public Class methods

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

[Source]

# File lib/bio/appl/blast/wublast.rb, line 200
          def initialize(data)
            @f0stat = []
            @f0dbstat = Default::Report::AlwaysNil.instance
            @f0hitlist = []
            @hits = []
            @num = 1
            @f0message = []
            @f0warnings = []
            return unless r = data.shift
            @f0hitlist << r
            return unless r = data.shift
            unless /\*{3} +NONE +\*{3}/ =~ r then
              @f0hitlist << r
              while r = data.first and /^WARNING\: / =~ r
                @f0warnings << data.shift
              end
              while r = data.first and /^\>/ =~ r
                @hits << Hit.new(data)
              end
            end #unless
          end

Public Instance methods

Returns warning messages.

[Source]

# File lib/bio/appl/blast/wublast.rb, line 223
          def warnings
            @f0warnings
          end

[Validate]