Class: Rafflesia::ResidueSummary

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

Constant Summary collapse

HASH_ATTRS =
{
  assembly_id: :assembly_id,
  atom_count: :atom_count,
  auth_chain_id: :auth_chain_id,
  auth_position: :auth_position,
  chain_id: :chain_id,
  confidence_metric: :confidence_metric,
  confidence_value: :confidence_value,
  entity_id: :entity_id,
  insertion_code: :insertion_code,
  label_chain_id: :label_chain_id,
  label_position: :label_position,
  mean_b_factor: :mean_b_factor,
  model_id: :model_id,
  plddt: :plddt,
  position: :position,
  residue: :residue
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ResidueSummary

Returns a new instance of ResidueSummary.



45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/rafflesia/proteins/residue_summary.rb', line 45

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @assembly_id = hash[:assembly_id]
  @atom_count = hash[:atom_count]
  @auth_chain_id = hash[:auth_chain_id]
  @auth_position = hash[:auth_position]
  @chain_id = hash[:chain_id]
  @confidence_metric = hash[:confidence_metric]
  @confidence_value = hash[:confidence_value]
  @entity_id = hash[:entity_id]
  @insertion_code = hash[:insertion_code]
  @label_chain_id = hash[:label_chain_id]
  @label_position = hash[:label_position]
  @mean_b_factor = hash[:mean_b_factor]
  @model_id = hash[:model_id]
  @plddt = hash[:plddt]
  @position = hash[:position]
  @residue = hash[:residue]
end

Instance Attribute Details

#assembly_idObject

Returns the value of attribute assembly_id.



27
28
29
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27

def assembly_id
  @assembly_id
end

#atom_countObject

Returns the value of attribute atom_count.



27
28
29
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27

def atom_count
  @atom_count
end

#auth_chain_idObject

Returns the value of attribute auth_chain_id.



27
28
29
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27

def auth_chain_id
  @auth_chain_id
end

#auth_positionObject

Returns the value of attribute auth_position.



27
28
29
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27

def auth_position
  @auth_position
end

#chain_idObject

Returns the value of attribute chain_id.



27
28
29
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27

def chain_id
  @chain_id
end

#confidence_metricObject

Returns the value of attribute confidence_metric.



27
28
29
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27

def confidence_metric
  @confidence_metric
end

#confidence_valueObject

Returns the value of attribute confidence_value.



27
28
29
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27

def confidence_value
  @confidence_value
end

#entity_idObject

Returns the value of attribute entity_id.



27
28
29
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27

def entity_id
  @entity_id
end

#insertion_codeObject

Returns the value of attribute insertion_code.



27
28
29
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27

def insertion_code
  @insertion_code
end

#label_chain_idObject

Returns the value of attribute label_chain_id.



27
28
29
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27

def label_chain_id
  @label_chain_id
end

#label_positionObject

Returns the value of attribute label_position.



27
28
29
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27

def label_position
  @label_position
end

#mean_b_factorObject

Returns the value of attribute mean_b_factor.



27
28
29
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27

def mean_b_factor
  @mean_b_factor
end

#model_idObject

Returns the value of attribute model_id.



27
28
29
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27

def model_id
  @model_id
end

#plddtObject

Returns the value of attribute plddt.



27
28
29
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27

def plddt
  @plddt
end

#positionObject

Returns the value of attribute position.



27
28
29
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27

def position
  @position
end

#residueObject

Returns the value of attribute residue.



27
28
29
# File 'lib/rafflesia/proteins/residue_summary.rb', line 27

def residue
  @residue
end