Class: Rafflesia::FoldSegmentRecallMeasurement

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/fold_segment_recall_measurement.rb

Constant Summary collapse

HASH_ATTRS =
{
  baseline_target_count: :baseline_target_count,
  eligible_query_count: :eligible_query_count,
  k: :k,
  matched_query_count: :matched_query_count,
  matched_target_count: :matched_target_count,
  recall: :recall
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldSegmentRecallMeasurement

Returns a new instance of FoldSegmentRecallMeasurement.



25
26
27
28
29
30
31
32
33
34
# File 'lib/rafflesia/proteins/fold_segment_recall_measurement.rb', line 25

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @baseline_target_count = hash[:baseline_target_count]
  @eligible_query_count = hash[:eligible_query_count]
  @k = hash[:k]
  @matched_query_count = hash[:matched_query_count]
  @matched_target_count = hash[:matched_target_count]
  @recall = hash[:recall]
end

Instance Attribute Details

#baseline_target_countObject

Returns the value of attribute baseline_target_count.



17
18
19
# File 'lib/rafflesia/proteins/fold_segment_recall_measurement.rb', line 17

def baseline_target_count
  @baseline_target_count
end

#eligible_query_countObject

Returns the value of attribute eligible_query_count.



17
18
19
# File 'lib/rafflesia/proteins/fold_segment_recall_measurement.rb', line 17

def eligible_query_count
  @eligible_query_count
end

#kObject

Returns the value of attribute k.



17
18
19
# File 'lib/rafflesia/proteins/fold_segment_recall_measurement.rb', line 17

def k
  @k
end

#matched_query_countObject

Returns the value of attribute matched_query_count.



17
18
19
# File 'lib/rafflesia/proteins/fold_segment_recall_measurement.rb', line 17

def matched_query_count
  @matched_query_count
end

#matched_target_countObject

Returns the value of attribute matched_target_count.



17
18
19
# File 'lib/rafflesia/proteins/fold_segment_recall_measurement.rb', line 17

def matched_target_count
  @matched_target_count
end

#recallObject

Returns the value of attribute recall.



17
18
19
# File 'lib/rafflesia/proteins/fold_segment_recall_measurement.rb', line 17

def recall
  @recall
end