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.



370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
# File 'lib/bio/appl/blast/wublast.rb', line 370

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 (???)



394
395
396
# File 'lib/bio/appl/blast/wublast.rb', line 394

def n_number
  @n_number
end

#pvalueObject (readonly)

p-value



392
393
394
# File 'lib/bio/appl/blast/wublast.rb', line 392

def pvalue
  @pvalue
end

Instance Method Details

#scoreObject

Returns score.



388
389
390
# File 'lib/bio/appl/blast/wublast.rb', line 388

def score
  @score
end