Class: SequenceServer::BLAST::HSP::BLASTP

Inherits:
SequenceServer::BLAST::HSP show all
Defined in:
lib/sequenceserver/blast/hsp.rb

Overview

HSP subclass for BLASTP algorithm.

Instance Attribute Summary

Attributes inherited from SequenceServer::BLAST::HSP

#bit_score, #evalue, #gaps, #hit, #identity, #length, #midline, #number, #positives, #qend, #qframe, #qseq, #qstart, #score, #send, #sframe, #sseq, #sstart

Instance Method Summary collapse

Instance Method Details

#statsObject


180
181
182
183
184
185
186
187
188
# File 'lib/sequenceserver/blast/hsp.rb', line 180

def stats
  super.update(
    'Positives' =>
    [
      in_fraction(positives,   length),
      in_percentage(positives, length)
    ]
  )
end