Class: Rafflesia::HmmerSearchData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::HmmerSearchData
- 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
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#command ⇒ Object
Returns the value of attribute command.
-
#db ⇒ Object
Returns the value of attribute db.
-
#domain_hits ⇒ Object
Returns the value of attribute domain_hits.
-
#domains ⇒ Object
Returns the value of attribute domains.
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#hit_count ⇒ Object
Returns the value of attribute hit_count.
-
#hits ⇒ Object
Returns the value of attribute hits.
-
#manifest_id ⇒ Object
Returns the value of attribute manifest_id.
-
#materialization ⇒ Object
Returns the value of attribute materialization.
-
#normalized_output_object ⇒ Object
Returns the value of attribute normalized_output_object.
-
#output_object ⇒ Object
Returns the value of attribute output_object.
-
#output_path ⇒ Object
Returns the value of attribute output_path.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
-
#program ⇒ Object
Returns the value of attribute program.
-
#query ⇒ Object
Returns the value of attribute query.
-
#raw_output_object ⇒ Object
Returns the value of attribute raw_output_object.
-
#relation ⇒ Object
Returns the value of attribute relation.
Instance Method Summary collapse
-
#initialize(json) ⇒ HmmerSearchData
constructor
A new instance of HmmerSearchData.
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
#backend ⇒ Object
Returns the value of attribute backend.
29 30 31 |
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29 def backend @backend end |
#command ⇒ Object
Returns the value of attribute command.
29 30 31 |
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29 def command @command end |
#db ⇒ Object
Returns the value of attribute db.
29 30 31 |
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29 def db @db end |
#domain_hits ⇒ Object
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 |
#domains ⇒ Object
Returns the value of attribute domains.
29 30 31 |
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29 def domains @domains end |
#dry_run ⇒ Object
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_count ⇒ Object
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 |
#hits ⇒ Object
Returns the value of attribute hits.
29 30 31 |
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29 def hits @hits end |
#manifest_id ⇒ Object
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 |
#materialization ⇒ Object
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_object ⇒ Object
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_object ⇒ Object
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_path ⇒ Object
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 |
#parameters ⇒ Object
Returns the value of attribute parameters.
29 30 31 |
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29 def parameters @parameters end |
#program ⇒ Object
Returns the value of attribute program.
29 30 31 |
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29 def program @program end |
#query ⇒ Object
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_object ⇒ Object
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 |
#relation ⇒ Object
Returns the value of attribute relation.
29 30 31 |
# File 'lib/rafflesia/sequences/hmmer_search_data.rb', line 29 def relation @relation end |