Class: Lederhosen::UResult
- Inherits:
-
Object
- Object
- Lederhosen::UResult
- Defined in:
- lib/lederhosen/uc_parser.rb
Overview
represents a usearch result
Instance Attribute Summary collapse
-
#alignment ⇒ Object
Returns the value of attribute alignment.
-
#cluster_no ⇒ Object
Returns the value of attribute cluster_no.
-
#cluster_size ⇒ Object
Returns the value of attribute cluster_size.
-
#hit_type ⇒ Object
Returns the value of attribute hit_type.
-
#identity ⇒ Object
Returns the value of attribute identity.
-
#length ⇒ Object
Returns the value of attribute length.
-
#query ⇒ Object
Returns the value of attribute query.
-
#strand ⇒ Object
Returns the value of attribute strand.
-
#target ⇒ Object
Returns the value of attribute target.
Instance Method Summary collapse
- #hit? ⇒ Boolean
-
#initialize(hash) ⇒ UResult
constructor
A new instance of UResult.
- #miss? ⇒ Boolean
Constructor Details
#initialize(hash) ⇒ UResult
Returns a new instance of UResult.
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/lederhosen/uc_parser.rb', line 16 def initialize(hash) self.hit_type = hash[:hit_type] self.cluster_no = hash[:cluster_no] self.alignment = hash[:alignment] self.target = hash[:target] self.query = hash[:query] self.length = hash[:length] self.identity = hash[:identity] self.strand = hash[:strand] self.cluster_size = hash[:cluster_size] end |
Instance Attribute Details
#alignment ⇒ Object
Returns the value of attribute alignment.
6 7 8 |
# File 'lib/lederhosen/uc_parser.rb', line 6 def alignment @alignment end |
#cluster_no ⇒ Object
Returns the value of attribute cluster_no.
6 7 8 |
# File 'lib/lederhosen/uc_parser.rb', line 6 def cluster_no @cluster_no end |
#cluster_size ⇒ Object
Returns the value of attribute cluster_size.
6 7 8 |
# File 'lib/lederhosen/uc_parser.rb', line 6 def cluster_size @cluster_size end |
#hit_type ⇒ Object
Returns the value of attribute hit_type.
6 7 8 |
# File 'lib/lederhosen/uc_parser.rb', line 6 def hit_type @hit_type end |
#identity ⇒ Object
Returns the value of attribute identity.
6 7 8 |
# File 'lib/lederhosen/uc_parser.rb', line 6 def identity @identity end |
#length ⇒ Object
Returns the value of attribute length.
6 7 8 |
# File 'lib/lederhosen/uc_parser.rb', line 6 def length @length end |
#query ⇒ Object
Returns the value of attribute query.
6 7 8 |
# File 'lib/lederhosen/uc_parser.rb', line 6 def query @query end |
#strand ⇒ Object
Returns the value of attribute strand.
6 7 8 |
# File 'lib/lederhosen/uc_parser.rb', line 6 def strand @strand end |
#target ⇒ Object
Returns the value of attribute target.
6 7 8 |
# File 'lib/lederhosen/uc_parser.rb', line 6 def target @target end |
Instance Method Details
#hit? ⇒ Boolean
28 29 30 |
# File 'lib/lederhosen/uc_parser.rb', line 28 def hit? self.hit_type == 'H' end |
#miss? ⇒ Boolean
32 33 34 |
# File 'lib/lederhosen/uc_parser.rb', line 32 def miss? self.hit_type == 'N' end |