Class: Rafflesia::BlastSearchBenchmarkData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::BlastSearchBenchmarkData
- Defined in:
- lib/rafflesia/sequences/blast_search_benchmark_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ baseline: :baseline, baseline_backend: :baseline_backend, baseline_elapsed_ms: :baseline_elapsed_ms, baseline_hit_count: :baseline_hit_count, baseline_materialized_bytes: :baseline_materialized_bytes, benchmark_id: :benchmark_id, benchmark_object: :benchmark_object, byte_reduction_fraction: :byte_reduction_fraction, db: :db, gate: :gate, hit_overlap_fraction: :hit_overlap_fraction, manifest_path: :manifest_path, mean_rank_delta: :mean_rank_delta, object_native: :object_native, object_native_backend: :object_native_backend, object_native_block_cache_hits: :object_native_block_cache_hits, object_native_block_cache_misses: :object_native_block_cache_misses, object_native_cache_hit_fraction: :object_native_cache_hit_fraction, object_native_candidate_oids_bytes: :object_native_candidate_oids_bytes, object_native_elapsed_ms: :object_native_elapsed_ms, object_native_exact_pack_object_bytes: :object_native_exact_pack_object_bytes, object_native_exact_pack_object_reads: :object_native_exact_pack_object_reads, object_native_hit_count: :object_native_hit_count, object_native_local_control_bytes: :object_native_local_control_bytes, object_native_materialized_bytes: :object_native_materialized_bytes, object_native_object_bytes: :object_native_object_bytes, object_native_object_reads: :object_native_object_reads, object_native_routing_object_bytes: :object_native_routing_object_bytes, object_native_routing_object_reads: :object_native_routing_object_reads, passed: :passed, query: :query, recall_at_1: :recall_at_1, recall_at_10: :recall_at_10, routing_manifest_object_id: :routing_manifest_object_id, rows: :rows, seed_routing: :seed_routing, seed_routing_backend: :seed_routing_backend, seed_routing_block_cache_hits: :seed_routing_block_cache_hits, seed_routing_block_cache_misses: :seed_routing_block_cache_misses, seed_routing_cache_hit_fraction: :seed_routing_cache_hit_fraction, seed_routing_elapsed_ms: :seed_routing_elapsed_ms, seed_routing_hit_count: :seed_routing_hit_count, seed_routing_hit_overlap_fraction: :seed_routing_hit_overlap_fraction, seed_routing_materialized_bytes: :seed_routing_materialized_bytes, seed_routing_object_bytes: :seed_routing_object_bytes, seed_routing_object_reads: :seed_routing_object_reads, seed_routing_recall_at_1: :seed_routing_recall_at_1, seed_routing_recall_at_10: :seed_routing_recall_at_10 }.freeze
Instance Attribute Summary collapse
-
#baseline ⇒ Object
Returns the value of attribute baseline.
-
#baseline_backend ⇒ Object
Returns the value of attribute baseline_backend.
-
#baseline_elapsed_ms ⇒ Object
Returns the value of attribute baseline_elapsed_ms.
-
#baseline_hit_count ⇒ Object
Returns the value of attribute baseline_hit_count.
-
#baseline_materialized_bytes ⇒ Object
Returns the value of attribute baseline_materialized_bytes.
-
#benchmark_id ⇒ Object
Returns the value of attribute benchmark_id.
-
#benchmark_object ⇒ Object
Returns the value of attribute benchmark_object.
-
#byte_reduction_fraction ⇒ Object
Returns the value of attribute byte_reduction_fraction.
-
#db ⇒ Object
Returns the value of attribute db.
-
#gate ⇒ Object
Returns the value of attribute gate.
-
#hit_overlap_fraction ⇒ Object
Returns the value of attribute hit_overlap_fraction.
-
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
-
#mean_rank_delta ⇒ Object
Returns the value of attribute mean_rank_delta.
-
#object_native ⇒ Object
Returns the value of attribute object_native.
-
#object_native_backend ⇒ Object
Returns the value of attribute object_native_backend.
-
#object_native_block_cache_hits ⇒ Object
Returns the value of attribute object_native_block_cache_hits.
-
#object_native_block_cache_misses ⇒ Object
Returns the value of attribute object_native_block_cache_misses.
-
#object_native_cache_hit_fraction ⇒ Object
Returns the value of attribute object_native_cache_hit_fraction.
-
#object_native_candidate_oids_bytes ⇒ Object
Returns the value of attribute object_native_candidate_oids_bytes.
-
#object_native_elapsed_ms ⇒ Object
Returns the value of attribute object_native_elapsed_ms.
-
#object_native_exact_pack_object_bytes ⇒ Object
Returns the value of attribute object_native_exact_pack_object_bytes.
-
#object_native_exact_pack_object_reads ⇒ Object
Returns the value of attribute object_native_exact_pack_object_reads.
-
#object_native_hit_count ⇒ Object
Returns the value of attribute object_native_hit_count.
-
#object_native_local_control_bytes ⇒ Object
Returns the value of attribute object_native_local_control_bytes.
-
#object_native_materialized_bytes ⇒ Object
Returns the value of attribute object_native_materialized_bytes.
-
#object_native_object_bytes ⇒ Object
Returns the value of attribute object_native_object_bytes.
-
#object_native_object_reads ⇒ Object
Returns the value of attribute object_native_object_reads.
-
#object_native_routing_object_bytes ⇒ Object
Returns the value of attribute object_native_routing_object_bytes.
-
#object_native_routing_object_reads ⇒ Object
Returns the value of attribute object_native_routing_object_reads.
-
#passed ⇒ Object
Returns the value of attribute passed.
-
#query ⇒ Object
Returns the value of attribute query.
-
#recall_at_1 ⇒ Object
Returns the value of attribute recall_at_1.
-
#recall_at_10 ⇒ Object
Returns the value of attribute recall_at_10.
-
#routing_manifest_object_id ⇒ Object
Returns the value of attribute routing_manifest_object_id.
-
#rows ⇒ Object
Returns the value of attribute rows.
-
#seed_routing ⇒ Object
Returns the value of attribute seed_routing.
-
#seed_routing_backend ⇒ Object
Returns the value of attribute seed_routing_backend.
-
#seed_routing_block_cache_hits ⇒ Object
Returns the value of attribute seed_routing_block_cache_hits.
-
#seed_routing_block_cache_misses ⇒ Object
Returns the value of attribute seed_routing_block_cache_misses.
-
#seed_routing_cache_hit_fraction ⇒ Object
Returns the value of attribute seed_routing_cache_hit_fraction.
-
#seed_routing_elapsed_ms ⇒ Object
Returns the value of attribute seed_routing_elapsed_ms.
-
#seed_routing_hit_count ⇒ Object
Returns the value of attribute seed_routing_hit_count.
-
#seed_routing_hit_overlap_fraction ⇒ Object
Returns the value of attribute seed_routing_hit_overlap_fraction.
-
#seed_routing_materialized_bytes ⇒ Object
Returns the value of attribute seed_routing_materialized_bytes.
-
#seed_routing_object_bytes ⇒ Object
Returns the value of attribute seed_routing_object_bytes.
-
#seed_routing_object_reads ⇒ Object
Returns the value of attribute seed_routing_object_reads.
-
#seed_routing_recall_at_1 ⇒ Object
Returns the value of attribute seed_routing_recall_at_1.
-
#seed_routing_recall_at_10 ⇒ Object
Returns the value of attribute seed_routing_recall_at_10.
Instance Method Summary collapse
-
#initialize(json) ⇒ BlastSearchBenchmarkData
constructor
A new instance of BlastSearchBenchmarkData.
Constructor Details
#initialize(json) ⇒ BlastSearchBenchmarkData
Returns a new instance of BlastSearchBenchmarkData.
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 109 def initialize(json) super() hash = self.class.normalize(json) @baseline = hash[:baseline] ? Rafflesia::BlastSearchData.new(hash[:baseline]) : nil @baseline_backend = hash[:baseline_backend] @baseline_elapsed_ms = hash[:baseline_elapsed_ms] @baseline_hit_count = hash[:baseline_hit_count] @baseline_materialized_bytes = hash[:baseline_materialized_bytes] @benchmark_id = hash[:benchmark_id] @benchmark_object = hash[:benchmark_object] ? Rafflesia::ObjectRef.new(hash[:benchmark_object]) : nil @byte_reduction_fraction = hash[:byte_reduction_fraction] @db = hash[:db] @gate = hash[:gate] ? Rafflesia::BlastSearchBenchmarkGate.new(hash[:gate]) : nil @hit_overlap_fraction = hash[:hit_overlap_fraction] @manifest_path = hash[:manifest_path] @mean_rank_delta = hash[:mean_rank_delta] @object_native = hash[:object_native] ? Rafflesia::BlastSearchData.new(hash[:object_native]) : nil @object_native_backend = hash[:object_native_backend] @object_native_block_cache_hits = hash[:object_native_block_cache_hits] @object_native_block_cache_misses = hash[:object_native_block_cache_misses] @object_native_cache_hit_fraction = hash[:object_native_cache_hit_fraction] @object_native_candidate_oids_bytes = hash[:object_native_candidate_oids_bytes] @object_native_elapsed_ms = hash[:object_native_elapsed_ms] @object_native_exact_pack_object_bytes = hash[:object_native_exact_pack_object_bytes] @object_native_exact_pack_object_reads = hash[:object_native_exact_pack_object_reads] @object_native_hit_count = hash[:object_native_hit_count] @object_native_local_control_bytes = hash[:object_native_local_control_bytes] @object_native_materialized_bytes = hash[:object_native_materialized_bytes] @object_native_object_bytes = hash[:object_native_object_bytes] @object_native_object_reads = hash[:object_native_object_reads] @object_native_routing_object_bytes = hash[:object_native_routing_object_bytes] @object_native_routing_object_reads = hash[:object_native_routing_object_reads] @passed = hash[:passed] @query = hash[:query] @recall_at_1 = hash[:recall_at_1] @recall_at_10 = hash[:recall_at_10] @routing_manifest_object_id = hash[:routing_manifest_object_id] @rows = (hash[:rows] || []).map { |item| item ? Rafflesia::BlastSearchBenchmarkRow.new(item) : nil } @seed_routing = hash[:seed_routing] ? Rafflesia::SequenceSearchData.new(hash[:seed_routing]) : nil @seed_routing_backend = hash[:seed_routing_backend] @seed_routing_block_cache_hits = hash[:seed_routing_block_cache_hits] @seed_routing_block_cache_misses = hash[:seed_routing_block_cache_misses] @seed_routing_cache_hit_fraction = hash[:seed_routing_cache_hit_fraction] @seed_routing_elapsed_ms = hash[:seed_routing_elapsed_ms] @seed_routing_hit_count = hash[:seed_routing_hit_count] @seed_routing_hit_overlap_fraction = hash[:seed_routing_hit_overlap_fraction] @seed_routing_materialized_bytes = hash[:seed_routing_materialized_bytes] @seed_routing_object_bytes = hash[:seed_routing_object_bytes] @seed_routing_object_reads = hash[:seed_routing_object_reads] @seed_routing_recall_at_1 = hash[:seed_routing_recall_at_1] @seed_routing_recall_at_10 = hash[:seed_routing_recall_at_10] end |
Instance Attribute Details
#baseline ⇒ Object
Returns the value of attribute baseline.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def baseline @baseline end |
#baseline_backend ⇒ Object
Returns the value of attribute baseline_backend.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def baseline_backend @baseline_backend end |
#baseline_elapsed_ms ⇒ Object
Returns the value of attribute baseline_elapsed_ms.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def baseline_elapsed_ms @baseline_elapsed_ms end |
#baseline_hit_count ⇒ Object
Returns the value of attribute baseline_hit_count.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def baseline_hit_count @baseline_hit_count end |
#baseline_materialized_bytes ⇒ Object
Returns the value of attribute baseline_materialized_bytes.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def baseline_materialized_bytes @baseline_materialized_bytes end |
#benchmark_id ⇒ Object
Returns the value of attribute benchmark_id.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def benchmark_id @benchmark_id end |
#benchmark_object ⇒ Object
Returns the value of attribute benchmark_object.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def benchmark_object @benchmark_object end |
#byte_reduction_fraction ⇒ Object
Returns the value of attribute byte_reduction_fraction.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def byte_reduction_fraction @byte_reduction_fraction end |
#db ⇒ Object
Returns the value of attribute db.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def db @db end |
#gate ⇒ Object
Returns the value of attribute gate.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def gate @gate end |
#hit_overlap_fraction ⇒ Object
Returns the value of attribute hit_overlap_fraction.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def hit_overlap_fraction @hit_overlap_fraction end |
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def manifest_path @manifest_path end |
#mean_rank_delta ⇒ Object
Returns the value of attribute mean_rank_delta.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def mean_rank_delta @mean_rank_delta end |
#object_native ⇒ Object
Returns the value of attribute object_native.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def object_native @object_native end |
#object_native_backend ⇒ Object
Returns the value of attribute object_native_backend.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def object_native_backend @object_native_backend end |
#object_native_block_cache_hits ⇒ Object
Returns the value of attribute object_native_block_cache_hits.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def object_native_block_cache_hits @object_native_block_cache_hits end |
#object_native_block_cache_misses ⇒ Object
Returns the value of attribute object_native_block_cache_misses.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def object_native_block_cache_misses @object_native_block_cache_misses end |
#object_native_cache_hit_fraction ⇒ Object
Returns the value of attribute object_native_cache_hit_fraction.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def object_native_cache_hit_fraction @object_native_cache_hit_fraction end |
#object_native_candidate_oids_bytes ⇒ Object
Returns the value of attribute object_native_candidate_oids_bytes.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def object_native_candidate_oids_bytes @object_native_candidate_oids_bytes end |
#object_native_elapsed_ms ⇒ Object
Returns the value of attribute object_native_elapsed_ms.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def object_native_elapsed_ms @object_native_elapsed_ms end |
#object_native_exact_pack_object_bytes ⇒ Object
Returns the value of attribute object_native_exact_pack_object_bytes.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def object_native_exact_pack_object_bytes @object_native_exact_pack_object_bytes end |
#object_native_exact_pack_object_reads ⇒ Object
Returns the value of attribute object_native_exact_pack_object_reads.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def object_native_exact_pack_object_reads @object_native_exact_pack_object_reads end |
#object_native_hit_count ⇒ Object
Returns the value of attribute object_native_hit_count.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def object_native_hit_count @object_native_hit_count end |
#object_native_local_control_bytes ⇒ Object
Returns the value of attribute object_native_local_control_bytes.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def object_native_local_control_bytes @object_native_local_control_bytes end |
#object_native_materialized_bytes ⇒ Object
Returns the value of attribute object_native_materialized_bytes.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def object_native_materialized_bytes @object_native_materialized_bytes end |
#object_native_object_bytes ⇒ Object
Returns the value of attribute object_native_object_bytes.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def object_native_object_bytes @object_native_object_bytes end |
#object_native_object_reads ⇒ Object
Returns the value of attribute object_native_object_reads.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def object_native_object_reads @object_native_object_reads end |
#object_native_routing_object_bytes ⇒ Object
Returns the value of attribute object_native_routing_object_bytes.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def object_native_routing_object_bytes @object_native_routing_object_bytes end |
#object_native_routing_object_reads ⇒ Object
Returns the value of attribute object_native_routing_object_reads.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def object_native_routing_object_reads @object_native_routing_object_reads end |
#passed ⇒ Object
Returns the value of attribute passed.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def passed @passed end |
#query ⇒ Object
Returns the value of attribute query.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def query @query end |
#recall_at_1 ⇒ Object
Returns the value of attribute recall_at_1.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def recall_at_1 @recall_at_1 end |
#recall_at_10 ⇒ Object
Returns the value of attribute recall_at_10.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def recall_at_10 @recall_at_10 end |
#routing_manifest_object_id ⇒ Object
Returns the value of attribute routing_manifest_object_id.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def routing_manifest_object_id @routing_manifest_object_id end |
#rows ⇒ Object
Returns the value of attribute rows.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def rows @rows end |
#seed_routing ⇒ Object
Returns the value of attribute seed_routing.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def seed_routing @seed_routing end |
#seed_routing_backend ⇒ Object
Returns the value of attribute seed_routing_backend.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def seed_routing_backend @seed_routing_backend end |
#seed_routing_block_cache_hits ⇒ Object
Returns the value of attribute seed_routing_block_cache_hits.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def seed_routing_block_cache_hits @seed_routing_block_cache_hits end |
#seed_routing_block_cache_misses ⇒ Object
Returns the value of attribute seed_routing_block_cache_misses.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def seed_routing_block_cache_misses @seed_routing_block_cache_misses end |
#seed_routing_cache_hit_fraction ⇒ Object
Returns the value of attribute seed_routing_cache_hit_fraction.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def seed_routing_cache_hit_fraction @seed_routing_cache_hit_fraction end |
#seed_routing_elapsed_ms ⇒ Object
Returns the value of attribute seed_routing_elapsed_ms.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def seed_routing_elapsed_ms @seed_routing_elapsed_ms end |
#seed_routing_hit_count ⇒ Object
Returns the value of attribute seed_routing_hit_count.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def seed_routing_hit_count @seed_routing_hit_count end |
#seed_routing_hit_overlap_fraction ⇒ Object
Returns the value of attribute seed_routing_hit_overlap_fraction.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def seed_routing_hit_overlap_fraction @seed_routing_hit_overlap_fraction end |
#seed_routing_materialized_bytes ⇒ Object
Returns the value of attribute seed_routing_materialized_bytes.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def seed_routing_materialized_bytes @seed_routing_materialized_bytes end |
#seed_routing_object_bytes ⇒ Object
Returns the value of attribute seed_routing_object_bytes.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def seed_routing_object_bytes @seed_routing_object_bytes end |
#seed_routing_object_reads ⇒ Object
Returns the value of attribute seed_routing_object_reads.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def seed_routing_object_reads @seed_routing_object_reads end |
#seed_routing_recall_at_1 ⇒ Object
Returns the value of attribute seed_routing_recall_at_1.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def seed_routing_recall_at_1 @seed_routing_recall_at_1 end |
#seed_routing_recall_at_10 ⇒ Object
Returns the value of attribute seed_routing_recall_at_10.
59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_data.rb', line 59 def seed_routing_recall_at_10 @seed_routing_recall_at_10 end |