Class: SequenceServer::BLAST::HSP::TBLASTX

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

Overview

HSP subclass for TBLASTX 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

#qframe_unitObject

Translated nucleotide query against translated nucleotide database, hence 3.


234
235
236
# File 'lib/sequenceserver/blast/hsp.rb', line 234

def qframe_unit
  3
end

#sframe_unitObject

Translated nucleotide query against translated nucleotide database, hence 3.


240
241
242
# File 'lib/sequenceserver/blast/hsp.rb', line 240

def sframe_unit
  3
end

#statsObject


221
222
223
224
225
226
227
228
229
230
# File 'lib/sequenceserver/blast/hsp.rb', line 221

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