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.
213 214 215 216 217 218 |
# File 'lib/bio/appl/blast/report.rb', line 213 def initialize @message = nil @statistics = {} @num = 1 @hits = [] end |
Instance Attribute Details
#hits ⇒ Object (readonly)
Returns an Array of Bio::Blast::Report::Hit objects.
220 221 222 |
# File 'lib/bio/appl/blast/report.rb', line 220 def hits @hits end |
#message ⇒ Object
Returns a String (or nil) containing execution message (typically “CONVERGED”).
232 233 234 |
# File 'lib/bio/appl/blast/report.rb', line 232 def @message end |
#num ⇒ Object
Returns the number of iteration counts.
228 229 230 |
# File 'lib/bio/appl/blast/report.rb', line 228 def num @num end |
#query_def ⇒ Object
query definition, only available for new BLAST XML format
245 246 247 |
# File 'lib/bio/appl/blast/report.rb', line 245 def query_def @query_def end |
#query_id ⇒ Object
query ID, only available for new BLAST XML format
242 243 244 |
# File 'lib/bio/appl/blast/report.rb', line 242 def query_id @query_id end |
#query_len ⇒ Object
query length, only available for new BLAST XML format
248 249 250 |
# File 'lib/bio/appl/blast/report.rb', line 248 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’
225 226 227 |
# File 'lib/bio/appl/blast/report.rb', line 225 def statistics @statistics end |
Instance Method Details
#each ⇒ Object
Iterates on each Bio::Blast::Report::Hit object.
235 236 237 238 239 |
# File 'lib/bio/appl/blast/report.rb', line 235 def each @hits.each do |x| yield x end end |