Class: Rafflesia::DiamondSearchRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  database: :database,
  db: :db,
  dry_run: :dry_run,
  evalue: :evalue,
  extra_args: :extra_args,
  manifest_path: :manifest_path,
  materialize: :materialize,
  max_target_seqs: :max_target_seqs,
  min_bit_score: :min_bit_score,
  out_format: :out_format,
  output_dir: :output_dir,
  output_format: :output_format,
  output_relation: :output_relation,
  partition_by: :partition_by,
  preview_limit: :preview_limit,
  program: :program,
  query: :query,
  query_gencode: :query_gencode,
  relation: :relation,
  release: :release,
  sort_by: :sort_by,
  target_dir: :target_dir,
  threads: :threads
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DiamondSearchRequest

Returns a new instance of DiamondSearchRequest.



59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/rafflesia/sequences/diamond_search_request.rb', line 59

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @database = hash[:database]
  @db = hash[:db]
  @dry_run = hash[:dry_run]
  @evalue = hash[:evalue]
  @extra_args = (hash[:extra_args] || [])
  @manifest_path = hash[:manifest_path]
  @materialize = hash[:materialize]
  @max_target_seqs = hash[:max_target_seqs]
  @min_bit_score = hash[:min_bit_score]
  @out_format = hash[:out_format]
  @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]
  @query_gencode = hash[:query_gencode]
  @relation = hash[:relation]
  @release = hash[:release]
  @sort_by = (hash[:sort_by] || [])
  @target_dir = hash[:target_dir]
  @threads = hash[:threads]
end

Instance Attribute Details

#databaseObject

Returns the value of attribute database.



34
35
36
# File 'lib/rafflesia/sequences/diamond_search_request.rb', line 34

def database
  @database
end

#dbObject

Returns the value of attribute db.



34
35
36
# File 'lib/rafflesia/sequences/diamond_search_request.rb', line 34

def db
  @db
end

#dry_runObject

Returns the value of attribute dry_run.



34
35
36
# File 'lib/rafflesia/sequences/diamond_search_request.rb', line 34

def dry_run
  @dry_run
end

#evalueObject

Returns the value of attribute evalue.



34
35
36
# File 'lib/rafflesia/sequences/diamond_search_request.rb', line 34

def evalue
  @evalue
end

#extra_argsObject

Returns the value of attribute extra_args.



34
35
36
# File 'lib/rafflesia/sequences/diamond_search_request.rb', line 34

def extra_args
  @extra_args
end

#manifest_pathObject

Returns the value of attribute manifest_path.



34
35
36
# File 'lib/rafflesia/sequences/diamond_search_request.rb', line 34

def manifest_path
  @manifest_path
end

#materializeObject

Returns the value of attribute materialize.



34
35
36
# File 'lib/rafflesia/sequences/diamond_search_request.rb', line 34

def materialize
  @materialize
end

#max_target_seqsObject

Returns the value of attribute max_target_seqs.



34
35
36
# File 'lib/rafflesia/sequences/diamond_search_request.rb', line 34

def max_target_seqs
  @max_target_seqs
end

#min_bit_scoreObject

Returns the value of attribute min_bit_score.



34
35
36
# File 'lib/rafflesia/sequences/diamond_search_request.rb', line 34

def min_bit_score
  @min_bit_score
end

#out_formatObject

Returns the value of attribute out_format.



34
35
36
# File 'lib/rafflesia/sequences/diamond_search_request.rb', line 34

def out_format
  @out_format
end

#output_dirObject

Returns the value of attribute output_dir.



34
35
36
# File 'lib/rafflesia/sequences/diamond_search_request.rb', line 34

def output_dir
  @output_dir
end

#output_formatObject

Returns the value of attribute output_format.



34
35
36
# File 'lib/rafflesia/sequences/diamond_search_request.rb', line 34

def output_format
  @output_format
end

#output_relationObject

Returns the value of attribute output_relation.



34
35
36
# File 'lib/rafflesia/sequences/diamond_search_request.rb', line 34

def output_relation
  @output_relation
end

#partition_byObject

Returns the value of attribute partition_by.



34
35
36
# File 'lib/rafflesia/sequences/diamond_search_request.rb', line 34

def partition_by
  @partition_by
end

#preview_limitObject

Returns the value of attribute preview_limit.



34
35
36
# File 'lib/rafflesia/sequences/diamond_search_request.rb', line 34

def preview_limit
  @preview_limit
end

#programObject

Returns the value of attribute program.



34
35
36
# File 'lib/rafflesia/sequences/diamond_search_request.rb', line 34

def program
  @program
end

#queryObject

Returns the value of attribute query.



34
35
36
# File 'lib/rafflesia/sequences/diamond_search_request.rb', line 34

def query
  @query
end

#query_gencodeObject

Returns the value of attribute query_gencode.



34
35
36
# File 'lib/rafflesia/sequences/diamond_search_request.rb', line 34

def query_gencode
  @query_gencode
end

#relationObject

Returns the value of attribute relation.



34
35
36
# File 'lib/rafflesia/sequences/diamond_search_request.rb', line 34

def relation
  @relation
end

#releaseObject

Returns the value of attribute release.



34
35
36
# File 'lib/rafflesia/sequences/diamond_search_request.rb', line 34

def release
  @release
end

#sort_byObject

Returns the value of attribute sort_by.



34
35
36
# File 'lib/rafflesia/sequences/diamond_search_request.rb', line 34

def sort_by
  @sort_by
end

#target_dirObject

Returns the value of attribute target_dir.



34
35
36
# File 'lib/rafflesia/sequences/diamond_search_request.rb', line 34

def target_dir
  @target_dir
end

#threadsObject

Returns the value of attribute threads.



34
35
36
# File 'lib/rafflesia/sequences/diamond_search_request.rb', line 34

def threads
  @threads
end