Class: Rafflesia::HmmerHit
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::HmmerHit
- Defined in:
- lib/rafflesia/sequences/hmmer_hit.rb
Constant Summary collapse
- HASH_ATTRS =
{ best_dom_bias: :best_dom_bias, best_dom_evalue: :best_dom_evalue, best_dom_score: :best_dom_score, description: :description, domain_number_estimation: :domain_number_estimation, full_bias: :full_bias, full_evalue: :full_evalue, full_score: :full_score, query_accession: :query_accession, query_name: :query_name, target_accession: :target_accession, target_name: :target_name }.freeze
Instance Attribute Summary collapse
-
#best_dom_bias ⇒ Object
Returns the value of attribute best_dom_bias.
-
#best_dom_evalue ⇒ Object
Returns the value of attribute best_dom_evalue.
-
#best_dom_score ⇒ Object
Returns the value of attribute best_dom_score.
-
#description ⇒ Object
Returns the value of attribute description.
-
#domain_number_estimation ⇒ Object
Returns the value of attribute domain_number_estimation.
-
#full_bias ⇒ Object
Returns the value of attribute full_bias.
-
#full_evalue ⇒ Object
Returns the value of attribute full_evalue.
-
#full_score ⇒ Object
Returns the value of attribute full_score.
-
#query_accession ⇒ Object
Returns the value of attribute query_accession.
-
#query_name ⇒ Object
Returns the value of attribute query_name.
-
#target_accession ⇒ Object
Returns the value of attribute target_accession.
-
#target_name ⇒ Object
Returns the value of attribute target_name.
Instance Method Summary collapse
-
#initialize(json) ⇒ HmmerHit
constructor
A new instance of HmmerHit.
Constructor Details
#initialize(json) ⇒ HmmerHit
Returns a new instance of HmmerHit.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/rafflesia/sequences/hmmer_hit.rb', line 37 def initialize(json) super() hash = self.class.normalize(json) @best_dom_bias = hash[:best_dom_bias] @best_dom_evalue = hash[:best_dom_evalue] @best_dom_score = hash[:best_dom_score] @description = hash[:description] @domain_number_estimation = hash[:domain_number_estimation] ? Rafflesia::HmmerDomainNumberEstimation.new(hash[:domain_number_estimation]) : nil @full_bias = hash[:full_bias] @full_evalue = hash[:full_evalue] @full_score = hash[:full_score] @query_accession = hash[:query_accession] @query_name = hash[:query_name] @target_accession = hash[:target_accession] @target_name = hash[:target_name] end |
Instance Attribute Details
#best_dom_bias ⇒ Object
Returns the value of attribute best_dom_bias.
23 24 25 |
# File 'lib/rafflesia/sequences/hmmer_hit.rb', line 23 def best_dom_bias @best_dom_bias end |
#best_dom_evalue ⇒ Object
Returns the value of attribute best_dom_evalue.
23 24 25 |
# File 'lib/rafflesia/sequences/hmmer_hit.rb', line 23 def best_dom_evalue @best_dom_evalue end |
#best_dom_score ⇒ Object
Returns the value of attribute best_dom_score.
23 24 25 |
# File 'lib/rafflesia/sequences/hmmer_hit.rb', line 23 def best_dom_score @best_dom_score end |
#description ⇒ Object
Returns the value of attribute description.
23 24 25 |
# File 'lib/rafflesia/sequences/hmmer_hit.rb', line 23 def description @description end |
#domain_number_estimation ⇒ Object
Returns the value of attribute domain_number_estimation.
23 24 25 |
# File 'lib/rafflesia/sequences/hmmer_hit.rb', line 23 def domain_number_estimation @domain_number_estimation end |
#full_bias ⇒ Object
Returns the value of attribute full_bias.
23 24 25 |
# File 'lib/rafflesia/sequences/hmmer_hit.rb', line 23 def full_bias @full_bias end |
#full_evalue ⇒ Object
Returns the value of attribute full_evalue.
23 24 25 |
# File 'lib/rafflesia/sequences/hmmer_hit.rb', line 23 def full_evalue @full_evalue end |
#full_score ⇒ Object
Returns the value of attribute full_score.
23 24 25 |
# File 'lib/rafflesia/sequences/hmmer_hit.rb', line 23 def full_score @full_score end |
#query_accession ⇒ Object
Returns the value of attribute query_accession.
23 24 25 |
# File 'lib/rafflesia/sequences/hmmer_hit.rb', line 23 def query_accession @query_accession end |
#query_name ⇒ Object
Returns the value of attribute query_name.
23 24 25 |
# File 'lib/rafflesia/sequences/hmmer_hit.rb', line 23 def query_name @query_name end |
#target_accession ⇒ Object
Returns the value of attribute target_accession.
23 24 25 |
# File 'lib/rafflesia/sequences/hmmer_hit.rb', line 23 def target_accession @target_accession end |
#target_name ⇒ Object
Returns the value of attribute target_name.
23 24 25 |
# File 'lib/rafflesia/sequences/hmmer_hit.rb', line 23 def target_name @target_name end |