Method: Bio::HMMER::Report::Hit#initialize
- Defined in:
- lib/bio/appl/hmmer/report.rb
#initialize(hit_data) ⇒ Hit
Sets hit data.
391 392 393 394 395 396 397 |
# File 'lib/bio/appl/hmmer/report.rb', line 391 def initialize(hit_data) @hsps = Array.new if /^(\S+)\s+(.*?)\s+(\S+)\s+(\S+)\s+(\S+)$/ =~ hit_data @accession, @description, @score, @evalue, @num = \ [$1, $2, $3.to_f, $4.to_f, $5.to_i] end end |