Class: Rafflesia::ResidueFeature

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/residue_feature.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,
  neighbor_count: :neighbor_count,
  neighbor_positions: :neighbor_positions,
  phi: :phi,
  plddt: :plddt,
  pocket_ids: :pocket_ids,
  position: :position,
  psi: :psi,
  residue: :residue,
  rsa: :rsa,
  sasa_side_chain: :sasa_side_chain,
  sasa_total: :sasa_total,
  x: :x,
  y: :y,
  z: :z
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ResidueFeature

Returns a new instance of ResidueFeature.



67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# File 'lib/rafflesia/proteins/residue_feature.rb', line 67

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]
  @neighbor_count = hash[:neighbor_count]
  @neighbor_positions = (hash[:neighbor_positions] || [])
  @phi = hash[:phi]
  @plddt = hash[:plddt]
  @pocket_ids = (hash[:pocket_ids] || [])
  @position = hash[:position]
  @psi = hash[:psi]
  @residue = hash[:residue]
  @rsa = hash[:rsa]
  @sasa_side_chain = hash[:sasa_side_chain]
  @sasa_total = hash[:sasa_total]
  @x = hash[:x]
  @y = hash[:y]
  @z = hash[:z]
end

Instance Attribute Details

#assembly_idObject

Returns the value of attribute assembly_id.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def assembly_id
  @assembly_id
end

#atom_countObject

Returns the value of attribute atom_count.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def atom_count
  @atom_count
end

#auth_chain_idObject

Returns the value of attribute auth_chain_id.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def auth_chain_id
  @auth_chain_id
end

#auth_positionObject

Returns the value of attribute auth_position.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def auth_position
  @auth_position
end

#chain_idObject

Returns the value of attribute chain_id.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def chain_id
  @chain_id
end

#confidence_metricObject

Returns the value of attribute confidence_metric.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def confidence_metric
  @confidence_metric
end

#confidence_valueObject

Returns the value of attribute confidence_value.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def confidence_value
  @confidence_value
end

#entity_idObject

Returns the value of attribute entity_id.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def entity_id
  @entity_id
end

#insertion_codeObject

Returns the value of attribute insertion_code.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def insertion_code
  @insertion_code
end

#label_chain_idObject

Returns the value of attribute label_chain_id.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def label_chain_id
  @label_chain_id
end

#label_positionObject

Returns the value of attribute label_position.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def label_position
  @label_position
end

#mean_b_factorObject

Returns the value of attribute mean_b_factor.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def mean_b_factor
  @mean_b_factor
end

#model_idObject

Returns the value of attribute model_id.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def model_id
  @model_id
end

#neighbor_countObject

Returns the value of attribute neighbor_count.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def neighbor_count
  @neighbor_count
end

#neighbor_positionsObject

Returns the value of attribute neighbor_positions.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def neighbor_positions
  @neighbor_positions
end

#phiObject

Returns the value of attribute phi.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def phi
  @phi
end

#plddtObject

Returns the value of attribute plddt.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def plddt
  @plddt
end

#pocket_idsObject

Returns the value of attribute pocket_ids.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def pocket_ids
  @pocket_ids
end

#positionObject

Returns the value of attribute position.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def position
  @position
end

#psiObject

Returns the value of attribute psi.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def psi
  @psi
end

#residueObject

Returns the value of attribute residue.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def residue
  @residue
end

#rsaObject

Returns the value of attribute rsa.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def rsa
  @rsa
end

#sasa_side_chainObject

Returns the value of attribute sasa_side_chain.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def sasa_side_chain
  @sasa_side_chain
end

#sasa_totalObject

Returns the value of attribute sasa_total.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def sasa_total
  @sasa_total
end

#xObject

Returns the value of attribute x.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def x
  @x
end

#yObject

Returns the value of attribute y.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def y
  @y
end

#zObject

Returns the value of attribute z.



38
39
40
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38

def z
  @z
end