Class: Rafflesia::StructureAlignment

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_lengthObject

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

#rmsdObject

Returns the value of attribute rmsd.



16
17
18
# File 'lib/rafflesia/proteins/structure_alignment.rb', line 16

def rmsd
  @rmsd
end

#seq_idObject

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_normalizedObject

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_normalizedObject

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