Class: Rafflesia::MsaFromSearchRequest

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_modeObject

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

#dbObject

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_runObject

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_argsObject

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_pathObject

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_idObject

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_queryObject

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_sizeObject

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_hitsObject

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_identityObject

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_dirObject

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

#queryObject

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_backendObject

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_idObject

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_idObject

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

#strategyObject

Returns the value of attribute strategy.



28
29
30
# File 'lib/rafflesia/sequences/msa_from_search_request.rb', line 28

def strategy
  @strategy
end

#threadsObject

Returns the value of attribute threads.



28
29
30
# File 'lib/rafflesia/sequences/msa_from_search_request.rb', line 28

def threads
  @threads
end