Class: Rafflesia::MsaArtifactManifest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::MsaArtifactManifest
- Defined in:
- lib/rafflesia/cache/msa_artifact_manifest.rb
Constant Summary collapse
- HASH_ATTRS =
{ alignment_object: :alignment_object, alignment_object_id: :alignment_object_id, alignment_path: :alignment_path, backend: :backend, cache_hit: :cache_hit, cache_key: :cache_key, cache_mode: :cache_mode, command: :command, dry_run: :dry_run, hit_source: :hit_source, homology_search_id: :homology_search_id, input_object: :input_object, input_object_id: :input_object_id, input_path: :input_path, inspection: :inspection, kind: :kind, log_object: :log_object, manifest_version: :manifest_version, operation_id: :operation_id, parameters: :parameters, profile_object: :profile_object, relation: :relation, search_backend: :search_backend, search_object_id: :search_object_id, selected_sequence_count: :selected_sequence_count, selected_sequence_ids: :selected_sequence_ids, sequence_catalog_object: :sequence_catalog_object, sequence_catalog_object_id: :sequence_catalog_object_id, tool_versions: :tool_versions }.freeze
Instance Attribute Summary collapse
-
#alignment_object ⇒ Object
Returns the value of attribute alignment_object.
-
#alignment_object_id ⇒ Object
Returns the value of attribute alignment_object_id.
-
#alignment_path ⇒ Object
Returns the value of attribute alignment_path.
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#cache_hit ⇒ Object
Returns the value of attribute cache_hit.
-
#cache_key ⇒ Object
Returns the value of attribute cache_key.
-
#cache_mode ⇒ Object
Returns the value of attribute cache_mode.
-
#command ⇒ Object
Returns the value of attribute command.
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#hit_source ⇒ Object
Returns the value of attribute hit_source.
-
#homology_search_id ⇒ Object
Returns the value of attribute homology_search_id.
-
#input_object ⇒ Object
Returns the value of attribute input_object.
-
#input_object_id ⇒ Object
Returns the value of attribute input_object_id.
-
#input_path ⇒ Object
Returns the value of attribute input_path.
-
#inspection ⇒ Object
Returns the value of attribute inspection.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#log_object ⇒ Object
Returns the value of attribute log_object.
-
#manifest_version ⇒ Object
Returns the value of attribute manifest_version.
-
#operation_id ⇒ Object
Returns the value of attribute operation_id.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
-
#profile_object ⇒ Object
Returns the value of attribute profile_object.
-
#relation ⇒ Object
Returns the value of attribute relation.
-
#search_backend ⇒ Object
Returns the value of attribute search_backend.
-
#search_object_id ⇒ Object
Returns the value of attribute search_object_id.
-
#selected_sequence_count ⇒ Object
Returns the value of attribute selected_sequence_count.
-
#selected_sequence_ids ⇒ Object
Returns the value of attribute selected_sequence_ids.
-
#sequence_catalog_object ⇒ Object
Returns the value of attribute sequence_catalog_object.
-
#sequence_catalog_object_id ⇒ Object
Returns the value of attribute sequence_catalog_object_id.
-
#tool_versions ⇒ Object
Returns the value of attribute tool_versions.
Instance Method Summary collapse
-
#initialize(json) ⇒ MsaArtifactManifest
constructor
A new instance of MsaArtifactManifest.
Constructor Details
#initialize(json) ⇒ MsaArtifactManifest
Returns a new instance of MsaArtifactManifest.
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 71 def initialize(json) super() hash = self.class.normalize(json) @alignment_object = hash[:alignment_object] ? Rafflesia::ObjectRef.new(hash[:alignment_object]) : nil @alignment_object_id = hash[:alignment_object_id] @alignment_path = hash[:alignment_path] @backend = hash[:backend] @cache_hit = hash[:cache_hit] @cache_key = hash[:cache_key] @cache_mode = hash[:cache_mode] @command = (hash[:command] || []) @dry_run = hash[:dry_run] @hit_source = hash[:hit_source] @homology_search_id = hash[:homology_search_id] @input_object = hash[:input_object] ? Rafflesia::ObjectRef.new(hash[:input_object]) : nil @input_object_id = hash[:input_object_id] @input_path = hash[:input_path] @inspection = hash[:inspection] ? Rafflesia::MsaInspectData.new(hash[:inspection]) : nil @kind = hash[:kind] @log_object = hash[:log_object] ? Rafflesia::ObjectRef.new(hash[:log_object]) : nil @manifest_version = hash[:manifest_version] @operation_id = hash[:operation_id] @parameters = hash[:parameters] || {} @profile_object = hash[:profile_object] ? Rafflesia::ObjectRef.new(hash[:profile_object]) : nil @relation = hash[:relation] ? Rafflesia::RelationArtifactData.new(hash[:relation]) : nil @search_backend = hash[:search_backend] @search_object_id = hash[:search_object_id] @selected_sequence_count = hash[:selected_sequence_count] @selected_sequence_ids = (hash[:selected_sequence_ids] || []) @sequence_catalog_object = hash[:sequence_catalog_object] ? Rafflesia::ObjectRef.new(hash[:sequence_catalog_object]) : nil @sequence_catalog_object_id = hash[:sequence_catalog_object_id] @tool_versions = (hash[:tool_versions] || []).map { |item| item ? Rafflesia::ToolVersion.new(item) : nil } end |
Instance Attribute Details
#alignment_object ⇒ Object
Returns the value of attribute alignment_object.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def alignment_object @alignment_object end |
#alignment_object_id ⇒ Object
Returns the value of attribute alignment_object_id.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def alignment_object_id @alignment_object_id end |
#alignment_path ⇒ Object
Returns the value of attribute alignment_path.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def alignment_path @alignment_path end |
#backend ⇒ Object
Returns the value of attribute backend.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def backend @backend end |
#cache_hit ⇒ Object
Returns the value of attribute cache_hit.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def cache_hit @cache_hit end |
#cache_key ⇒ Object
Returns the value of attribute cache_key.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def cache_key @cache_key end |
#cache_mode ⇒ Object
Returns the value of attribute cache_mode.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def cache_mode @cache_mode end |
#command ⇒ Object
Returns the value of attribute command.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def command @command end |
#dry_run ⇒ Object
Returns the value of attribute dry_run.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def dry_run @dry_run end |
#hit_source ⇒ Object
Returns the value of attribute hit_source.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def hit_source @hit_source end |
#homology_search_id ⇒ Object
Returns the value of attribute homology_search_id.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def homology_search_id @homology_search_id end |
#input_object ⇒ Object
Returns the value of attribute input_object.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def input_object @input_object end |
#input_object_id ⇒ Object
Returns the value of attribute input_object_id.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def input_object_id @input_object_id end |
#input_path ⇒ Object
Returns the value of attribute input_path.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def input_path @input_path end |
#inspection ⇒ Object
Returns the value of attribute inspection.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def inspection @inspection end |
#kind ⇒ Object
Returns the value of attribute kind.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def kind @kind end |
#log_object ⇒ Object
Returns the value of attribute log_object.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def log_object @log_object end |
#manifest_version ⇒ Object
Returns the value of attribute manifest_version.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def manifest_version @manifest_version end |
#operation_id ⇒ Object
Returns the value of attribute operation_id.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def operation_id @operation_id end |
#parameters ⇒ Object
Returns the value of attribute parameters.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def parameters @parameters end |
#profile_object ⇒ Object
Returns the value of attribute profile_object.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def profile_object @profile_object end |
#relation ⇒ Object
Returns the value of attribute relation.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def relation @relation end |
#search_backend ⇒ Object
Returns the value of attribute search_backend.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def search_backend @search_backend end |
#search_object_id ⇒ Object
Returns the value of attribute search_object_id.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def search_object_id @search_object_id end |
#selected_sequence_count ⇒ Object
Returns the value of attribute selected_sequence_count.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def selected_sequence_count @selected_sequence_count end |
#selected_sequence_ids ⇒ Object
Returns the value of attribute selected_sequence_ids.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def selected_sequence_ids @selected_sequence_ids end |
#sequence_catalog_object ⇒ Object
Returns the value of attribute sequence_catalog_object.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def sequence_catalog_object @sequence_catalog_object end |
#sequence_catalog_object_id ⇒ Object
Returns the value of attribute sequence_catalog_object_id.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def sequence_catalog_object_id @sequence_catalog_object_id end |
#tool_versions ⇒ Object
Returns the value of attribute tool_versions.
40 41 42 |
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40 def tool_versions @tool_versions end |