Class: Bio::Blast::Bl2seq::Report::Iteration
- Inherits:
-
Default::Report::Iteration
- Object
- Default::Report::Iteration
- Bio::Blast::Bl2seq::Report::Iteration
- Defined in:
- lib/bio/appl/bl2seq/report.rb
Overview
Bio::Blast::Bl2seq::Report::Iteration stores information about a iteration. Normally, it may contain some Bio::Blast::Bl2seq::Report::Hit objects.
Note that its main existance reason is to keep complatibility between Bio::Blast::Default::Report::* classes.
Instance Attribute Summary
Attributes inherited from Default::Report::Iteration
#database, #db_len, #db_num, #eff_space, #entropy, #expect, #gapped_entropy, #gapped_kappa, #gapped_lambda, #kappa, #lambda, #message, #num, #pattern_in_database, #posted_date
Instance Method Summary collapse
-
#hits ⇒ Object
Returns the hits of the iteration.
-
#initialize(data) ⇒ Iteration
constructor
Creates a new Iteration object.
Methods inherited from Default::Report::Iteration
#converged?, #each, #hits_for_pattern, #hits_found_again, #hits_newly_found, #pattern, #pattern_positions
Constructor Details
#initialize(data) ⇒ Iteration
Creates a new Iteration object. It is designed to be called only internally from the Bio::Blast::Default::Report class. Users shall not use the method directly.
92 93 94 95 96 97 98 99 100 |
# File 'lib/bio/appl/bl2seq/report.rb', line 92 def initialize(data) @f0stat = [] @f0dbstat = Bio::Blast::Default::Report::AlwaysNil.instance @hits = [] @num = 1 while r = data[0] and /^\>/ =~ r @hits << Hit.new(data) end end |
Instance Method Details
#hits ⇒ Object
Returns the hits of the iteration. It returns an array of Bio::Blast::Bl2seq::Report::Hit objects.
104 |
# File 'lib/bio/appl/bl2seq/report.rb', line 104 def hits; @hits; end |