Class: Rafflesia::InterfaceResidueContact
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::InterfaceResidueContact
- Defined in:
- lib/rafflesia/proteins/interface_residue_contact.rb
Constant Summary collapse
- HASH_ATTRS =
{ closest_partner_atom_name: :closest_partner_atom_name, closest_partner_residue: :closest_partner_residue, closest_residue_atom_name: :closest_residue_atom_name, contact_atom_pair_count: :contact_atom_pair_count, min_distance_angstrom: :min_distance_angstrom, partner_chain_id: :partner_chain_id, partner_residue_count: :partner_residue_count, residue: :residue, residue_plddt: :residue_plddt, side: :side }.freeze
Instance Attribute Summary collapse
-
#closest_partner_atom_name ⇒ Object
Returns the value of attribute closest_partner_atom_name.
-
#closest_partner_residue ⇒ Object
Returns the value of attribute closest_partner_residue.
-
#closest_residue_atom_name ⇒ Object
Returns the value of attribute closest_residue_atom_name.
-
#contact_atom_pair_count ⇒ Object
Returns the value of attribute contact_atom_pair_count.
-
#min_distance_angstrom ⇒ Object
Returns the value of attribute min_distance_angstrom.
-
#partner_chain_id ⇒ Object
Returns the value of attribute partner_chain_id.
-
#partner_residue_count ⇒ Object
Returns the value of attribute partner_residue_count.
-
#residue ⇒ Object
Returns the value of attribute residue.
-
#residue_plddt ⇒ Object
Returns the value of attribute residue_plddt.
-
#side ⇒ Object
Returns the value of attribute side.
Instance Method Summary collapse
-
#initialize(json) ⇒ InterfaceResidueContact
constructor
A new instance of InterfaceResidueContact.
Constructor Details
#initialize(json) ⇒ InterfaceResidueContact
Returns a new instance of InterfaceResidueContact.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/rafflesia/proteins/interface_residue_contact.rb', line 33 def initialize(json) super() hash = self.class.normalize(json) @closest_partner_atom_name = hash[:closest_partner_atom_name] @closest_partner_residue = hash[:closest_partner_residue] ? Rafflesia::ResiduePointer.new(hash[:closest_partner_residue]) : nil @closest_residue_atom_name = hash[:closest_residue_atom_name] @contact_atom_pair_count = hash[:contact_atom_pair_count] @min_distance_angstrom = hash[:min_distance_angstrom] @partner_chain_id = hash[:partner_chain_id] @partner_residue_count = hash[:partner_residue_count] @residue = hash[:residue] ? Rafflesia::ResiduePointer.new(hash[:residue]) : nil @residue_plddt = hash[:residue_plddt] @side = hash[:side] end |
Instance Attribute Details
#closest_partner_atom_name ⇒ Object
Returns the value of attribute closest_partner_atom_name.
21 22 23 |
# File 'lib/rafflesia/proteins/interface_residue_contact.rb', line 21 def closest_partner_atom_name @closest_partner_atom_name end |
#closest_partner_residue ⇒ Object
Returns the value of attribute closest_partner_residue.
21 22 23 |
# File 'lib/rafflesia/proteins/interface_residue_contact.rb', line 21 def closest_partner_residue @closest_partner_residue end |
#closest_residue_atom_name ⇒ Object
Returns the value of attribute closest_residue_atom_name.
21 22 23 |
# File 'lib/rafflesia/proteins/interface_residue_contact.rb', line 21 def closest_residue_atom_name @closest_residue_atom_name end |
#contact_atom_pair_count ⇒ Object
Returns the value of attribute contact_atom_pair_count.
21 22 23 |
# File 'lib/rafflesia/proteins/interface_residue_contact.rb', line 21 def contact_atom_pair_count @contact_atom_pair_count end |
#min_distance_angstrom ⇒ Object
Returns the value of attribute min_distance_angstrom.
21 22 23 |
# File 'lib/rafflesia/proteins/interface_residue_contact.rb', line 21 def min_distance_angstrom @min_distance_angstrom end |
#partner_chain_id ⇒ Object
Returns the value of attribute partner_chain_id.
21 22 23 |
# File 'lib/rafflesia/proteins/interface_residue_contact.rb', line 21 def partner_chain_id @partner_chain_id end |
#partner_residue_count ⇒ Object
Returns the value of attribute partner_residue_count.
21 22 23 |
# File 'lib/rafflesia/proteins/interface_residue_contact.rb', line 21 def partner_residue_count @partner_residue_count end |
#residue ⇒ Object
Returns the value of attribute residue.
21 22 23 |
# File 'lib/rafflesia/proteins/interface_residue_contact.rb', line 21 def residue @residue end |
#residue_plddt ⇒ Object
Returns the value of attribute residue_plddt.
21 22 23 |
# File 'lib/rafflesia/proteins/interface_residue_contact.rb', line 21 def residue_plddt @residue_plddt end |
#side ⇒ Object
Returns the value of attribute side.
21 22 23 |
# File 'lib/rafflesia/proteins/interface_residue_contact.rb', line 21 def side @side end |