Class: Rafflesia::StructureComparisonsExportRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::StructureComparisonsExportRequest
- Defined in:
- lib/rafflesia/proteins/structure_comparisons_export_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ database: :database, foldseek_binary_path: :foldseek_binary_path, max_comparisons: :max_comparisons, method: :method, output_format: :output_format, output_relation: :output_relation, pairs: :pairs, pairs_path: :pairs_path, pairs_table_object_id: :pairs_table_object_id, pairs_table_path: :pairs_table_path, partition_by: :partition_by, preview_limit: :preview_limit, relation: :relation, release: :release, sort_by: :sort_by, tmalign_binary_path: :tmalign_binary_path }.freeze
Instance Attribute Summary collapse
-
#database ⇒ Object
Returns the value of attribute database.
-
#foldseek_binary_path ⇒ Object
Returns the value of attribute foldseek_binary_path.
-
#max_comparisons ⇒ Object
Returns the value of attribute max_comparisons.
-
#method ⇒ Object
Returns the value of attribute method.
-
#output_format ⇒ Object
Returns the value of attribute output_format.
-
#output_relation ⇒ Object
Returns the value of attribute output_relation.
-
#pairs ⇒ Object
Returns the value of attribute pairs.
-
#pairs_path ⇒ Object
Returns the value of attribute pairs_path.
-
#pairs_table_object_id ⇒ Object
Returns the value of attribute pairs_table_object_id.
-
#pairs_table_path ⇒ Object
Returns the value of attribute pairs_table_path.
-
#partition_by ⇒ Object
Returns the value of attribute partition_by.
-
#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.
-
#tmalign_binary_path ⇒ Object
Returns the value of attribute tmalign_binary_path.
Instance Method Summary collapse
-
#initialize(json) ⇒ StructureComparisonsExportRequest
constructor
A new instance of StructureComparisonsExportRequest.
Constructor Details
#initialize(json) ⇒ StructureComparisonsExportRequest
Returns a new instance of StructureComparisonsExportRequest.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/rafflesia/proteins/structure_comparisons_export_request.rb', line 45 def initialize(json) super() hash = self.class.normalize(json) @database = hash[:database] @foldseek_binary_path = hash[:foldseek_binary_path] @max_comparisons = hash[:max_comparisons] @method = hash[:method] @output_format = hash[:output_format] @output_relation = hash[:output_relation] @pairs = (hash[:pairs] || []).map { |item| item ? Rafflesia::StructureComparisonPair.new(item) : nil } @pairs_path = hash[:pairs_path] @pairs_table_object_id = hash[:pairs_table_object_id] @pairs_table_path = hash[:pairs_table_path] @partition_by = (hash[:partition_by] || []) @preview_limit = hash[:preview_limit] @relation = hash[:relation] @release = hash[:release] @sort_by = (hash[:sort_by] || []) @tmalign_binary_path = hash[:tmalign_binary_path] end |
Instance Attribute Details
#database ⇒ Object
Returns the value of attribute database.
27 28 29 |
# File 'lib/rafflesia/proteins/structure_comparisons_export_request.rb', line 27 def database @database end |
#foldseek_binary_path ⇒ Object
Returns the value of attribute foldseek_binary_path.
27 28 29 |
# File 'lib/rafflesia/proteins/structure_comparisons_export_request.rb', line 27 def foldseek_binary_path @foldseek_binary_path end |
#max_comparisons ⇒ Object
Returns the value of attribute max_comparisons.
27 28 29 |
# File 'lib/rafflesia/proteins/structure_comparisons_export_request.rb', line 27 def max_comparisons @max_comparisons end |
#method ⇒ Object
Returns the value of attribute method.
27 28 29 |
# File 'lib/rafflesia/proteins/structure_comparisons_export_request.rb', line 27 def method @method end |
#output_format ⇒ Object
Returns the value of attribute output_format.
27 28 29 |
# File 'lib/rafflesia/proteins/structure_comparisons_export_request.rb', line 27 def output_format @output_format end |
#output_relation ⇒ Object
Returns the value of attribute output_relation.
27 28 29 |
# File 'lib/rafflesia/proteins/structure_comparisons_export_request.rb', line 27 def output_relation @output_relation end |
#pairs ⇒ Object
Returns the value of attribute pairs.
27 28 29 |
# File 'lib/rafflesia/proteins/structure_comparisons_export_request.rb', line 27 def pairs @pairs end |
#pairs_path ⇒ Object
Returns the value of attribute pairs_path.
27 28 29 |
# File 'lib/rafflesia/proteins/structure_comparisons_export_request.rb', line 27 def pairs_path @pairs_path end |
#pairs_table_object_id ⇒ Object
Returns the value of attribute pairs_table_object_id.
27 28 29 |
# File 'lib/rafflesia/proteins/structure_comparisons_export_request.rb', line 27 def pairs_table_object_id @pairs_table_object_id end |
#pairs_table_path ⇒ Object
Returns the value of attribute pairs_table_path.
27 28 29 |
# File 'lib/rafflesia/proteins/structure_comparisons_export_request.rb', line 27 def pairs_table_path @pairs_table_path end |
#partition_by ⇒ Object
Returns the value of attribute partition_by.
27 28 29 |
# File 'lib/rafflesia/proteins/structure_comparisons_export_request.rb', line 27 def partition_by @partition_by end |
#preview_limit ⇒ Object
Returns the value of attribute preview_limit.
27 28 29 |
# File 'lib/rafflesia/proteins/structure_comparisons_export_request.rb', line 27 def preview_limit @preview_limit end |
#relation ⇒ Object
Returns the value of attribute relation.
27 28 29 |
# File 'lib/rafflesia/proteins/structure_comparisons_export_request.rb', line 27 def relation @relation end |
#release ⇒ Object
Returns the value of attribute release.
27 28 29 |
# File 'lib/rafflesia/proteins/structure_comparisons_export_request.rb', line 27 def release @release end |
#sort_by ⇒ Object
Returns the value of attribute sort_by.
27 28 29 |
# File 'lib/rafflesia/proteins/structure_comparisons_export_request.rb', line 27 def sort_by @sort_by end |
#tmalign_binary_path ⇒ Object
Returns the value of attribute tmalign_binary_path.
27 28 29 |
# File 'lib/rafflesia/proteins/structure_comparisons_export_request.rb', line 27 def tmalign_binary_path @tmalign_binary_path end |