Class: Rafflesia::ResidueFeature
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ResidueFeature
- 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
-
#assembly_id ⇒ Object
Returns the value of attribute assembly_id.
-
#atom_count ⇒ Object
Returns the value of attribute atom_count.
-
#auth_chain_id ⇒ Object
Returns the value of attribute auth_chain_id.
-
#auth_position ⇒ Object
Returns the value of attribute auth_position.
-
#chain_id ⇒ Object
Returns the value of attribute chain_id.
-
#confidence_metric ⇒ Object
Returns the value of attribute confidence_metric.
-
#confidence_value ⇒ Object
Returns the value of attribute confidence_value.
-
#entity_id ⇒ Object
Returns the value of attribute entity_id.
-
#insertion_code ⇒ Object
Returns the value of attribute insertion_code.
-
#label_chain_id ⇒ Object
Returns the value of attribute label_chain_id.
-
#label_position ⇒ Object
Returns the value of attribute label_position.
-
#mean_b_factor ⇒ Object
Returns the value of attribute mean_b_factor.
-
#model_id ⇒ Object
Returns the value of attribute model_id.
-
#neighbor_count ⇒ Object
Returns the value of attribute neighbor_count.
-
#neighbor_positions ⇒ Object
Returns the value of attribute neighbor_positions.
-
#phi ⇒ Object
Returns the value of attribute phi.
-
#plddt ⇒ Object
Returns the value of attribute plddt.
-
#pocket_ids ⇒ Object
Returns the value of attribute pocket_ids.
-
#position ⇒ Object
Returns the value of attribute position.
-
#psi ⇒ Object
Returns the value of attribute psi.
-
#residue ⇒ Object
Returns the value of attribute residue.
-
#rsa ⇒ Object
Returns the value of attribute rsa.
-
#sasa_side_chain ⇒ Object
Returns the value of attribute sasa_side_chain.
-
#sasa_total ⇒ Object
Returns the value of attribute sasa_total.
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
-
#z ⇒ Object
Returns the value of attribute z.
Instance Method Summary collapse
-
#initialize(json) ⇒ ResidueFeature
constructor
A new instance of ResidueFeature.
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_id ⇒ Object
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_count ⇒ Object
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_id ⇒ Object
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_position ⇒ Object
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_id ⇒ Object
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_metric ⇒ Object
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_value ⇒ Object
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_id ⇒ Object
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_code ⇒ Object
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_id ⇒ Object
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_position ⇒ Object
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_factor ⇒ Object
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_id ⇒ Object
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_count ⇒ Object
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_positions ⇒ Object
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 |
#phi ⇒ Object
Returns the value of attribute phi.
38 39 40 |
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38 def phi @phi end |
#plddt ⇒ Object
Returns the value of attribute plddt.
38 39 40 |
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38 def plddt @plddt end |
#pocket_ids ⇒ Object
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 |
#position ⇒ Object
Returns the value of attribute position.
38 39 40 |
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38 def position @position end |
#psi ⇒ Object
Returns the value of attribute psi.
38 39 40 |
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38 def psi @psi end |
#residue ⇒ Object
Returns the value of attribute residue.
38 39 40 |
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38 def residue @residue end |
#rsa ⇒ Object
Returns the value of attribute rsa.
38 39 40 |
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38 def rsa @rsa end |
#sasa_side_chain ⇒ Object
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_total ⇒ Object
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 |
#x ⇒ Object
Returns the value of attribute x.
38 39 40 |
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
38 39 40 |
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38 def y @y end |
#z ⇒ Object
Returns the value of attribute z.
38 39 40 |
# File 'lib/rafflesia/proteins/residue_feature.rb', line 38 def z @z end |