Class: Bio::Blast::Bl2seq::Report::F0dbstat

Inherits:
Default::Report::F0dbstat show all
Defined in:
lib/bio/appl/bl2seq/report.rb

Overview

Stores format0 database statistics. Internal use only. Users must not use the class.

Instance Attribute Summary

Attributes inherited from Default::Report::F0dbstat

#f0dbstat, #f0params

Instance Method Summary (collapse)

Methods inherited from Default::Report::F0dbstat

#database, #eff_space, #expect, #gap_extend, #gap_open, #initialize, #matrix, #num_hits, #posted_date, #sc_match, #sc_mismatch

Constructor Details

This class inherits a constructor from Bio::Blast::Default::Report::F0dbstat

Instance Method Details

- (Object) db_len

Returns number of letters in database.



72
73
74
75
76
77
78
# File 'lib/bio/appl/bl2seq/report.rb', line 72

def db_len
  unless defined?(@db_len)
    parse_params
    @db_len = @hash['length of database'].to_i
  end
  @db_len
end

- (Object) db_num

Returns number of sequences in database.



63
64
65
66
67
68
69
# File 'lib/bio/appl/bl2seq/report.rb', line 63

def db_num
  unless defined?(@db_num)
    parse_params
    @db_num = @hash['Number of Sequences'].to_i
  end
  @db_num
end