Class: Rafflesia::InterfaceResidueContact

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_nameObject

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_residueObject

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_nameObject

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_countObject

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_angstromObject

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_idObject

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_countObject

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

#residueObject

Returns the value of attribute residue.



21
22
23
# File 'lib/rafflesia/proteins/interface_residue_contact.rb', line 21

def residue
  @residue
end

#residue_plddtObject

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

#sideObject

Returns the value of attribute side.



21
22
23
# File 'lib/rafflesia/proteins/interface_residue_contact.rb', line 21

def side
  @side
end