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.



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

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

#messageObject

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



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

def message
  @message
end

#numObject

Returns the number of iteration counts.



224
225
226
# File 'lib/bio/appl/blast/report.rb', line 224

def num
  @num
end

#query_defObject

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_idObject

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_lenObject

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

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

#eachObject

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