Class: Rafflesia::MapModelFitScoreRow

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/maps/map_model_fit_score_row.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,
  density_sampled_atom_count: :density_sampled_atom_count,
  density_threshold: :density_threshold,
  density_threshold_source: :density_threshold_source,
  error: :error,
  fit_id: :fit_id,
  group_key: :group_key,
  group_status: :group_status,
  is_density_sampled: :is_density_sampled,
  is_map_bounds_measured: :is_map_bounds_measured,
  map_archive_path: :map_archive_path,
  map_id: :map_id,
  mean_sampled_density: :mean_sampled_density,
  mean_sampled_density_z: :mean_sampled_density_z,
  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_archive_path: :structure_archive_path,
  structure_id: :structure_id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ MapModelFitScoreRow

Returns a new instance of MapModelFitScoreRow.



59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/rafflesia/maps/map_model_fit_score_row.rb', line 59

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]
  @density_sampled_atom_count = hash[:density_sampled_atom_count]
  @density_threshold = hash[:density_threshold]
  @density_threshold_source = hash[:density_threshold_source]
  @error = hash[:error]
  @fit_id = hash[:fit_id]
  @group_key = hash[:group_key]
  @group_status = hash[:group_status]
  @is_density_sampled = hash[:is_density_sampled]
  @is_map_bounds_measured = hash[:is_map_bounds_measured]
  @map_archive_path = hash[:map_archive_path]
  @map_id = hash[:map_id]
  @mean_sampled_density = hash[:mean_sampled_density]
  @mean_sampled_density_z = hash[:mean_sampled_density_z]
  @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_archive_path = hash[:structure_archive_path]
  @structure_id = hash[:structure_id]
end

Instance Attribute Details

#atom_above_threshold_countObject

Returns the value of attribute atom_above_threshold_count.



34
35
36
# File 'lib/rafflesia/maps/map_model_fit_score_row.rb', line 34

def atom_above_threshold_count
  @atom_above_threshold_count
end

#atom_above_threshold_fractionObject

Returns the value of attribute atom_above_threshold_fraction.



34
35
36
# File 'lib/rafflesia/maps/map_model_fit_score_row.rb', line 34

def atom_above_threshold_fraction
  @atom_above_threshold_fraction
end

#atom_countObject

Returns the value of attribute atom_count.



34
35
36
# File 'lib/rafflesia/maps/map_model_fit_score_row.rb', line 34

def atom_count
  @atom_count
end

#atom_in_map_bounds_countObject

Returns the value of attribute atom_in_map_bounds_count.



34
35
36
# File 'lib/rafflesia/maps/map_model_fit_score_row.rb', line 34

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.



34
35
36
# File 'lib/rafflesia/maps/map_model_fit_score_row.rb', line 34

def atom_in_map_bounds_fraction
  @atom_in_map_bounds_fraction
end

#density_sampled_atom_countObject

Returns the value of attribute density_sampled_atom_count.



34
35
36
# File 'lib/rafflesia/maps/map_model_fit_score_row.rb', line 34

def density_sampled_atom_count
  @density_sampled_atom_count
end

#density_thresholdObject

Returns the value of attribute density_threshold.



34
35
36
# File 'lib/rafflesia/maps/map_model_fit_score_row.rb', line 34

def density_threshold
  @density_threshold
end

#density_threshold_sourceObject

Returns the value of attribute density_threshold_source.



34
35
36
# File 'lib/rafflesia/maps/map_model_fit_score_row.rb', line 34

def density_threshold_source
  @density_threshold_source
end

#errorObject

Returns the value of attribute error.



34
35
36
# File 'lib/rafflesia/maps/map_model_fit_score_row.rb', line 34

def error
  @error
end

#fit_idObject

Returns the value of attribute fit_id.



34
35
36
# File 'lib/rafflesia/maps/map_model_fit_score_row.rb', line 34

def fit_id
  @fit_id
end

#group_keyObject

Returns the value of attribute group_key.



34
35
36
# File 'lib/rafflesia/maps/map_model_fit_score_row.rb', line 34

def group_key
  @group_key
end

#group_statusObject

Returns the value of attribute group_status.



34
35
36
# File 'lib/rafflesia/maps/map_model_fit_score_row.rb', line 34

def group_status
  @group_status
end

#is_density_sampledObject

Returns the value of attribute is_density_sampled.



34
35
36
# File 'lib/rafflesia/maps/map_model_fit_score_row.rb', line 34

def is_density_sampled
  @is_density_sampled
end

#is_map_bounds_measuredObject

Returns the value of attribute is_map_bounds_measured.



34
35
36
# File 'lib/rafflesia/maps/map_model_fit_score_row.rb', line 34

def is_map_bounds_measured
  @is_map_bounds_measured
end

#map_archive_pathObject

Returns the value of attribute map_archive_path.



34
35
36
# File 'lib/rafflesia/maps/map_model_fit_score_row.rb', line 34

def map_archive_path
  @map_archive_path
end

#map_idObject

Returns the value of attribute map_id.



34
35
36
# File 'lib/rafflesia/maps/map_model_fit_score_row.rb', line 34

def map_id
  @map_id
end

#mean_sampled_densityObject

Returns the value of attribute mean_sampled_density.



34
35
36
# File 'lib/rafflesia/maps/map_model_fit_score_row.rb', line 34

def mean_sampled_density
  @mean_sampled_density
end

#mean_sampled_density_zObject

Returns the value of attribute mean_sampled_density_z.



34
35
36
# File 'lib/rafflesia/maps/map_model_fit_score_row.rb', line 34

def mean_sampled_density_z
  @mean_sampled_density_z
end

#residue_countObject

Returns the value of attribute residue_count.



34
35
36
# File 'lib/rafflesia/maps/map_model_fit_score_row.rb', line 34

def residue_count
  @residue_count
end

#residue_in_map_bounds_countObject

Returns the value of attribute residue_in_map_bounds_count.



34
35
36
# File 'lib/rafflesia/maps/map_model_fit_score_row.rb', line 34

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.



34
35
36
# File 'lib/rafflesia/maps/map_model_fit_score_row.rb', line 34

def residue_in_map_bounds_fraction
  @residue_in_map_bounds_fraction
end

#structure_archive_pathObject

Returns the value of attribute structure_archive_path.



34
35
36
# File 'lib/rafflesia/maps/map_model_fit_score_row.rb', line 34

def structure_archive_path
  @structure_archive_path
end

#structure_idObject

Returns the value of attribute structure_id.



34
35
36
# File 'lib/rafflesia/maps/map_model_fit_score_row.rb', line 34

def structure_id
  @structure_id
end