Class: Rafflesia::PocketLigandMeasurement
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::PocketLigandMeasurement
- Defined in:
- lib/rafflesia/proteins/pocket_ligand_measurement.rb
Constant Summary collapse
- HASH_ATTRS =
{ distance_threshold_angstrom: :distance_threshold_angstrom, is_threshold_hit: :is_threshold_hit, is_top_n_plus_extra_threshold_hit: :is_top_n_plus_extra_threshold_hit, is_top_n_threshold_hit: :is_top_n_threshold_hit, ligand: :ligand, ligand_group_id: :ligand_group_id, ligand_group_key: :ligand_group_key, ligand_group_label: :ligand_group_label, ligand_group_ligand_count: :ligand_group_ligand_count, ligand_group_mode: :ligand_group_mode, ligand_id: :ligand_id, nearest_distance_angstrom: :nearest_distance_angstrom, nearest_pocket_id: :nearest_pocket_id, nearest_pocket_rank: :nearest_pocket_rank, top_n_nearest_distance_angstrom: :top_n_nearest_distance_angstrom, top_n_nearest_pocket_id: :top_n_nearest_pocket_id, top_n_nearest_pocket_rank: :top_n_nearest_pocket_rank, top_n_plus_extra_nearest_distance_angstrom: :top_n_plus_extra_nearest_distance_angstrom, top_n_plus_extra_nearest_pocket_id: :top_n_plus_extra_nearest_pocket_id, top_n_plus_extra_nearest_pocket_rank: :top_n_plus_extra_nearest_pocket_rank }.freeze
Instance Attribute Summary collapse
-
#distance_threshold_angstrom ⇒ Object
Returns the value of attribute distance_threshold_angstrom.
-
#is_threshold_hit ⇒ Object
Returns the value of attribute is_threshold_hit.
-
#is_top_n_plus_extra_threshold_hit ⇒ Object
Returns the value of attribute is_top_n_plus_extra_threshold_hit.
-
#is_top_n_threshold_hit ⇒ Object
Returns the value of attribute is_top_n_threshold_hit.
-
#ligand ⇒ Object
Returns the value of attribute ligand.
-
#ligand_group_id ⇒ Object
Returns the value of attribute ligand_group_id.
-
#ligand_group_key ⇒ Object
Returns the value of attribute ligand_group_key.
-
#ligand_group_label ⇒ Object
Returns the value of attribute ligand_group_label.
-
#ligand_group_ligand_count ⇒ Object
Returns the value of attribute ligand_group_ligand_count.
-
#ligand_group_mode ⇒ Object
Returns the value of attribute ligand_group_mode.
-
#ligand_id ⇒ Object
Returns the value of attribute ligand_id.
-
#nearest_distance_angstrom ⇒ Object
Returns the value of attribute nearest_distance_angstrom.
-
#nearest_pocket_id ⇒ Object
Returns the value of attribute nearest_pocket_id.
-
#nearest_pocket_rank ⇒ Object
Returns the value of attribute nearest_pocket_rank.
-
#top_n_nearest_distance_angstrom ⇒ Object
Returns the value of attribute top_n_nearest_distance_angstrom.
-
#top_n_nearest_pocket_id ⇒ Object
Returns the value of attribute top_n_nearest_pocket_id.
-
#top_n_nearest_pocket_rank ⇒ Object
Returns the value of attribute top_n_nearest_pocket_rank.
-
#top_n_plus_extra_nearest_distance_angstrom ⇒ Object
Returns the value of attribute top_n_plus_extra_nearest_distance_angstrom.
-
#top_n_plus_extra_nearest_pocket_id ⇒ Object
Returns the value of attribute top_n_plus_extra_nearest_pocket_id.
-
#top_n_plus_extra_nearest_pocket_rank ⇒ Object
Returns the value of attribute top_n_plus_extra_nearest_pocket_rank.
Instance Method Summary collapse
-
#initialize(json) ⇒ PocketLigandMeasurement
constructor
A new instance of PocketLigandMeasurement.
Constructor Details
#initialize(json) ⇒ PocketLigandMeasurement
Returns a new instance of PocketLigandMeasurement.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/rafflesia/proteins/pocket_ligand_measurement.rb', line 53 def initialize(json) super() hash = self.class.normalize(json) @distance_threshold_angstrom = hash[:distance_threshold_angstrom] @is_threshold_hit = hash[:is_threshold_hit] @is_top_n_plus_extra_threshold_hit = hash[:is_top_n_plus_extra_threshold_hit] @is_top_n_threshold_hit = hash[:is_top_n_threshold_hit] @ligand = hash[:ligand] ? Rafflesia::Ligand.new(hash[:ligand]) : nil @ligand_group_id = hash[:ligand_group_id] @ligand_group_key = hash[:ligand_group_key] @ligand_group_label = hash[:ligand_group_label] @ligand_group_ligand_count = hash[:ligand_group_ligand_count] @ligand_group_mode = hash[:ligand_group_mode] @ligand_id = hash[:ligand_id] @nearest_distance_angstrom = hash[:nearest_distance_angstrom] @nearest_pocket_id = hash[:nearest_pocket_id] @nearest_pocket_rank = hash[:nearest_pocket_rank] @top_n_nearest_distance_angstrom = hash[:top_n_nearest_distance_angstrom] @top_n_nearest_pocket_id = hash[:top_n_nearest_pocket_id] @top_n_nearest_pocket_rank = hash[:top_n_nearest_pocket_rank] @top_n_plus_extra_nearest_distance_angstrom = hash[:top_n_plus_extra_nearest_distance_angstrom] @top_n_plus_extra_nearest_pocket_id = hash[:top_n_plus_extra_nearest_pocket_id] @top_n_plus_extra_nearest_pocket_rank = hash[:top_n_plus_extra_nearest_pocket_rank] end |
Instance Attribute Details
#distance_threshold_angstrom ⇒ Object
Returns the value of attribute distance_threshold_angstrom.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_measurement.rb', line 31 def distance_threshold_angstrom @distance_threshold_angstrom end |
#is_threshold_hit ⇒ Object
Returns the value of attribute is_threshold_hit.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_measurement.rb', line 31 def is_threshold_hit @is_threshold_hit end |
#is_top_n_plus_extra_threshold_hit ⇒ Object
Returns the value of attribute is_top_n_plus_extra_threshold_hit.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_measurement.rb', line 31 def is_top_n_plus_extra_threshold_hit @is_top_n_plus_extra_threshold_hit end |
#is_top_n_threshold_hit ⇒ Object
Returns the value of attribute is_top_n_threshold_hit.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_measurement.rb', line 31 def is_top_n_threshold_hit @is_top_n_threshold_hit end |
#ligand ⇒ Object
Returns the value of attribute ligand.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_measurement.rb', line 31 def ligand @ligand end |
#ligand_group_id ⇒ Object
Returns the value of attribute ligand_group_id.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_measurement.rb', line 31 def ligand_group_id @ligand_group_id end |
#ligand_group_key ⇒ Object
Returns the value of attribute ligand_group_key.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_measurement.rb', line 31 def ligand_group_key @ligand_group_key end |
#ligand_group_label ⇒ Object
Returns the value of attribute ligand_group_label.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_measurement.rb', line 31 def ligand_group_label @ligand_group_label end |
#ligand_group_ligand_count ⇒ Object
Returns the value of attribute ligand_group_ligand_count.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_measurement.rb', line 31 def ligand_group_ligand_count @ligand_group_ligand_count end |
#ligand_group_mode ⇒ Object
Returns the value of attribute ligand_group_mode.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_measurement.rb', line 31 def ligand_group_mode @ligand_group_mode end |
#ligand_id ⇒ Object
Returns the value of attribute ligand_id.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_measurement.rb', line 31 def ligand_id @ligand_id end |
#nearest_distance_angstrom ⇒ Object
Returns the value of attribute nearest_distance_angstrom.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_measurement.rb', line 31 def nearest_distance_angstrom @nearest_distance_angstrom end |
#nearest_pocket_id ⇒ Object
Returns the value of attribute nearest_pocket_id.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_measurement.rb', line 31 def nearest_pocket_id @nearest_pocket_id end |
#nearest_pocket_rank ⇒ Object
Returns the value of attribute nearest_pocket_rank.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_measurement.rb', line 31 def nearest_pocket_rank @nearest_pocket_rank end |
#top_n_nearest_distance_angstrom ⇒ Object
Returns the value of attribute top_n_nearest_distance_angstrom.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_measurement.rb', line 31 def top_n_nearest_distance_angstrom @top_n_nearest_distance_angstrom end |
#top_n_nearest_pocket_id ⇒ Object
Returns the value of attribute top_n_nearest_pocket_id.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_measurement.rb', line 31 def top_n_nearest_pocket_id @top_n_nearest_pocket_id end |
#top_n_nearest_pocket_rank ⇒ Object
Returns the value of attribute top_n_nearest_pocket_rank.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_measurement.rb', line 31 def top_n_nearest_pocket_rank @top_n_nearest_pocket_rank end |
#top_n_plus_extra_nearest_distance_angstrom ⇒ Object
Returns the value of attribute top_n_plus_extra_nearest_distance_angstrom.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_measurement.rb', line 31 def top_n_plus_extra_nearest_distance_angstrom @top_n_plus_extra_nearest_distance_angstrom end |
#top_n_plus_extra_nearest_pocket_id ⇒ Object
Returns the value of attribute top_n_plus_extra_nearest_pocket_id.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_measurement.rb', line 31 def top_n_plus_extra_nearest_pocket_id @top_n_plus_extra_nearest_pocket_id end |
#top_n_plus_extra_nearest_pocket_rank ⇒ Object
Returns the value of attribute top_n_plus_extra_nearest_pocket_rank.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_measurement.rb', line 31 def top_n_plus_extra_nearest_pocket_rank @top_n_plus_extra_nearest_pocket_rank end |