Class: Rafflesia::PocketLigandDistancesRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::PocketLigandDistancesRequest
- Defined in:
- lib/rafflesia/proteins/pocket_ligand_distances_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ database: :database, distance_threshold_angstrom: :distance_threshold_angstrom, include_waters: :include_waters, ligand_grouping: :ligand_grouping, ligands: :ligands, max_pairs: :max_pairs, output_format: :output_format, output_relation: :output_relation, partition_by: :partition_by, pockets: :pockets, prediction_format: :prediction_format, prediction_method: :prediction_method, prediction_path: :prediction_path, preview_limit: :preview_limit, relation: :relation, release: :release, sort_by: :sort_by, structure_id: :structure_id, top_extra: :top_extra, top_n_reference: :top_n_reference }.freeze
Instance Attribute Summary collapse
-
#database ⇒ Object
Returns the value of attribute database.
-
#distance_threshold_angstrom ⇒ Object
Returns the value of attribute distance_threshold_angstrom.
-
#include_waters ⇒ Object
Returns the value of attribute include_waters.
-
#ligand_grouping ⇒ Object
Returns the value of attribute ligand_grouping.
-
#ligands ⇒ Object
Returns the value of attribute ligands.
-
#max_pairs ⇒ Object
Returns the value of attribute max_pairs.
-
#output_format ⇒ Object
Returns the value of attribute output_format.
-
#output_relation ⇒ Object
Returns the value of attribute output_relation.
-
#partition_by ⇒ Object
Returns the value of attribute partition_by.
-
#pockets ⇒ Object
Returns the value of attribute pockets.
-
#prediction_format ⇒ Object
Returns the value of attribute prediction_format.
-
#prediction_method ⇒ Object
Returns the value of attribute prediction_method.
-
#prediction_path ⇒ Object
Returns the value of attribute prediction_path.
-
#preview_limit ⇒ Object
Returns the value of attribute preview_limit.
-
#relation ⇒ Object
Returns the value of attribute relation.
-
#release ⇒ Object
Returns the value of attribute release.
-
#sort_by ⇒ Object
Returns the value of attribute sort_by.
-
#structure_id ⇒ Object
Returns the value of attribute structure_id.
-
#top_extra ⇒ Object
Returns the value of attribute top_extra.
-
#top_n_reference ⇒ Object
Returns the value of attribute top_n_reference.
Instance Method Summary collapse
-
#initialize(json) ⇒ PocketLigandDistancesRequest
constructor
A new instance of PocketLigandDistancesRequest.
Constructor Details
#initialize(json) ⇒ PocketLigandDistancesRequest
Returns a new instance of PocketLigandDistancesRequest.
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_distances_request.rb', line 53 def initialize(json) super() hash = self.class.normalize(json) @database = hash[:database] @distance_threshold_angstrom = hash[:distance_threshold_angstrom] @include_waters = hash[:include_waters] @ligand_grouping = hash[:ligand_grouping] @ligands = (hash[:ligands] || []) @max_pairs = hash[:max_pairs] @output_format = hash[:output_format] @output_relation = hash[:output_relation] @partition_by = (hash[:partition_by] || []) @pockets = (hash[:pockets] || []).map { |item| item ? Rafflesia::Pocket.new(item) : nil } @prediction_format = hash[:prediction_format] @prediction_method = hash[:prediction_method] @prediction_path = hash[:prediction_path] @preview_limit = hash[:preview_limit] @relation = hash[:relation] @release = hash[:release] @sort_by = (hash[:sort_by] || []) @structure_id = hash[:structure_id] @top_extra = hash[:top_extra] @top_n_reference = hash[:top_n_reference] end |
Instance Attribute Details
#database ⇒ Object
Returns the value of attribute database.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_distances_request.rb', line 31 def database @database end |
#distance_threshold_angstrom ⇒ Object
Returns the value of attribute distance_threshold_angstrom.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_distances_request.rb', line 31 def distance_threshold_angstrom @distance_threshold_angstrom end |
#include_waters ⇒ Object
Returns the value of attribute include_waters.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_distances_request.rb', line 31 def include_waters @include_waters end |
#ligand_grouping ⇒ Object
Returns the value of attribute ligand_grouping.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_distances_request.rb', line 31 def ligand_grouping @ligand_grouping end |
#ligands ⇒ Object
Returns the value of attribute ligands.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_distances_request.rb', line 31 def ligands @ligands end |
#max_pairs ⇒ Object
Returns the value of attribute max_pairs.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_distances_request.rb', line 31 def max_pairs @max_pairs end |
#output_format ⇒ Object
Returns the value of attribute output_format.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_distances_request.rb', line 31 def output_format @output_format end |
#output_relation ⇒ Object
Returns the value of attribute output_relation.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_distances_request.rb', line 31 def output_relation @output_relation end |
#partition_by ⇒ Object
Returns the value of attribute partition_by.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_distances_request.rb', line 31 def partition_by @partition_by end |
#pockets ⇒ Object
Returns the value of attribute pockets.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_distances_request.rb', line 31 def pockets @pockets end |
#prediction_format ⇒ Object
Returns the value of attribute prediction_format.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_distances_request.rb', line 31 def prediction_format @prediction_format end |
#prediction_method ⇒ Object
Returns the value of attribute prediction_method.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_distances_request.rb', line 31 def prediction_method @prediction_method end |
#prediction_path ⇒ Object
Returns the value of attribute prediction_path.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_distances_request.rb', line 31 def prediction_path @prediction_path end |
#preview_limit ⇒ Object
Returns the value of attribute preview_limit.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_distances_request.rb', line 31 def preview_limit @preview_limit end |
#relation ⇒ Object
Returns the value of attribute relation.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_distances_request.rb', line 31 def relation @relation end |
#release ⇒ Object
Returns the value of attribute release.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_distances_request.rb', line 31 def release @release end |
#sort_by ⇒ Object
Returns the value of attribute sort_by.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_distances_request.rb', line 31 def sort_by @sort_by end |
#structure_id ⇒ Object
Returns the value of attribute structure_id.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_distances_request.rb', line 31 def structure_id @structure_id end |
#top_extra ⇒ Object
Returns the value of attribute top_extra.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_distances_request.rb', line 31 def top_extra @top_extra end |
#top_n_reference ⇒ Object
Returns the value of attribute top_n_reference.
31 32 33 |
# File 'lib/rafflesia/proteins/pocket_ligand_distances_request.rb', line 31 def top_n_reference @top_n_reference end |