Class: Rafflesia::BlastSearchRoutingData

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

Constant Summary collapse

HASH_ATTRS =
{
  candidate_count: :candidate_count,
  candidate_fasta_bytes: :candidate_fasta_bytes,
  candidate_fasta_path: :candidate_fasta_path,
  candidate_ids: :candidate_ids,
  candidate_oids: :candidate_oids,
  candidate_oids_bytes: :candidate_oids_bytes,
  candidate_oids_path: :candidate_oids_path,
  candidate_pack_bytes: :candidate_pack_bytes,
  candidate_pack_prefix: :candidate_pack_prefix,
  exact_pack_object_bytes: :exact_pack_object_bytes,
  exact_pack_object_read_count: :exact_pack_object_read_count,
  exact_prefetch: :exact_prefetch,
  execution_mode: :execution_mode,
  index_id: :index_id,
  is_sequence_order_verified: :is_sequence_order_verified,
  local_control_bytes: :local_control_bytes,
  manifest_object_id: :manifest_object_id,
  materialized_candidate_bytes: :materialized_candidate_bytes,
  mode: :mode,
  pack_sequence_order_sha256: :pack_sequence_order_sha_256,
  returned_candidate_count: :returned_candidate_count,
  routing_object_bytes: :routing_object_bytes,
  routing_object_read_count: :routing_object_read_count,
  seed_index: :seed_index,
  seed_sequence_order_sha256: :seed_sequence_order_sha_256
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ BlastSearchRoutingData

Returns a new instance of BlastSearchRoutingData.



63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 63

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @candidate_count = hash[:candidate_count]
  @candidate_fasta_bytes = hash[:candidate_fasta_bytes]
  @candidate_fasta_path = hash[:candidate_fasta_path]
  @candidate_ids = (hash[:candidate_ids] || [])
  @candidate_oids = (hash[:candidate_oids] || [])
  @candidate_oids_bytes = hash[:candidate_oids_bytes]
  @candidate_oids_path = hash[:candidate_oids_path]
  @candidate_pack_bytes = hash[:candidate_pack_bytes]
  @candidate_pack_prefix = hash[:candidate_pack_prefix]
  @exact_pack_object_bytes = hash[:exact_pack_object_bytes]
  @exact_pack_object_read_count = hash[:exact_pack_object_read_count]
  @exact_prefetch = hash[:exact_prefetch] ? Rafflesia::BlastPackPrefetchData.new(hash[:exact_prefetch]) : nil
  @execution_mode = hash[:execution_mode]
  @index_id = hash[:index_id]
  @is_sequence_order_verified = hash[:is_sequence_order_verified]
  @local_control_bytes = hash[:local_control_bytes]
  @manifest_object_id = hash[:manifest_object_id]
  @materialized_candidate_bytes = hash[:materialized_candidate_bytes]
  @mode = hash[:mode]
  @pack_sequence_order_sha_256 = hash[:pack_sequence_order_sha256]
  @returned_candidate_count = hash[:returned_candidate_count]
  @routing_object_bytes = hash[:routing_object_bytes]
  @routing_object_read_count = hash[:routing_object_read_count]
  @seed_index = hash[:seed_index] ? Rafflesia::SequenceSeedIndexSearchMetrics.new(hash[:seed_index]) : nil
  @seed_sequence_order_sha_256 = hash[:seed_sequence_order_sha256]
end

Instance Attribute Details

#candidate_countObject

Returns the value of attribute candidate_count.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def candidate_count
  @candidate_count
end

#candidate_fasta_bytesObject

Returns the value of attribute candidate_fasta_bytes.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def candidate_fasta_bytes
  @candidate_fasta_bytes
end

#candidate_fasta_pathObject

Returns the value of attribute candidate_fasta_path.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def candidate_fasta_path
  @candidate_fasta_path
end

#candidate_idsObject

Returns the value of attribute candidate_ids.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def candidate_ids
  @candidate_ids
end

#candidate_oidsObject

Returns the value of attribute candidate_oids.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def candidate_oids
  @candidate_oids
end

#candidate_oids_bytesObject

Returns the value of attribute candidate_oids_bytes.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def candidate_oids_bytes
  @candidate_oids_bytes
end

#candidate_oids_pathObject

Returns the value of attribute candidate_oids_path.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def candidate_oids_path
  @candidate_oids_path
end

#candidate_pack_bytesObject

Returns the value of attribute candidate_pack_bytes.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def candidate_pack_bytes
  @candidate_pack_bytes
end

#candidate_pack_prefixObject

Returns the value of attribute candidate_pack_prefix.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def candidate_pack_prefix
  @candidate_pack_prefix
end

#exact_pack_object_bytesObject

Returns the value of attribute exact_pack_object_bytes.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def exact_pack_object_bytes
  @exact_pack_object_bytes
end

#exact_pack_object_read_countObject

Returns the value of attribute exact_pack_object_read_count.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def exact_pack_object_read_count
  @exact_pack_object_read_count
end

#exact_prefetchObject

Returns the value of attribute exact_prefetch.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def exact_prefetch
  @exact_prefetch
end

#execution_modeObject

Returns the value of attribute execution_mode.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def execution_mode
  @execution_mode
end

#index_idObject

Returns the value of attribute index_id.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def index_id
  @index_id
end

#is_sequence_order_verifiedObject

Returns the value of attribute is_sequence_order_verified.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def is_sequence_order_verified
  @is_sequence_order_verified
end

#local_control_bytesObject

Returns the value of attribute local_control_bytes.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def local_control_bytes
  @local_control_bytes
end

#manifest_object_idObject

Returns the value of attribute manifest_object_id.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def manifest_object_id
  @manifest_object_id
end

#materialized_candidate_bytesObject

Returns the value of attribute materialized_candidate_bytes.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def materialized_candidate_bytes
  @materialized_candidate_bytes
end

#modeObject

Returns the value of attribute mode.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def mode
  @mode
end

#pack_sequence_order_sha_256Object

Returns the value of attribute pack_sequence_order_sha_256.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def pack_sequence_order_sha_256
  @pack_sequence_order_sha_256
end

#returned_candidate_countObject

Returns the value of attribute returned_candidate_count.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def returned_candidate_count
  @returned_candidate_count
end

#routing_object_bytesObject

Returns the value of attribute routing_object_bytes.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def routing_object_bytes
  @routing_object_bytes
end

#routing_object_read_countObject

Returns the value of attribute routing_object_read_count.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def routing_object_read_count
  @routing_object_read_count
end

#seed_indexObject

Returns the value of attribute seed_index.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def seed_index
  @seed_index
end

#seed_sequence_order_sha_256Object

Returns the value of attribute seed_sequence_order_sha_256.



36
37
38
# File 'lib/rafflesia/sequences/blast_search_routing_data.rb', line 36

def seed_sequence_order_sha_256
  @seed_sequence_order_sha_256
end