Class: Bio::Blast::Report::Iteration
- Defined in:
- lib/bio/appl/blast/report.rb
Overview
Bio::Blast::Report::Iteration
Instance Attribute Summary collapse
-
#hits ⇒ Object
readonly
Returns an Array of Bio::Blast::Report::Hit objects.
-
#message ⇒ Object
Returns a String (or nil) containing execution message (typically “CONVERGED”).
-
#num ⇒ Object
Returns the number of iteration counts.
-
#query_def ⇒ Object
query definition, only available for new BLAST XML format.
-
#query_id ⇒ Object
query ID, only available for new BLAST XML format.
-
#query_len ⇒ Object
query length, only available for new BLAST XML format.
-
#statistics ⇒ Object
readonly
Returns a Hash containing execution statistics.
Instance Method Summary collapse
-
#each ⇒ Object
Iterates on each Bio::Blast::Report::Hit object.
-
#initialize ⇒ Iteration
constructor
A new instance of Iteration.
Constructor Details
#initialize ⇒ Iteration
Returns a new instance of Iteration.
209 210 211 212 213 214 |
# File 'lib/bio/appl/blast/report.rb', line 209 def initialize @message = nil @statistics = {} @num = 1 @hits = [] end |
Instance Attribute Details
#hits ⇒ Object (readonly)
Returns an Array of Bio::Blast::Report::Hit objects.
216 217 218 |
# File 'lib/bio/appl/blast/report.rb', line 216 def hits @hits end |
#message ⇒ Object
Returns a String (or nil) containing execution message (typically “CONVERGED”).
228 229 230 |
# File 'lib/bio/appl/blast/report.rb', line 228 def @message end |
#num ⇒ Object
Returns the number of iteration counts.
224 225 226 |
# File 'lib/bio/appl/blast/report.rb', line 224 def num @num end |
#query_def ⇒ Object
query definition, only available for new BLAST XML format
241 242 243 |
# File 'lib/bio/appl/blast/report.rb', line 241 def query_def @query_def end |
#query_id ⇒ Object
query ID, only available for new BLAST XML format
238 239 240 |
# File 'lib/bio/appl/blast/report.rb', line 238 def query_id @query_id end |
#query_len ⇒ Object
query length, only available for new BLAST XML format
244 245 246 |
# File 'lib/bio/appl/blast/report.rb', line 244 def query_len @query_len end |
#statistics ⇒ Object (readonly)
Returns a Hash containing execution statistics. Valid keys are: ‘db-len’, ‘db-num’, ‘eff-space’, ‘entropy’, ‘hsp-len’, ‘kappa’, ‘lambda’
221 222 223 |
# File 'lib/bio/appl/blast/report.rb', line 221 def statistics @statistics end |
Instance Method Details
#each ⇒ Object
Iterates on each Bio::Blast::Report::Hit object.
231 232 233 234 235 |
# File 'lib/bio/appl/blast/report.rb', line 231 def each @hits.each do |x| yield x end end |