Class: Rafflesia::StructureAlignment
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::StructureAlignment
- Defined in:
- lib/rafflesia/proteins/structure_alignment.rb
Constant Summary collapse
- HASH_ATTRS =
{ aligned_length: :aligned_length, rmsd: :rmsd, seq_id: :seq_id, tm_score_query_normalized: :tm_score_query_normalized, tm_score_target_normalized: :tm_score_target_normalized }.freeze
Instance Attribute Summary collapse
-
#aligned_length ⇒ Object
Returns the value of attribute aligned_length.
-
#rmsd ⇒ Object
Returns the value of attribute rmsd.
-
#seq_id ⇒ Object
Returns the value of attribute seq_id.
-
#tm_score_query_normalized ⇒ Object
Returns the value of attribute tm_score_query_normalized.
-
#tm_score_target_normalized ⇒ Object
Returns the value of attribute tm_score_target_normalized.
Instance Method Summary collapse
-
#initialize(json) ⇒ StructureAlignment
constructor
A new instance of StructureAlignment.
Constructor Details
#initialize(json) ⇒ StructureAlignment
Returns a new instance of StructureAlignment.
23 24 25 26 27 28 29 30 31 |
# File 'lib/rafflesia/proteins/structure_alignment.rb', line 23 def initialize(json) super() hash = self.class.normalize(json) @aligned_length = hash[:aligned_length] @rmsd = hash[:rmsd] @seq_id = hash[:seq_id] @tm_score_query_normalized = hash[:tm_score_query_normalized] @tm_score_target_normalized = hash[:tm_score_target_normalized] end |
Instance Attribute Details
#aligned_length ⇒ Object
Returns the value of attribute aligned_length.
16 17 18 |
# File 'lib/rafflesia/proteins/structure_alignment.rb', line 16 def aligned_length @aligned_length end |
#rmsd ⇒ Object
Returns the value of attribute rmsd.
16 17 18 |
# File 'lib/rafflesia/proteins/structure_alignment.rb', line 16 def rmsd @rmsd end |
#seq_id ⇒ Object
Returns the value of attribute seq_id.
16 17 18 |
# File 'lib/rafflesia/proteins/structure_alignment.rb', line 16 def seq_id @seq_id end |
#tm_score_query_normalized ⇒ Object
Returns the value of attribute tm_score_query_normalized.
16 17 18 |
# File 'lib/rafflesia/proteins/structure_alignment.rb', line 16 def tm_score_query_normalized @tm_score_query_normalized end |
#tm_score_target_normalized ⇒ Object
Returns the value of attribute tm_score_target_normalized.
16 17 18 |
# File 'lib/rafflesia/proteins/structure_alignment.rb', line 16 def tm_score_target_normalized @tm_score_target_normalized end |