Class: Rafflesia::StructureCompareData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/structure_compare_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  aligned_residues: :aligned_residues,
  alignment_object_id: :alignment_object_id,
  backend: :backend,
  compared_residue_count: :compared_residue_count,
  max_distance_angstrom: :max_distance_angstrom,
  mean_distance_angstrom: :mean_distance_angstrom,
  method: :method,
  query_coverage: :query_coverage,
  query_residue_count: :query_residue_count,
  query_structure_id: :query_structure_id,
  query_tm_score: :query_tm_score,
  rmsd_angstrom: :rmsd_angstrom,
  sequence_identity: :sequence_identity,
  target_coverage: :target_coverage,
  target_residue_count: :target_residue_count,
  target_structure_id: :target_structure_id,
  target_tm_score: :target_tm_score,
  tm_score: :tm_score,
  unmatched_query_count: :unmatched_query_count,
  unmatched_target_count: :unmatched_target_count
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ StructureCompareData

Returns a new instance of StructureCompareData.



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/rafflesia/proteins/structure_compare_data.rb', line 53

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @aligned_residues = hash[:aligned_residues]
  @alignment_object_id = hash[:alignment_object_id]
  @backend = hash[:backend]
  @compared_residue_count = hash[:compared_residue_count]
  @max_distance_angstrom = hash[:max_distance_angstrom]
  @mean_distance_angstrom = hash[:mean_distance_angstrom]
  @method = hash[:method]
  @query_coverage = hash[:query_coverage]
  @query_residue_count = hash[:query_residue_count]
  @query_structure_id = hash[:query_structure_id]
  @query_tm_score = hash[:query_tm_score]
  @rmsd_angstrom = hash[:rmsd_angstrom]
  @sequence_identity = hash[:sequence_identity]
  @target_coverage = hash[:target_coverage]
  @target_residue_count = hash[:target_residue_count]
  @target_structure_id = hash[:target_structure_id]
  @target_tm_score = hash[:target_tm_score]
  @tm_score = hash[:tm_score]
  @unmatched_query_count = hash[:unmatched_query_count]
  @unmatched_target_count = hash[:unmatched_target_count]
end

Instance Attribute Details

#aligned_residuesObject

Returns the value of attribute aligned_residues.



31
32
33
# File 'lib/rafflesia/proteins/structure_compare_data.rb', line 31

def aligned_residues
  @aligned_residues
end

#alignment_object_idObject

Returns the value of attribute alignment_object_id.



31
32
33
# File 'lib/rafflesia/proteins/structure_compare_data.rb', line 31

def alignment_object_id
  @alignment_object_id
end

#backendObject

Returns the value of attribute backend.



31
32
33
# File 'lib/rafflesia/proteins/structure_compare_data.rb', line 31

def backend
  @backend
end

#compared_residue_countObject

Returns the value of attribute compared_residue_count.



31
32
33
# File 'lib/rafflesia/proteins/structure_compare_data.rb', line 31

def compared_residue_count
  @compared_residue_count
end

#max_distance_angstromObject

Returns the value of attribute max_distance_angstrom.



31
32
33
# File 'lib/rafflesia/proteins/structure_compare_data.rb', line 31

def max_distance_angstrom
  @max_distance_angstrom
end

#mean_distance_angstromObject

Returns the value of attribute mean_distance_angstrom.



31
32
33
# File 'lib/rafflesia/proteins/structure_compare_data.rb', line 31

def mean_distance_angstrom
  @mean_distance_angstrom
end

#methodObject

Returns the value of attribute method.



31
32
33
# File 'lib/rafflesia/proteins/structure_compare_data.rb', line 31

def method
  @method
end

#query_coverageObject

Returns the value of attribute query_coverage.



31
32
33
# File 'lib/rafflesia/proteins/structure_compare_data.rb', line 31

def query_coverage
  @query_coverage
end

#query_residue_countObject

Returns the value of attribute query_residue_count.



31
32
33
# File 'lib/rafflesia/proteins/structure_compare_data.rb', line 31

def query_residue_count
  @query_residue_count
end

#query_structure_idObject

Returns the value of attribute query_structure_id.



31
32
33
# File 'lib/rafflesia/proteins/structure_compare_data.rb', line 31

def query_structure_id
  @query_structure_id
end

#query_tm_scoreObject

Returns the value of attribute query_tm_score.



31
32
33
# File 'lib/rafflesia/proteins/structure_compare_data.rb', line 31

def query_tm_score
  @query_tm_score
end

#rmsd_angstromObject

Returns the value of attribute rmsd_angstrom.



31
32
33
# File 'lib/rafflesia/proteins/structure_compare_data.rb', line 31

def rmsd_angstrom
  @rmsd_angstrom
end

#sequence_identityObject

Returns the value of attribute sequence_identity.



31
32
33
# File 'lib/rafflesia/proteins/structure_compare_data.rb', line 31

def sequence_identity
  @sequence_identity
end

#target_coverageObject

Returns the value of attribute target_coverage.



31
32
33
# File 'lib/rafflesia/proteins/structure_compare_data.rb', line 31

def target_coverage
  @target_coverage
end

#target_residue_countObject

Returns the value of attribute target_residue_count.



31
32
33
# File 'lib/rafflesia/proteins/structure_compare_data.rb', line 31

def target_residue_count
  @target_residue_count
end

#target_structure_idObject

Returns the value of attribute target_structure_id.



31
32
33
# File 'lib/rafflesia/proteins/structure_compare_data.rb', line 31

def target_structure_id
  @target_structure_id
end

#target_tm_scoreObject

Returns the value of attribute target_tm_score.



31
32
33
# File 'lib/rafflesia/proteins/structure_compare_data.rb', line 31

def target_tm_score
  @target_tm_score
end

#tm_scoreObject

Returns the value of attribute tm_score.



31
32
33
# File 'lib/rafflesia/proteins/structure_compare_data.rb', line 31

def tm_score
  @tm_score
end

#unmatched_query_countObject

Returns the value of attribute unmatched_query_count.



31
32
33
# File 'lib/rafflesia/proteins/structure_compare_data.rb', line 31

def unmatched_query_count
  @unmatched_query_count
end

#unmatched_target_countObject

Returns the value of attribute unmatched_target_count.



31
32
33
# File 'lib/rafflesia/proteins/structure_compare_data.rb', line 31

def unmatched_target_count
  @unmatched_target_count
end