Class: Rafflesia::HmmerSearchRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/sequences/hmmer_search_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  database: :database,
  db: :db,
  domains: :domains,
  dry_run: :dry_run,
  evalue: :evalue,
  extra_args: :extra_args,
  manifest_object_id: :manifest_object_id,
  manifest_path: :manifest_path,
  output_dir: :output_dir,
  output_format: :output_format,
  output_relation: :output_relation,
  partition_by: :partition_by,
  preview_limit: :preview_limit,
  program: :program,
  query: :query,
  relation: :relation,
  release: :release,
  shards: :shards,
  sort_by: :sort_by,
  target_dir: :target_dir,
  threads: :threads
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ HmmerSearchRequest

Returns a new instance of HmmerSearchRequest.



55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# File 'lib/rafflesia/sequences/hmmer_search_request.rb', line 55

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @database = hash[:database]
  @db = hash[:db]
  @domains = hash[:domains]
  @dry_run = hash[:dry_run]
  @evalue = hash[:evalue]
  @extra_args = (hash[:extra_args] || [])
  @manifest_object_id = hash[:manifest_object_id]
  @manifest_path = hash[:manifest_path]
  @output_dir = hash[:output_dir]
  @output_format = hash[:output_format]
  @output_relation = hash[:output_relation]
  @partition_by = (hash[:partition_by] || [])
  @preview_limit = hash[:preview_limit]
  @program = hash[:program]
  @query = hash[:query]
  @relation = hash[:relation]
  @release = hash[:release]
  @shards = (hash[:shards] || [])
  @sort_by = (hash[:sort_by] || [])
  @target_dir = hash[:target_dir]
  @threads = hash[:threads]
end

Instance Attribute Details

#databaseObject

Returns the value of attribute database.



32
33
34
# File 'lib/rafflesia/sequences/hmmer_search_request.rb', line 32

def database
  @database
end

#dbObject

Returns the value of attribute db.



32
33
34
# File 'lib/rafflesia/sequences/hmmer_search_request.rb', line 32

def db
  @db
end

#domainsObject

Returns the value of attribute domains.



32
33
34
# File 'lib/rafflesia/sequences/hmmer_search_request.rb', line 32

def domains
  @domains
end

#dry_runObject

Returns the value of attribute dry_run.



32
33
34
# File 'lib/rafflesia/sequences/hmmer_search_request.rb', line 32

def dry_run
  @dry_run
end

#evalueObject

Returns the value of attribute evalue.



32
33
34
# File 'lib/rafflesia/sequences/hmmer_search_request.rb', line 32

def evalue
  @evalue
end

#extra_argsObject

Returns the value of attribute extra_args.



32
33
34
# File 'lib/rafflesia/sequences/hmmer_search_request.rb', line 32

def extra_args
  @extra_args
end

#manifest_object_idObject

Returns the value of attribute manifest_object_id.



32
33
34
# File 'lib/rafflesia/sequences/hmmer_search_request.rb', line 32

def manifest_object_id
  @manifest_object_id
end

#manifest_pathObject

Returns the value of attribute manifest_path.



32
33
34
# File 'lib/rafflesia/sequences/hmmer_search_request.rb', line 32

def manifest_path
  @manifest_path
end

#output_dirObject

Returns the value of attribute output_dir.



32
33
34
# File 'lib/rafflesia/sequences/hmmer_search_request.rb', line 32

def output_dir
  @output_dir
end

#output_formatObject

Returns the value of attribute output_format.



32
33
34
# File 'lib/rafflesia/sequences/hmmer_search_request.rb', line 32

def output_format
  @output_format
end

#output_relationObject

Returns the value of attribute output_relation.



32
33
34
# File 'lib/rafflesia/sequences/hmmer_search_request.rb', line 32

def output_relation
  @output_relation
end

#partition_byObject

Returns the value of attribute partition_by.



32
33
34
# File 'lib/rafflesia/sequences/hmmer_search_request.rb', line 32

def partition_by
  @partition_by
end

#preview_limitObject

Returns the value of attribute preview_limit.



32
33
34
# File 'lib/rafflesia/sequences/hmmer_search_request.rb', line 32

def preview_limit
  @preview_limit
end

#programObject

Returns the value of attribute program.



32
33
34
# File 'lib/rafflesia/sequences/hmmer_search_request.rb', line 32

def program
  @program
end

#queryObject

Returns the value of attribute query.



32
33
34
# File 'lib/rafflesia/sequences/hmmer_search_request.rb', line 32

def query
  @query
end

#relationObject

Returns the value of attribute relation.



32
33
34
# File 'lib/rafflesia/sequences/hmmer_search_request.rb', line 32

def relation
  @relation
end

#releaseObject

Returns the value of attribute release.



32
33
34
# File 'lib/rafflesia/sequences/hmmer_search_request.rb', line 32

def release
  @release
end

#shardsObject

Returns the value of attribute shards.



32
33
34
# File 'lib/rafflesia/sequences/hmmer_search_request.rb', line 32

def shards
  @shards
end

#sort_byObject

Returns the value of attribute sort_by.



32
33
34
# File 'lib/rafflesia/sequences/hmmer_search_request.rb', line 32

def sort_by
  @sort_by
end

#target_dirObject

Returns the value of attribute target_dir.



32
33
34
# File 'lib/rafflesia/sequences/hmmer_search_request.rb', line 32

def target_dir
  @target_dir
end

#threadsObject

Returns the value of attribute threads.



32
33
34
# File 'lib/rafflesia/sequences/hmmer_search_request.rb', line 32

def threads
  @threads
end