Class: Rafflesia::ConfidenceSummaryData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ConfidenceSummaryData
- Defined in:
- lib/rafflesia/proteins/confidence_summary_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ bins: :bins, confidence_metric: :confidence_metric, has_plddt_like_b_factor: :has_plddt_like_b_factor, low_confidence_count: :low_confidence_count, low_confidence_runs: :low_confidence_runs, mean_confidence_value: :mean_confidence_value, mean_plddt: :mean_plddt, median_confidence_value: :median_confidence_value, median_plddt: :median_plddt, relation: :relation, residue_count: :residue_count, residues: :residues, structure_id: :structure_id, threshold: :threshold }.freeze
Instance Attribute Summary collapse
-
#bins ⇒ Object
Returns the value of attribute bins.
-
#confidence_metric ⇒ Object
Returns the value of attribute confidence_metric.
-
#has_plddt_like_b_factor ⇒ Object
Returns the value of attribute has_plddt_like_b_factor.
-
#low_confidence_count ⇒ Object
Returns the value of attribute low_confidence_count.
-
#low_confidence_runs ⇒ Object
Returns the value of attribute low_confidence_runs.
-
#mean_confidence_value ⇒ Object
Returns the value of attribute mean_confidence_value.
-
#mean_plddt ⇒ Object
Returns the value of attribute mean_plddt.
-
#median_confidence_value ⇒ Object
Returns the value of attribute median_confidence_value.
-
#median_plddt ⇒ Object
Returns the value of attribute median_plddt.
-
#relation ⇒ Object
Returns the value of attribute relation.
-
#residue_count ⇒ Object
Returns the value of attribute residue_count.
-
#residues ⇒ Object
Returns the value of attribute residues.
-
#structure_id ⇒ Object
Returns the value of attribute structure_id.
-
#threshold ⇒ Object
Returns the value of attribute threshold.
Instance Method Summary collapse
-
#initialize(json) ⇒ ConfidenceSummaryData
constructor
A new instance of ConfidenceSummaryData.
Constructor Details
#initialize(json) ⇒ ConfidenceSummaryData
Returns a new instance of ConfidenceSummaryData.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/rafflesia/proteins/confidence_summary_data.rb', line 41 def initialize(json) super() hash = self.class.normalize(json) @bins = (hash[:bins] || []).map { |item| item ? Rafflesia::ConfidenceBin.new(item) : nil } @confidence_metric = hash[:confidence_metric] @has_plddt_like_b_factor = hash[:has_plddt_like_b_factor] @low_confidence_count = hash[:low_confidence_count] @low_confidence_runs = (hash[:low_confidence_runs] || []).map { |item| item ? Rafflesia::ResidueInterval.new(item) : nil } @mean_confidence_value = hash[:mean_confidence_value] @mean_plddt = hash[:mean_plddt] @median_confidence_value = hash[:median_confidence_value] @median_plddt = hash[:median_plddt] @relation = hash[:relation] ? Rafflesia::RelationArtifactData.new(hash[:relation]) : nil @residue_count = hash[:residue_count] @residues = (hash[:residues] || []).map { |item| item ? Rafflesia::ResidueConfidence.new(item) : nil } @structure_id = hash[:structure_id] @threshold = hash[:threshold] end |
Instance Attribute Details
#bins ⇒ Object
Returns the value of attribute bins.
25 26 27 |
# File 'lib/rafflesia/proteins/confidence_summary_data.rb', line 25 def bins @bins end |
#confidence_metric ⇒ Object
Returns the value of attribute confidence_metric.
25 26 27 |
# File 'lib/rafflesia/proteins/confidence_summary_data.rb', line 25 def confidence_metric @confidence_metric end |
#has_plddt_like_b_factor ⇒ Object
Returns the value of attribute has_plddt_like_b_factor.
25 26 27 |
# File 'lib/rafflesia/proteins/confidence_summary_data.rb', line 25 def has_plddt_like_b_factor @has_plddt_like_b_factor end |
#low_confidence_count ⇒ Object
Returns the value of attribute low_confidence_count.
25 26 27 |
# File 'lib/rafflesia/proteins/confidence_summary_data.rb', line 25 def low_confidence_count @low_confidence_count end |
#low_confidence_runs ⇒ Object
Returns the value of attribute low_confidence_runs.
25 26 27 |
# File 'lib/rafflesia/proteins/confidence_summary_data.rb', line 25 def low_confidence_runs @low_confidence_runs end |
#mean_confidence_value ⇒ Object
Returns the value of attribute mean_confidence_value.
25 26 27 |
# File 'lib/rafflesia/proteins/confidence_summary_data.rb', line 25 def mean_confidence_value @mean_confidence_value end |
#mean_plddt ⇒ Object
Returns the value of attribute mean_plddt.
25 26 27 |
# File 'lib/rafflesia/proteins/confidence_summary_data.rb', line 25 def mean_plddt @mean_plddt end |
#median_confidence_value ⇒ Object
Returns the value of attribute median_confidence_value.
25 26 27 |
# File 'lib/rafflesia/proteins/confidence_summary_data.rb', line 25 def median_confidence_value @median_confidence_value end |
#median_plddt ⇒ Object
Returns the value of attribute median_plddt.
25 26 27 |
# File 'lib/rafflesia/proteins/confidence_summary_data.rb', line 25 def median_plddt @median_plddt end |
#relation ⇒ Object
Returns the value of attribute relation.
25 26 27 |
# File 'lib/rafflesia/proteins/confidence_summary_data.rb', line 25 def relation @relation end |
#residue_count ⇒ Object
Returns the value of attribute residue_count.
25 26 27 |
# File 'lib/rafflesia/proteins/confidence_summary_data.rb', line 25 def residue_count @residue_count end |
#residues ⇒ Object
Returns the value of attribute residues.
25 26 27 |
# File 'lib/rafflesia/proteins/confidence_summary_data.rb', line 25 def residues @residues end |
#structure_id ⇒ Object
Returns the value of attribute structure_id.
25 26 27 |
# File 'lib/rafflesia/proteins/confidence_summary_data.rb', line 25 def structure_id @structure_id end |
#threshold ⇒ Object
Returns the value of attribute threshold.
25 26 27 |
# File 'lib/rafflesia/proteins/confidence_summary_data.rb', line 25 def threshold @threshold end |