Class: Bio::Blast::WU::Report::Hit

Inherits:
Default::Report::Hit show all
Defined in:
lib/bio/appl/blast/wublast.rb

Overview

Bio::Blast::WU::Report::Hit contains information about a hit. It may contain some Bio::Blast::WU::Report::HSP objects.

Because it inherits Bio::Blast::Default::Report::Hit, please also refer Bio::Blast::Default::Report::Hit.

Instance Attribute Summary collapse

Attributes inherited from Default::Report::Hit

#hsps

Instance Method Summary collapse

Methods inherited from Default::Report::Hit

#bit_score, #definition, #each, #evalue, #found_again?, #identity, #lap_at, #len, #midline, #overlap, #query_end, #query_seq, #query_start, #target_end, #target_id, #target_seq, #target_start

Constructor Details

#initialize(data) ⇒ Hit

Creates a new Hit object. It is designed to be called only internally from the Bio::Blast::WU::Report::Iteration class. Users should not call the method directly.


406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
# File 'lib/bio/appl/blast/wublast.rb', line 406

def initialize(data)
  @f0hitname = data.shift
  @hsps = []
  while r = data.first
    if r =~ /^\s*(?:Plus|Minus) +Strand +HSPs\:/ then
      data.shift
      r = data.first
    end
    if /\A\s+Score/ =~ r then
      @hsps << HSP.new(data)
    else
      break
    end
  end
  @again = false
end

Instance Attribute Details

#n_numberObject (readonly)

n-number (???)


430
431
432
# File 'lib/bio/appl/blast/wublast.rb', line 430

def n_number
  @n_number
end

#pvalueObject (readonly)

p-value


428
429
430
# File 'lib/bio/appl/blast/wublast.rb', line 428

def pvalue
  @pvalue
end

Instance Method Details

#scoreObject

Returns score.


424
425
426
# File 'lib/bio/appl/blast/wublast.rb', line 424

def score
  @score
end