Class: Rafflesia::LigandCompareData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::LigandCompareData
- Defined in:
- lib/rafflesia/proteins/ligand_compare_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ backend: :backend, contact_f1: :contact_f_1, contact_precision: :contact_precision, contact_recall: :contact_recall, is_ligand_rmsd_available: :is_ligand_rmsd_available, is_query_ligand_filtered: :is_query_ligand_filtered, is_target_ligand_filtered: :is_target_ligand_filtered, ligand_rmsd_angstrom: :ligand_rmsd_angstrom, matched_ligand_atom_count: :matched_ligand_atom_count, method: :method, query_contact_count: :query_contact_count, query_ligand_count: :query_ligand_count, query_ligand_ids: :query_ligand_ids, query_only_contact_count: :query_only_contact_count, query_only_contact_residue_keys: :query_only_contact_residue_keys, query_structure_id: :query_structure_id, radius: :radius, shared_contact_count: :shared_contact_count, shared_contact_residue_keys: :shared_contact_residue_keys, target_contact_count: :target_contact_count, target_ligand_count: :target_ligand_count, target_ligand_ids: :target_ligand_ids, target_only_contact_count: :target_only_contact_count, target_only_contact_residue_keys: :target_only_contact_residue_keys, target_structure_id: :target_structure_id }.freeze
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#contact_f_1 ⇒ Object
Returns the value of attribute contact_f_1.
-
#contact_precision ⇒ Object
Returns the value of attribute contact_precision.
-
#contact_recall ⇒ Object
Returns the value of attribute contact_recall.
-
#is_ligand_rmsd_available ⇒ Object
Returns the value of attribute is_ligand_rmsd_available.
-
#is_query_ligand_filtered ⇒ Object
Returns the value of attribute is_query_ligand_filtered.
-
#is_target_ligand_filtered ⇒ Object
Returns the value of attribute is_target_ligand_filtered.
-
#ligand_rmsd_angstrom ⇒ Object
Returns the value of attribute ligand_rmsd_angstrom.
-
#matched_ligand_atom_count ⇒ Object
Returns the value of attribute matched_ligand_atom_count.
-
#method ⇒ Object
Returns the value of attribute method.
-
#query_contact_count ⇒ Object
Returns the value of attribute query_contact_count.
-
#query_ligand_count ⇒ Object
Returns the value of attribute query_ligand_count.
-
#query_ligand_ids ⇒ Object
Returns the value of attribute query_ligand_ids.
-
#query_only_contact_count ⇒ Object
Returns the value of attribute query_only_contact_count.
-
#query_only_contact_residue_keys ⇒ Object
Returns the value of attribute query_only_contact_residue_keys.
-
#query_structure_id ⇒ Object
Returns the value of attribute query_structure_id.
-
#radius ⇒ Object
Returns the value of attribute radius.
-
#shared_contact_count ⇒ Object
Returns the value of attribute shared_contact_count.
-
#shared_contact_residue_keys ⇒ Object
Returns the value of attribute shared_contact_residue_keys.
-
#target_contact_count ⇒ Object
Returns the value of attribute target_contact_count.
-
#target_ligand_count ⇒ Object
Returns the value of attribute target_ligand_count.
-
#target_ligand_ids ⇒ Object
Returns the value of attribute target_ligand_ids.
-
#target_only_contact_count ⇒ Object
Returns the value of attribute target_only_contact_count.
-
#target_only_contact_residue_keys ⇒ Object
Returns the value of attribute target_only_contact_residue_keys.
-
#target_structure_id ⇒ Object
Returns the value of attribute target_structure_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ LigandCompareData
constructor
A new instance of LigandCompareData.
Constructor Details
#initialize(json) ⇒ LigandCompareData
Returns a new instance of LigandCompareData.
63 64 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 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 63 def initialize(json) super() hash = self.class.normalize(json) @backend = hash[:backend] @contact_f_1 = hash[:contact_f1] @contact_precision = hash[:contact_precision] @contact_recall = hash[:contact_recall] @is_ligand_rmsd_available = hash[:is_ligand_rmsd_available] @is_query_ligand_filtered = hash[:is_query_ligand_filtered] @is_target_ligand_filtered = hash[:is_target_ligand_filtered] @ligand_rmsd_angstrom = hash[:ligand_rmsd_angstrom] @matched_ligand_atom_count = hash[:matched_ligand_atom_count] @method = hash[:method] @query_contact_count = hash[:query_contact_count] @query_ligand_count = hash[:query_ligand_count] @query_ligand_ids = (hash[:query_ligand_ids] || []) @query_only_contact_count = hash[:query_only_contact_count] @query_only_contact_residue_keys = (hash[:query_only_contact_residue_keys] || []) @query_structure_id = hash[:query_structure_id] @radius = hash[:radius] @shared_contact_count = hash[:shared_contact_count] @shared_contact_residue_keys = (hash[:shared_contact_residue_keys] || []) @target_contact_count = hash[:target_contact_count] @target_ligand_count = hash[:target_ligand_count] @target_ligand_ids = (hash[:target_ligand_ids] || []) @target_only_contact_count = hash[:target_only_contact_count] @target_only_contact_residue_keys = (hash[:target_only_contact_residue_keys] || []) @target_structure_id = hash[:target_structure_id] end |
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def backend @backend end |
#contact_f_1 ⇒ Object
Returns the value of attribute contact_f_1.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def contact_f_1 @contact_f_1 end |
#contact_precision ⇒ Object
Returns the value of attribute contact_precision.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def contact_precision @contact_precision end |
#contact_recall ⇒ Object
Returns the value of attribute contact_recall.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def contact_recall @contact_recall end |
#is_ligand_rmsd_available ⇒ Object
Returns the value of attribute is_ligand_rmsd_available.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def is_ligand_rmsd_available @is_ligand_rmsd_available end |
#is_query_ligand_filtered ⇒ Object
Returns the value of attribute is_query_ligand_filtered.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def is_query_ligand_filtered @is_query_ligand_filtered end |
#is_target_ligand_filtered ⇒ Object
Returns the value of attribute is_target_ligand_filtered.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def is_target_ligand_filtered @is_target_ligand_filtered end |
#ligand_rmsd_angstrom ⇒ Object
Returns the value of attribute ligand_rmsd_angstrom.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def ligand_rmsd_angstrom @ligand_rmsd_angstrom end |
#matched_ligand_atom_count ⇒ Object
Returns the value of attribute matched_ligand_atom_count.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def matched_ligand_atom_count @matched_ligand_atom_count end |
#method ⇒ Object
Returns the value of attribute method.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def method @method end |
#query_contact_count ⇒ Object
Returns the value of attribute query_contact_count.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def query_contact_count @query_contact_count end |
#query_ligand_count ⇒ Object
Returns the value of attribute query_ligand_count.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def query_ligand_count @query_ligand_count end |
#query_ligand_ids ⇒ Object
Returns the value of attribute query_ligand_ids.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def query_ligand_ids @query_ligand_ids end |
#query_only_contact_count ⇒ Object
Returns the value of attribute query_only_contact_count.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def query_only_contact_count @query_only_contact_count end |
#query_only_contact_residue_keys ⇒ Object
Returns the value of attribute query_only_contact_residue_keys.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def query_only_contact_residue_keys @query_only_contact_residue_keys end |
#query_structure_id ⇒ Object
Returns the value of attribute query_structure_id.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def query_structure_id @query_structure_id end |
#radius ⇒ Object
Returns the value of attribute radius.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def radius @radius end |
#shared_contact_count ⇒ Object
Returns the value of attribute shared_contact_count.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def shared_contact_count @shared_contact_count end |
#shared_contact_residue_keys ⇒ Object
Returns the value of attribute shared_contact_residue_keys.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def shared_contact_residue_keys @shared_contact_residue_keys end |
#target_contact_count ⇒ Object
Returns the value of attribute target_contact_count.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def target_contact_count @target_contact_count end |
#target_ligand_count ⇒ Object
Returns the value of attribute target_ligand_count.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def target_ligand_count @target_ligand_count end |
#target_ligand_ids ⇒ Object
Returns the value of attribute target_ligand_ids.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def target_ligand_ids @target_ligand_ids end |
#target_only_contact_count ⇒ Object
Returns the value of attribute target_only_contact_count.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def target_only_contact_count @target_only_contact_count end |
#target_only_contact_residue_keys ⇒ Object
Returns the value of attribute target_only_contact_residue_keys.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def target_only_contact_residue_keys @target_only_contact_residue_keys end |
#target_structure_id ⇒ Object
Returns the value of attribute target_structure_id.
36 37 38 |
# File 'lib/rafflesia/proteins/ligand_compare_data.rb', line 36 def target_structure_id @target_structure_id end |