Class: Rafflesia::ResidueConfidence

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

Constant Summary collapse

HASH_ATTRS =
{
  assembly_id: :assembly_id,
  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) ⇒ ResidueConfidence

Returns a new instance of ResidueConfidence.



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

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @assembly_id = hash[:assembly_id]
  @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.



26
27
28
# File 'lib/rafflesia/proteins/residue_confidence.rb', line 26

def assembly_id
  @assembly_id
end

#auth_chain_idObject

Returns the value of attribute auth_chain_id.



26
27
28
# File 'lib/rafflesia/proteins/residue_confidence.rb', line 26

def auth_chain_id
  @auth_chain_id
end

#auth_positionObject

Returns the value of attribute auth_position.



26
27
28
# File 'lib/rafflesia/proteins/residue_confidence.rb', line 26

def auth_position
  @auth_position
end

#chain_idObject

Returns the value of attribute chain_id.



26
27
28
# File 'lib/rafflesia/proteins/residue_confidence.rb', line 26

def chain_id
  @chain_id
end

#confidence_metricObject

Returns the value of attribute confidence_metric.



26
27
28
# File 'lib/rafflesia/proteins/residue_confidence.rb', line 26

def confidence_metric
  @confidence_metric
end

#confidence_valueObject

Returns the value of attribute confidence_value.



26
27
28
# File 'lib/rafflesia/proteins/residue_confidence.rb', line 26

def confidence_value
  @confidence_value
end

#entity_idObject

Returns the value of attribute entity_id.



26
27
28
# File 'lib/rafflesia/proteins/residue_confidence.rb', line 26

def entity_id
  @entity_id
end

#insertion_codeObject

Returns the value of attribute insertion_code.



26
27
28
# File 'lib/rafflesia/proteins/residue_confidence.rb', line 26

def insertion_code
  @insertion_code
end

#label_chain_idObject

Returns the value of attribute label_chain_id.



26
27
28
# File 'lib/rafflesia/proteins/residue_confidence.rb', line 26

def label_chain_id
  @label_chain_id
end

#label_positionObject

Returns the value of attribute label_position.



26
27
28
# File 'lib/rafflesia/proteins/residue_confidence.rb', line 26

def label_position
  @label_position
end

#mean_b_factorObject

Returns the value of attribute mean_b_factor.



26
27
28
# File 'lib/rafflesia/proteins/residue_confidence.rb', line 26

def mean_b_factor
  @mean_b_factor
end

#model_idObject

Returns the value of attribute model_id.



26
27
28
# File 'lib/rafflesia/proteins/residue_confidence.rb', line 26

def model_id
  @model_id
end

#plddtObject

Returns the value of attribute plddt.



26
27
28
# File 'lib/rafflesia/proteins/residue_confidence.rb', line 26

def plddt
  @plddt
end

#positionObject

Returns the value of attribute position.



26
27
28
# File 'lib/rafflesia/proteins/residue_confidence.rb', line 26

def position
  @position
end

#residueObject

Returns the value of attribute residue.



26
27
28
# File 'lib/rafflesia/proteins/residue_confidence.rb', line 26

def residue
  @residue
end