Class: Rafflesia::HmmerSearchData

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

Constant Summary collapse

HASH_ATTRS =
{
  backend: :backend,
  command: :command,
  db: :db,
  domain_hits: :domain_hits,
  domains: :domains,
  dry_run: :dry_run,
  hit_count: :hit_count,
  hits: :hits,
  manifest_id: :manifest_id,
  materialization: :materialization,
  normalized_output_object: :normalized_output_object,
  output_object: :output_object,
  output_path: :output_path,
  parameters: :parameters,
  program: :program,
  query: :query,
  raw_output_object: :raw_output_object,
  relation: :relation
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ HmmerSearchData

Returns a new instance of HmmerSearchData.



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 49

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @backend = hash[:backend]
  @command = (hash[:command] || [])
  @db = hash[:db]
  @domain_hits = (hash[:domain_hits] || []).map { |item| item ? Rafflesia::HmmerDomainHit.new(item) : nil }
  @domains = hash[:domains]
  @dry_run = hash[:dry_run]
  @hit_count = hash[:hit_count]
  @hits = (hash[:hits] || []).map { |item| item ? Rafflesia::HmmerHit.new(item) : nil }
  @manifest_id = hash[:manifest_id]
  @materialization = hash[:materialization] ? Rafflesia::ObjectArtifactMaterializeData.new(hash[:materialization]) : nil
  @normalized_output_object = hash[:normalized_output_object] ? Rafflesia::ObjectRef.new(hash[:normalized_output_object]) : nil
  @output_object = hash[:output_object] ? Rafflesia::ObjectRef.new(hash[:output_object]) : nil
  @output_path = hash[:output_path]
  @parameters = hash[:parameters] || {}
  @program = hash[:program]
  @query = hash[:query]
  @raw_output_object = hash[:raw_output_object] ? Rafflesia::ObjectRef.new(hash[:raw_output_object]) : nil
  @relation = hash[:relation] ? Rafflesia::RelationArtifactData.new(hash[:relation]) : nil
end

Instance Attribute Details

#backendObject

Returns the value of attribute backend.



29
30
31
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29

def backend
  @backend
end

#commandObject

Returns the value of attribute command.



29
30
31
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29

def command
  @command
end

#dbObject

Returns the value of attribute db.



29
30
31
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29

def db
  @db
end

#domain_hitsObject

Returns the value of attribute domain_hits.



29
30
31
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29

def domain_hits
  @domain_hits
end

#domainsObject

Returns the value of attribute domains.



29
30
31
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29

def domains
  @domains
end

#dry_runObject

Returns the value of attribute dry_run.



29
30
31
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29

def dry_run
  @dry_run
end

#hit_countObject

Returns the value of attribute hit_count.



29
30
31
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29

def hit_count
  @hit_count
end

#hitsObject

Returns the value of attribute hits.



29
30
31
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29

def hits
  @hits
end

#manifest_idObject

Returns the value of attribute manifest_id.



29
30
31
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29

def manifest_id
  @manifest_id
end

#materializationObject

Returns the value of attribute materialization.



29
30
31
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29

def materialization
  @materialization
end

#normalized_output_objectObject

Returns the value of attribute normalized_output_object.



29
30
31
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29

def normalized_output_object
  @normalized_output_object
end

#output_objectObject

Returns the value of attribute output_object.



29
30
31
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29

def output_object
  @output_object
end

#output_pathObject

Returns the value of attribute output_path.



29
30
31
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29

def output_path
  @output_path
end

#parametersObject

Returns the value of attribute parameters.



29
30
31
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29

def parameters
  @parameters
end

#programObject

Returns the value of attribute program.



29
30
31
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29

def program
  @program
end

#queryObject

Returns the value of attribute query.



29
30
31
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29

def query
  @query
end

#raw_output_objectObject

Returns the value of attribute raw_output_object.



29
30
31
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29

def raw_output_object
  @raw_output_object
end

#relationObject

Returns the value of attribute relation.



29
30
31
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29

def relation
  @relation
end