Class: Rafflesia::MapModelFitScoreData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/maps/map_model_fit_score_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  atom_above_threshold_count: :atom_above_threshold_count,
  atom_above_threshold_fraction: :atom_above_threshold_fraction,
  atom_count: :atom_count,
  atom_in_map_bounds_count: :atom_in_map_bounds_count,
  atom_in_map_bounds_fraction: :atom_in_map_bounds_fraction,
  created_at: :created_at,
  density_sampled_atom_count: :density_sampled_atom_count,
  density_threshold: :density_threshold,
  density_threshold_source: :density_threshold_source,
  fit_id: :fit_id,
  is_density_sampled: :is_density_sampled,
  is_map_bounds_measured: :is_map_bounds_measured,
  map_bounds: :map_bounds,
  map_format: :map_format,
  map_id: :map_id,
  max_sampled_density: :max_sampled_density,
  mean_sampled_density: :mean_sampled_density,
  mean_sampled_density_z: :mean_sampled_density_z,
  metadata: :metadata,
  method: :method,
  min_sampled_density: :min_sampled_density,
  residue_count: :residue_count,
  residue_in_map_bounds_count: :residue_in_map_bounds_count,
  residue_in_map_bounds_fraction: :residue_in_map_bounds_fraction,
  structure_bounds: :structure_bounds,
  structure_id: :structure_id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ MapModelFitScoreData

Returns a new instance of MapModelFitScoreData.



65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 65

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @atom_above_threshold_count = hash[:atom_above_threshold_count]
  @atom_above_threshold_fraction = hash[:atom_above_threshold_fraction]
  @atom_count = hash[:atom_count]
  @atom_in_map_bounds_count = hash[:atom_in_map_bounds_count]
  @atom_in_map_bounds_fraction = hash[:atom_in_map_bounds_fraction]
  @created_at = hash[:created_at]
  @density_sampled_atom_count = hash[:density_sampled_atom_count]
  @density_threshold = hash[:density_threshold]
  @density_threshold_source = hash[:density_threshold_source]
  @fit_id = hash[:fit_id]
  @is_density_sampled = hash[:is_density_sampled]
  @is_map_bounds_measured = hash[:is_map_bounds_measured]
  @map_bounds = hash[:map_bounds] ? Rafflesia::CartesianBounds.new(hash[:map_bounds]) : nil
  @map_format = hash[:map_format]
  @map_id = hash[:map_id]
  @max_sampled_density = hash[:max_sampled_density]
  @mean_sampled_density = hash[:mean_sampled_density]
  @mean_sampled_density_z = hash[:mean_sampled_density_z]
  @metadata = hash[:metadata] || {}
  @method = hash[:method]
  @min_sampled_density = hash[:min_sampled_density]
  @residue_count = hash[:residue_count]
  @residue_in_map_bounds_count = hash[:residue_in_map_bounds_count]
  @residue_in_map_bounds_fraction = hash[:residue_in_map_bounds_fraction]
  @structure_bounds = hash[:structure_bounds] ? Rafflesia::CartesianBounds.new(hash[:structure_bounds]) : nil
  @structure_id = hash[:structure_id]
end

Instance Attribute Details

#atom_above_threshold_countObject

Returns the value of attribute atom_above_threshold_count.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def atom_above_threshold_count
  @atom_above_threshold_count
end

#atom_above_threshold_fractionObject

Returns the value of attribute atom_above_threshold_fraction.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def atom_above_threshold_fraction
  @atom_above_threshold_fraction
end

#atom_countObject

Returns the value of attribute atom_count.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def atom_count
  @atom_count
end

#atom_in_map_bounds_countObject

Returns the value of attribute atom_in_map_bounds_count.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def atom_in_map_bounds_count
  @atom_in_map_bounds_count
end

#atom_in_map_bounds_fractionObject

Returns the value of attribute atom_in_map_bounds_fraction.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def atom_in_map_bounds_fraction
  @atom_in_map_bounds_fraction
end

#created_atObject

Returns the value of attribute created_at.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def created_at
  @created_at
end

#density_sampled_atom_countObject

Returns the value of attribute density_sampled_atom_count.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def density_sampled_atom_count
  @density_sampled_atom_count
end

#density_thresholdObject

Returns the value of attribute density_threshold.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def density_threshold
  @density_threshold
end

#density_threshold_sourceObject

Returns the value of attribute density_threshold_source.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def density_threshold_source
  @density_threshold_source
end

#fit_idObject

Returns the value of attribute fit_id.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def fit_id
  @fit_id
end

#is_density_sampledObject

Returns the value of attribute is_density_sampled.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def is_density_sampled
  @is_density_sampled
end

#is_map_bounds_measuredObject

Returns the value of attribute is_map_bounds_measured.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def is_map_bounds_measured
  @is_map_bounds_measured
end

#map_boundsObject

Returns the value of attribute map_bounds.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def map_bounds
  @map_bounds
end

#map_formatObject

Returns the value of attribute map_format.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def map_format
  @map_format
end

#map_idObject

Returns the value of attribute map_id.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def map_id
  @map_id
end

#max_sampled_densityObject

Returns the value of attribute max_sampled_density.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def max_sampled_density
  @max_sampled_density
end

#mean_sampled_densityObject

Returns the value of attribute mean_sampled_density.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def mean_sampled_density
  @mean_sampled_density
end

#mean_sampled_density_zObject

Returns the value of attribute mean_sampled_density_z.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def mean_sampled_density_z
  @mean_sampled_density_z
end

#metadataObject

Returns the value of attribute metadata.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def 
  @metadata
end

#methodObject

Returns the value of attribute method.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def method
  @method
end

#min_sampled_densityObject

Returns the value of attribute min_sampled_density.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def min_sampled_density
  @min_sampled_density
end

#residue_countObject

Returns the value of attribute residue_count.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def residue_count
  @residue_count
end

#residue_in_map_bounds_countObject

Returns the value of attribute residue_in_map_bounds_count.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def residue_in_map_bounds_count
  @residue_in_map_bounds_count
end

#residue_in_map_bounds_fractionObject

Returns the value of attribute residue_in_map_bounds_fraction.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def residue_in_map_bounds_fraction
  @residue_in_map_bounds_fraction
end

#structure_boundsObject

Returns the value of attribute structure_bounds.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def structure_bounds
  @structure_bounds
end

#structure_idObject

Returns the value of attribute structure_id.



37
38
39
# File 'lib/rafflesia/maps/map_model_fit_score_data.rb', line 37

def structure_id
  @structure_id
end