Class: Rafflesia::InterfaceFeature
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::InterfaceFeature
- Defined in:
- lib/rafflesia/proteins/interface_feature.rb
Constant Summary collapse
- HASH_ATTRS =
{ assembly_id: :assembly_id, buried_surface_area_angstrom2: :buried_surface_area_angstrom_2, chain_a_id: :chain_a_id, chain_b_id: :chain_b_id, contact_pair_count: :contact_pair_count, contact_pairs: :contact_pairs, has_buried_surface_area: :has_buried_surface_area, has_pae: :has_pae, has_plddt: :has_plddt, interface_id: :interface_id, interface_mean_pae: :interface_mean_pae, interface_plddt: :interface_plddt, is_contact_pairs_truncated: :is_contact_pairs_truncated, mean_distance_angstrom: :mean_distance_angstrom, method: :method, min_distance_angstrom: :min_distance_angstrom, model_id: :model_id, radius: :radius, region_ids: :region_ids, residue_contacts_a: :residue_contacts_a, residue_contacts_b: :residue_contacts_b, residue_count_a: :residue_count_a, residue_count_b: :residue_count_b, residues_a: :residues_a, residues_b: :residues_b, structure_id: :structure_id }.freeze
Instance Attribute Summary collapse
-
#assembly_id ⇒ Object
Returns the value of attribute assembly_id.
-
#buried_surface_area_angstrom_2 ⇒ Object
Returns the value of attribute buried_surface_area_angstrom_2.
-
#chain_a_id ⇒ Object
Returns the value of attribute chain_a_id.
-
#chain_b_id ⇒ Object
Returns the value of attribute chain_b_id.
-
#contact_pair_count ⇒ Object
Returns the value of attribute contact_pair_count.
-
#contact_pairs ⇒ Object
Returns the value of attribute contact_pairs.
-
#has_buried_surface_area ⇒ Object
Returns the value of attribute has_buried_surface_area.
-
#has_pae ⇒ Object
Returns the value of attribute has_pae.
-
#has_plddt ⇒ Object
Returns the value of attribute has_plddt.
-
#interface_id ⇒ Object
Returns the value of attribute interface_id.
-
#interface_mean_pae ⇒ Object
Returns the value of attribute interface_mean_pae.
-
#interface_plddt ⇒ Object
Returns the value of attribute interface_plddt.
-
#is_contact_pairs_truncated ⇒ Object
Returns the value of attribute is_contact_pairs_truncated.
-
#mean_distance_angstrom ⇒ Object
Returns the value of attribute mean_distance_angstrom.
-
#method ⇒ Object
Returns the value of attribute method.
-
#min_distance_angstrom ⇒ Object
Returns the value of attribute min_distance_angstrom.
-
#model_id ⇒ Object
Returns the value of attribute model_id.
-
#radius ⇒ Object
Returns the value of attribute radius.
-
#region_ids ⇒ Object
Returns the value of attribute region_ids.
-
#residue_contacts_a ⇒ Object
Returns the value of attribute residue_contacts_a.
-
#residue_contacts_b ⇒ Object
Returns the value of attribute residue_contacts_b.
-
#residue_count_a ⇒ Object
Returns the value of attribute residue_count_a.
-
#residue_count_b ⇒ Object
Returns the value of attribute residue_count_b.
-
#residues_a ⇒ Object
Returns the value of attribute residues_a.
-
#residues_b ⇒ Object
Returns the value of attribute residues_b.
-
#structure_id ⇒ Object
Returns the value of attribute structure_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ InterfaceFeature
constructor
A new instance of InterfaceFeature.
Constructor Details
#initialize(json) ⇒ InterfaceFeature
Returns a new instance of InterfaceFeature.
65 66 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 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 65 def initialize(json) super() hash = self.class.normalize(json) @assembly_id = hash[:assembly_id] @buried_surface_area_angstrom_2 = hash[:buried_surface_area_angstrom2] @chain_a_id = hash[:chain_a_id] @chain_b_id = hash[:chain_b_id] @contact_pair_count = hash[:contact_pair_count] @contact_pairs = (hash[:contact_pairs] || []).map { |item| item ? Rafflesia::ContactPair.new(item) : nil } @has_buried_surface_area = hash[:has_buried_surface_area] @has_pae = hash[:has_pae] @has_plddt = hash[:has_plddt] @interface_id = hash[:interface_id] @interface_mean_pae = hash[:interface_mean_pae] @interface_plddt = hash[:interface_plddt] @is_contact_pairs_truncated = hash[:is_contact_pairs_truncated] @mean_distance_angstrom = hash[:mean_distance_angstrom] @method = hash[:method] @min_distance_angstrom = hash[:min_distance_angstrom] @model_id = hash[:model_id] @radius = hash[:radius] @region_ids = (hash[:region_ids] || []) @residue_contacts_a = (hash[:residue_contacts_a] || []).map { |item| item ? Rafflesia::InterfaceResidueContact.new(item) : nil } @residue_contacts_b = (hash[:residue_contacts_b] || []).map { |item| item ? Rafflesia::InterfaceResidueContact.new(item) : nil } @residue_count_a = hash[:residue_count_a] @residue_count_b = hash[:residue_count_b] @residues_a = (hash[:residues_a] || []).map { |item| item ? Rafflesia::ResiduePointer.new(item) : nil } @residues_b = (hash[:residues_b] || []).map { |item| item ? Rafflesia::ResiduePointer.new(item) : nil } @structure_id = hash[:structure_id] end |
Instance Attribute Details
#assembly_id ⇒ Object
Returns the value of attribute assembly_id.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def assembly_id @assembly_id end |
#buried_surface_area_angstrom_2 ⇒ Object
Returns the value of attribute buried_surface_area_angstrom_2.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def buried_surface_area_angstrom_2 @buried_surface_area_angstrom_2 end |
#chain_a_id ⇒ Object
Returns the value of attribute chain_a_id.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def chain_a_id @chain_a_id end |
#chain_b_id ⇒ Object
Returns the value of attribute chain_b_id.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def chain_b_id @chain_b_id end |
#contact_pair_count ⇒ Object
Returns the value of attribute contact_pair_count.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def contact_pair_count @contact_pair_count end |
#contact_pairs ⇒ Object
Returns the value of attribute contact_pairs.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def contact_pairs @contact_pairs end |
#has_buried_surface_area ⇒ Object
Returns the value of attribute has_buried_surface_area.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def has_buried_surface_area @has_buried_surface_area end |
#has_pae ⇒ Object
Returns the value of attribute has_pae.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def has_pae @has_pae end |
#has_plddt ⇒ Object
Returns the value of attribute has_plddt.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def has_plddt @has_plddt end |
#interface_id ⇒ Object
Returns the value of attribute interface_id.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def interface_id @interface_id end |
#interface_mean_pae ⇒ Object
Returns the value of attribute interface_mean_pae.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def interface_mean_pae @interface_mean_pae end |
#interface_plddt ⇒ Object
Returns the value of attribute interface_plddt.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def interface_plddt @interface_plddt end |
#is_contact_pairs_truncated ⇒ Object
Returns the value of attribute is_contact_pairs_truncated.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def is_contact_pairs_truncated @is_contact_pairs_truncated end |
#mean_distance_angstrom ⇒ Object
Returns the value of attribute mean_distance_angstrom.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def mean_distance_angstrom @mean_distance_angstrom end |
#method ⇒ Object
Returns the value of attribute method.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def method @method end |
#min_distance_angstrom ⇒ Object
Returns the value of attribute min_distance_angstrom.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def min_distance_angstrom @min_distance_angstrom end |
#model_id ⇒ Object
Returns the value of attribute model_id.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def model_id @model_id end |
#radius ⇒ Object
Returns the value of attribute radius.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def radius @radius end |
#region_ids ⇒ Object
Returns the value of attribute region_ids.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def region_ids @region_ids end |
#residue_contacts_a ⇒ Object
Returns the value of attribute residue_contacts_a.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def residue_contacts_a @residue_contacts_a end |
#residue_contacts_b ⇒ Object
Returns the value of attribute residue_contacts_b.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def residue_contacts_b @residue_contacts_b end |
#residue_count_a ⇒ Object
Returns the value of attribute residue_count_a.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def residue_count_a @residue_count_a end |
#residue_count_b ⇒ Object
Returns the value of attribute residue_count_b.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def residue_count_b @residue_count_b end |
#residues_a ⇒ Object
Returns the value of attribute residues_a.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def residues_a @residues_a end |
#residues_b ⇒ Object
Returns the value of attribute residues_b.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def residues_b @residues_b end |
#structure_id ⇒ Object
Returns the value of attribute structure_id.
37 38 39 |
# File 'lib/rafflesia/proteins/interface_feature.rb', line 37 def structure_id @structure_id end |