Class: Rafflesia::SequenceCandidateSweepRow

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

Constant Summary collapse

HASH_ATTRS =
{
  candidate_count: :candidate_count,
  feasible: :feasible,
  index: :index,
  index_generation: :index_generation,
  kmer_size: :kmer_size,
  max_hits: :max_hits,
  mean_object_bytes_per_query: :mean_object_bytes_per_query,
  mean_object_reads_per_query: :mean_object_reads_per_query,
  minimizer_window: :minimizer_window,
  namespace: :namespace,
  object_bytes_fetched: :object_bytes_fetched,
  object_read_count: :object_read_count,
  p50_latency_ms: :p_50_latency_ms,
  p95_latency_ms: :p_95_latency_ms,
  payload_shard_records: :payload_shard_records,
  query_count: :query_count,
  query_mode: :query_mode,
  recall_at_k: :recall_at_k,
  record_count: :record_count,
  reduced_alphabet: :reduced_alphabet,
  rejection_reasons: :rejection_reasons,
  warnings: :warnings
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SequenceCandidateSweepRow

Returns a new instance of SequenceCandidateSweepRow.



57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_row.rb', line 57

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @candidate_count = hash[:candidate_count]
  @feasible = hash[:feasible]
  @index = hash[:index]
  @index_generation = hash[:index_generation]
  @kmer_size = hash[:kmer_size]
  @max_hits = hash[:max_hits]
  @mean_object_bytes_per_query = hash[:mean_object_bytes_per_query]
  @mean_object_reads_per_query = hash[:mean_object_reads_per_query]
  @minimizer_window = hash[:minimizer_window]
  @namespace = hash[:namespace]
  @object_bytes_fetched = hash[:object_bytes_fetched]
  @object_read_count = hash[:object_read_count]
  @p_50_latency_ms = hash[:p50_latency_ms]
  @p_95_latency_ms = hash[:p95_latency_ms]
  @payload_shard_records = hash[:payload_shard_records]
  @query_count = hash[:query_count]
  @query_mode = hash[:query_mode]
  @recall_at_k = hash[:recall_at_k]
  @record_count = hash[:record_count]
  @reduced_alphabet = hash[:reduced_alphabet]
  @rejection_reasons = (hash[:rejection_reasons] || [])
  @warnings = (hash[:warnings] || [])
end

Instance Attribute Details

#candidate_countObject

Returns the value of attribute candidate_count.



33
34
35
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_row.rb', line 33

def candidate_count
  @candidate_count
end

#feasibleObject

Returns the value of attribute feasible.



33
34
35
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_row.rb', line 33

def feasible
  @feasible
end

#indexObject

Returns the value of attribute index.



33
34
35
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_row.rb', line 33

def index
  @index
end

#index_generationObject

Returns the value of attribute index_generation.



33
34
35
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_row.rb', line 33

def index_generation
  @index_generation
end

#kmer_sizeObject

Returns the value of attribute kmer_size.



33
34
35
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_row.rb', line 33

def kmer_size
  @kmer_size
end

#max_hitsObject

Returns the value of attribute max_hits.



33
34
35
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_row.rb', line 33

def max_hits
  @max_hits
end

#mean_object_bytes_per_queryObject

Returns the value of attribute mean_object_bytes_per_query.



33
34
35
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_row.rb', line 33

def mean_object_bytes_per_query
  @mean_object_bytes_per_query
end

#mean_object_reads_per_queryObject

Returns the value of attribute mean_object_reads_per_query.



33
34
35
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_row.rb', line 33

def mean_object_reads_per_query
  @mean_object_reads_per_query
end

#minimizer_windowObject

Returns the value of attribute minimizer_window.



33
34
35
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_row.rb', line 33

def minimizer_window
  @minimizer_window
end

#namespaceObject

Returns the value of attribute namespace.



33
34
35
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_row.rb', line 33

def namespace
  @namespace
end

#object_bytes_fetchedObject

Returns the value of attribute object_bytes_fetched.



33
34
35
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_row.rb', line 33

def object_bytes_fetched
  @object_bytes_fetched
end

#object_read_countObject

Returns the value of attribute object_read_count.



33
34
35
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_row.rb', line 33

def object_read_count
  @object_read_count
end

#p_50_latency_msObject

Returns the value of attribute p_50_latency_ms.



33
34
35
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_row.rb', line 33

def p_50_latency_ms
  @p_50_latency_ms
end

#p_95_latency_msObject

Returns the value of attribute p_95_latency_ms.



33
34
35
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_row.rb', line 33

def p_95_latency_ms
  @p_95_latency_ms
end

#payload_shard_recordsObject

Returns the value of attribute payload_shard_records.



33
34
35
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_row.rb', line 33

def payload_shard_records
  @payload_shard_records
end

#query_countObject

Returns the value of attribute query_count.



33
34
35
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_row.rb', line 33

def query_count
  @query_count
end

#query_modeObject

Returns the value of attribute query_mode.



33
34
35
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_row.rb', line 33

def query_mode
  @query_mode
end

#recall_at_kObject

Returns the value of attribute recall_at_k.



33
34
35
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_row.rb', line 33

def recall_at_k
  @recall_at_k
end

#record_countObject

Returns the value of attribute record_count.



33
34
35
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_row.rb', line 33

def record_count
  @record_count
end

#reduced_alphabetObject

Returns the value of attribute reduced_alphabet.



33
34
35
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_row.rb', line 33

def reduced_alphabet
  @reduced_alphabet
end

#rejection_reasonsObject

Returns the value of attribute rejection_reasons.



33
34
35
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_row.rb', line 33

def rejection_reasons
  @rejection_reasons
end

#warningsObject

Returns the value of attribute warnings.



33
34
35
# File 'lib/rafflesia/sequences/sequence_candidate_sweep_row.rb', line 33

def warnings
  @warnings
end