Class: Bio::Blast::Report::Iteration

Inherits:
Object
  • Object
show all
Defined in:
lib/bio/appl/blast/report.rb

Overview

Bio::Blast::Report::Iteration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeIteration

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

#hitsObject (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

#messageObject

Returns a String (or nil) containing execution message (typically “CONVERGED”).



232
233
234
# File 'lib/bio/appl/blast/report.rb', line 232

def message
  @message
end

#numObject

Returns the number of iteration counts.



228
229
230
# File 'lib/bio/appl/blast/report.rb', line 228

def num
  @num
end

#query_defObject

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_idObject

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_lenObject

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

#statisticsObject (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

#eachObject

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