Class: Rafflesia::BlastSearchBenchmarkRow
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::BlastSearchBenchmarkRow
- Defined in:
- lib/rafflesia/sequences/blast_search_benchmark_row.rb
Constant Summary collapse
- HASH_ATTRS =
{ baseline_elapsed_ms: :baseline_elapsed_ms, baseline_hit_count: :baseline_hit_count, hit_overlap_fraction: :hit_overlap_fraction, mean_rank_delta: :mean_rank_delta, object_native_elapsed_ms: :object_native_elapsed_ms, object_native_hit_count: :object_native_hit_count, overlap_count: :overlap_count, query: :query, recall_at_1: :recall_at_1, recall_at_10: :recall_at_10, 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_recall_at_1: :seed_routing_recall_at_1, seed_routing_recall_at_10: :seed_routing_recall_at_10 }.freeze
Instance Attribute Summary collapse
-
#baseline_elapsed_ms ⇒ Object
Returns the value of attribute baseline_elapsed_ms.
-
#baseline_hit_count ⇒ Object
Returns the value of attribute baseline_hit_count.
-
#hit_overlap_fraction ⇒ Object
Returns the value of attribute hit_overlap_fraction.
-
#mean_rank_delta ⇒ Object
Returns the value of attribute mean_rank_delta.
-
#object_native_elapsed_ms ⇒ Object
Returns the value of attribute object_native_elapsed_ms.
-
#object_native_hit_count ⇒ Object
Returns the value of attribute object_native_hit_count.
-
#overlap_count ⇒ Object
Returns the value of attribute overlap_count.
-
#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.
-
#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_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) ⇒ BlastSearchBenchmarkRow
constructor
A new instance of BlastSearchBenchmarkRow.
Constructor Details
#initialize(json) ⇒ BlastSearchBenchmarkRow
Returns a new instance of BlastSearchBenchmarkRow.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_row.rb', line 43 def initialize(json) super() hash = self.class.normalize(json) @baseline_elapsed_ms = hash[:baseline_elapsed_ms] @baseline_hit_count = hash[:baseline_hit_count] @hit_overlap_fraction = hash[:hit_overlap_fraction] @mean_rank_delta = hash[:mean_rank_delta] @object_native_elapsed_ms = hash[:object_native_elapsed_ms] @object_native_hit_count = hash[:object_native_hit_count] @overlap_count = hash[:overlap_count] @query = hash[:query] @recall_at_1 = hash[:recall_at_1] @recall_at_10 = hash[:recall_at_10] @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_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_elapsed_ms ⇒ Object
Returns the value of attribute baseline_elapsed_ms.
26 27 28 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_row.rb', line 26 def baseline_elapsed_ms @baseline_elapsed_ms end |
#baseline_hit_count ⇒ Object
Returns the value of attribute baseline_hit_count.
26 27 28 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_row.rb', line 26 def baseline_hit_count @baseline_hit_count end |
#hit_overlap_fraction ⇒ Object
Returns the value of attribute hit_overlap_fraction.
26 27 28 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_row.rb', line 26 def hit_overlap_fraction @hit_overlap_fraction end |
#mean_rank_delta ⇒ Object
Returns the value of attribute mean_rank_delta.
26 27 28 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_row.rb', line 26 def mean_rank_delta @mean_rank_delta end |
#object_native_elapsed_ms ⇒ Object
Returns the value of attribute object_native_elapsed_ms.
26 27 28 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_row.rb', line 26 def object_native_elapsed_ms @object_native_elapsed_ms end |
#object_native_hit_count ⇒ Object
Returns the value of attribute object_native_hit_count.
26 27 28 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_row.rb', line 26 def object_native_hit_count @object_native_hit_count end |
#overlap_count ⇒ Object
Returns the value of attribute overlap_count.
26 27 28 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_row.rb', line 26 def overlap_count @overlap_count end |
#query ⇒ Object
Returns the value of attribute query.
26 27 28 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_row.rb', line 26 def query @query end |
#recall_at_1 ⇒ Object
Returns the value of attribute recall_at_1.
26 27 28 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_row.rb', line 26 def recall_at_1 @recall_at_1 end |
#recall_at_10 ⇒ Object
Returns the value of attribute recall_at_10.
26 27 28 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_row.rb', line 26 def recall_at_10 @recall_at_10 end |
#seed_routing_elapsed_ms ⇒ Object
Returns the value of attribute seed_routing_elapsed_ms.
26 27 28 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_row.rb', line 26 def seed_routing_elapsed_ms @seed_routing_elapsed_ms end |
#seed_routing_hit_count ⇒ Object
Returns the value of attribute seed_routing_hit_count.
26 27 28 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_row.rb', line 26 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.
26 27 28 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_row.rb', line 26 def seed_routing_hit_overlap_fraction @seed_routing_hit_overlap_fraction end |
#seed_routing_recall_at_1 ⇒ Object
Returns the value of attribute seed_routing_recall_at_1.
26 27 28 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_row.rb', line 26 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.
26 27 28 |
# File 'lib/rafflesia/sequences/blast_search_benchmark_row.rb', line 26 def seed_routing_recall_at_10 @seed_routing_recall_at_10 end |