Class: Rafflesia::MsaFromSearchRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::MsaFromSearchRequest
- Defined in:
- lib/rafflesia/sequences/msa_from_search_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ cache_mode: :cache_mode, db: :db, dry_run: :dry_run, extra_args: :extra_args, hit_fasta_path: :hit_fasta_path, homology_search_id: :homology_search_id, include_query: :include_query, kmer_size: :kmer_size, max_hits: :max_hits, min_identity: :min_identity, output_dir: :output_dir, query: :query, search_backend: :search_backend, search_object_id: :search_object_id, sequence_catalog_object_id: :sequence_catalog_object_id, strategy: :strategy, threads: :threads }.freeze
Instance Attribute Summary collapse
-
#cache_mode ⇒ Object
Returns the value of attribute cache_mode.
-
#db ⇒ Object
Returns the value of attribute db.
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#extra_args ⇒ Object
Returns the value of attribute extra_args.
-
#hit_fasta_path ⇒ Object
Returns the value of attribute hit_fasta_path.
-
#homology_search_id ⇒ Object
Returns the value of attribute homology_search_id.
-
#include_query ⇒ Object
Returns the value of attribute include_query.
-
#kmer_size ⇒ Object
Returns the value of attribute kmer_size.
-
#max_hits ⇒ Object
Returns the value of attribute max_hits.
-
#min_identity ⇒ Object
Returns the value of attribute min_identity.
-
#output_dir ⇒ Object
Returns the value of attribute output_dir.
-
#query ⇒ Object
Returns the value of attribute query.
-
#search_backend ⇒ Object
Returns the value of attribute search_backend.
-
#search_object_id ⇒ Object
Returns the value of attribute search_object_id.
-
#sequence_catalog_object_id ⇒ Object
Returns the value of attribute sequence_catalog_object_id.
-
#strategy ⇒ Object
Returns the value of attribute strategy.
-
#threads ⇒ Object
Returns the value of attribute threads.
Instance Method Summary collapse
-
#initialize(json) ⇒ MsaFromSearchRequest
constructor
A new instance of MsaFromSearchRequest.
Constructor Details
#initialize(json) ⇒ MsaFromSearchRequest
Returns a new instance of MsaFromSearchRequest.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/rafflesia/sequences/msa_from_search_request.rb', line 47 def initialize(json) super() hash = self.class.normalize(json) @cache_mode = hash[:cache_mode] @db = hash[:db] @dry_run = hash[:dry_run] @extra_args = (hash[:extra_args] || []) @hit_fasta_path = hash[:hit_fasta_path] @homology_search_id = hash[:homology_search_id] @include_query = hash[:include_query] @kmer_size = hash[:kmer_size] @max_hits = hash[:max_hits] @min_identity = hash[:min_identity] @output_dir = hash[:output_dir] @query = hash[:query] @search_backend = hash[:search_backend] @search_object_id = hash[:search_object_id] @sequence_catalog_object_id = hash[:sequence_catalog_object_id] @strategy = hash[:strategy] @threads = hash[:threads] end |
Instance Attribute Details
#cache_mode ⇒ Object
Returns the value of attribute cache_mode.
28 29 30 |
# File 'lib/rafflesia/sequences/msa_from_search_request.rb', line 28 def cache_mode @cache_mode end |
#db ⇒ Object
Returns the value of attribute db.
28 29 30 |
# File 'lib/rafflesia/sequences/msa_from_search_request.rb', line 28 def db @db end |
#dry_run ⇒ Object
Returns the value of attribute dry_run.
28 29 30 |
# File 'lib/rafflesia/sequences/msa_from_search_request.rb', line 28 def dry_run @dry_run end |
#extra_args ⇒ Object
Returns the value of attribute extra_args.
28 29 30 |
# File 'lib/rafflesia/sequences/msa_from_search_request.rb', line 28 def extra_args @extra_args end |
#hit_fasta_path ⇒ Object
Returns the value of attribute hit_fasta_path.
28 29 30 |
# File 'lib/rafflesia/sequences/msa_from_search_request.rb', line 28 def hit_fasta_path @hit_fasta_path end |
#homology_search_id ⇒ Object
Returns the value of attribute homology_search_id.
28 29 30 |
# File 'lib/rafflesia/sequences/msa_from_search_request.rb', line 28 def homology_search_id @homology_search_id end |
#include_query ⇒ Object
Returns the value of attribute include_query.
28 29 30 |
# File 'lib/rafflesia/sequences/msa_from_search_request.rb', line 28 def include_query @include_query end |
#kmer_size ⇒ Object
Returns the value of attribute kmer_size.
28 29 30 |
# File 'lib/rafflesia/sequences/msa_from_search_request.rb', line 28 def kmer_size @kmer_size end |
#max_hits ⇒ Object
Returns the value of attribute max_hits.
28 29 30 |
# File 'lib/rafflesia/sequences/msa_from_search_request.rb', line 28 def max_hits @max_hits end |
#min_identity ⇒ Object
Returns the value of attribute min_identity.
28 29 30 |
# File 'lib/rafflesia/sequences/msa_from_search_request.rb', line 28 def min_identity @min_identity end |
#output_dir ⇒ Object
Returns the value of attribute output_dir.
28 29 30 |
# File 'lib/rafflesia/sequences/msa_from_search_request.rb', line 28 def output_dir @output_dir end |
#query ⇒ Object
Returns the value of attribute query.
28 29 30 |
# File 'lib/rafflesia/sequences/msa_from_search_request.rb', line 28 def query @query end |
#search_backend ⇒ Object
Returns the value of attribute search_backend.
28 29 30 |
# File 'lib/rafflesia/sequences/msa_from_search_request.rb', line 28 def search_backend @search_backend end |
#search_object_id ⇒ Object
Returns the value of attribute search_object_id.
28 29 30 |
# File 'lib/rafflesia/sequences/msa_from_search_request.rb', line 28 def search_object_id @search_object_id end |
#sequence_catalog_object_id ⇒ Object
Returns the value of attribute sequence_catalog_object_id.
28 29 30 |
# File 'lib/rafflesia/sequences/msa_from_search_request.rb', line 28 def sequence_catalog_object_id @sequence_catalog_object_id end |
#strategy ⇒ Object
Returns the value of attribute strategy.
28 29 30 |
# File 'lib/rafflesia/sequences/msa_from_search_request.rb', line 28 def strategy @strategy end |
#threads ⇒ Object
Returns the value of attribute threads.
28 29 30 |
# File 'lib/rafflesia/sequences/msa_from_search_request.rb', line 28 def threads @threads end |