Class: Rafflesia::MsaArtifactManifest

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_objectObject

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_idObject

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_pathObject

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

#backendObject

Returns the value of attribute backend.



40
41
42
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40

def backend
  @backend
end

#cache_hitObject

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_keyObject

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_modeObject

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

#commandObject

Returns the value of attribute command.



40
41
42
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40

def command
  @command
end

#dry_runObject

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_sourceObject

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_idObject

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_objectObject

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_idObject

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_pathObject

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

#inspectionObject

Returns the value of attribute inspection.



40
41
42
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40

def inspection
  @inspection
end

#kindObject

Returns the value of attribute kind.



40
41
42
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40

def kind
  @kind
end

#log_objectObject

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_versionObject

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_idObject

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

#parametersObject

Returns the value of attribute parameters.



40
41
42
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40

def parameters
  @parameters
end

#profile_objectObject

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

#relationObject

Returns the value of attribute relation.



40
41
42
# File 'lib/rafflesia/cache/msa_artifact_manifest.rb', line 40

def relation
  @relation
end

#search_backendObject

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_idObject

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_countObject

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_idsObject

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_objectObject

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_idObject

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_versionsObject

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