Class: Rafflesia::MapModelFitCandidateMeasurements

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

Constant Summary collapse

HASH_ATTRS =
{
  adjacent_copy_atom_clash_count: :adjacent_copy_atom_clash_count,
  adjacent_copy_atom_clash_fraction: :adjacent_copy_atom_clash_fraction,
  adjacent_copy_atom_pair_count: :adjacent_copy_atom_pair_count,
  atom_above_threshold_count: :atom_above_threshold_count,
  atom_above_threshold_fraction: :atom_above_threshold_fraction,
  copy_mean_density_z_stddev: :copy_mean_density_z_stddev,
  copy_mean_sampled_density_z: :copy_mean_sampled_density_z,
  density_threshold: :density_threshold,
  density_threshold_source: :density_threshold_source,
  expected_sample_count: :expected_sample_count,
  geometry_probe_score: :geometry_probe_score,
  mean_copy_above_threshold_fraction: :mean_copy_above_threshold_fraction,
  mean_copy_mean_density_z: :mean_copy_mean_density_z,
  mean_sampled_density: :mean_sampled_density,
  mean_sampled_density_z: :mean_sampled_density_z,
  minimum_adjacent_copy_atom_distance_angstrom: :minimum_adjacent_copy_atom_distance_angstrom,
  minimum_copy_above_threshold_fraction: :minimum_copy_above_threshold_fraction,
  minimum_copy_mean_density_z: :minimum_copy_mean_density_z,
  minimum_copy_sample_fraction: :minimum_copy_sample_fraction,
  objective: :objective,
  outside_map_fraction: :outside_map_fraction,
  sample_fraction: :sample_fraction,
  sampled_atom_count: :sampled_atom_count,
  sampled_atom_name: :sampled_atom_name
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ MapModelFitCandidateMeasurements

Returns a new instance of MapModelFitCandidateMeasurements.



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
86
87
88
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 61

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @adjacent_copy_atom_clash_count = hash[:adjacent_copy_atom_clash_count]
  @adjacent_copy_atom_clash_fraction = hash[:adjacent_copy_atom_clash_fraction]
  @adjacent_copy_atom_pair_count = hash[:adjacent_copy_atom_pair_count]
  @atom_above_threshold_count = hash[:atom_above_threshold_count]
  @atom_above_threshold_fraction = hash[:atom_above_threshold_fraction]
  @copy_mean_density_z_stddev = hash[:copy_mean_density_z_stddev]
  @copy_mean_sampled_density_z = (hash[:copy_mean_sampled_density_z] || [])
  @density_threshold = hash[:density_threshold]
  @density_threshold_source = hash[:density_threshold_source]
  @expected_sample_count = hash[:expected_sample_count]
  @geometry_probe_score = hash[:geometry_probe_score]
  @mean_copy_above_threshold_fraction = hash[:mean_copy_above_threshold_fraction]
  @mean_copy_mean_density_z = hash[:mean_copy_mean_density_z]
  @mean_sampled_density = hash[:mean_sampled_density]
  @mean_sampled_density_z = hash[:mean_sampled_density_z]
  @minimum_adjacent_copy_atom_distance_angstrom = hash[:minimum_adjacent_copy_atom_distance_angstrom]
  @minimum_copy_above_threshold_fraction = hash[:minimum_copy_above_threshold_fraction]
  @minimum_copy_mean_density_z = hash[:minimum_copy_mean_density_z]
  @minimum_copy_sample_fraction = hash[:minimum_copy_sample_fraction]
  @objective = hash[:objective]
  @outside_map_fraction = hash[:outside_map_fraction]
  @sample_fraction = hash[:sample_fraction]
  @sampled_atom_count = hash[:sampled_atom_count]
  @sampled_atom_name = hash[:sampled_atom_name]
end

Instance Attribute Details

#adjacent_copy_atom_clash_countObject

Returns the value of attribute adjacent_copy_atom_clash_count.



35
36
37
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 35

def adjacent_copy_atom_clash_count
  @adjacent_copy_atom_clash_count
end

#adjacent_copy_atom_clash_fractionObject

Returns the value of attribute adjacent_copy_atom_clash_fraction.



35
36
37
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 35

def adjacent_copy_atom_clash_fraction
  @adjacent_copy_atom_clash_fraction
end

#adjacent_copy_atom_pair_countObject

Returns the value of attribute adjacent_copy_atom_pair_count.



35
36
37
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 35

def adjacent_copy_atom_pair_count
  @adjacent_copy_atom_pair_count
end

#atom_above_threshold_countObject

Returns the value of attribute atom_above_threshold_count.



35
36
37
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 35

def atom_above_threshold_count
  @atom_above_threshold_count
end

#atom_above_threshold_fractionObject

Returns the value of attribute atom_above_threshold_fraction.



35
36
37
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 35

def atom_above_threshold_fraction
  @atom_above_threshold_fraction
end

#copy_mean_density_z_stddevObject

Returns the value of attribute copy_mean_density_z_stddev.



35
36
37
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 35

def copy_mean_density_z_stddev
  @copy_mean_density_z_stddev
end

#copy_mean_sampled_density_zObject

Returns the value of attribute copy_mean_sampled_density_z.



35
36
37
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 35

def copy_mean_sampled_density_z
  @copy_mean_sampled_density_z
end

#density_thresholdObject

Returns the value of attribute density_threshold.



35
36
37
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 35

def density_threshold
  @density_threshold
end

#density_threshold_sourceObject

Returns the value of attribute density_threshold_source.



35
36
37
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 35

def density_threshold_source
  @density_threshold_source
end

#expected_sample_countObject

Returns the value of attribute expected_sample_count.



35
36
37
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 35

def expected_sample_count
  @expected_sample_count
end

#geometry_probe_scoreObject

Returns the value of attribute geometry_probe_score.



35
36
37
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 35

def geometry_probe_score
  @geometry_probe_score
end

#mean_copy_above_threshold_fractionObject

Returns the value of attribute mean_copy_above_threshold_fraction.



35
36
37
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 35

def mean_copy_above_threshold_fraction
  @mean_copy_above_threshold_fraction
end

#mean_copy_mean_density_zObject

Returns the value of attribute mean_copy_mean_density_z.



35
36
37
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 35

def mean_copy_mean_density_z
  @mean_copy_mean_density_z
end

#mean_sampled_densityObject

Returns the value of attribute mean_sampled_density.



35
36
37
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 35

def mean_sampled_density
  @mean_sampled_density
end

#mean_sampled_density_zObject

Returns the value of attribute mean_sampled_density_z.



35
36
37
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 35

def mean_sampled_density_z
  @mean_sampled_density_z
end

#minimum_adjacent_copy_atom_distance_angstromObject

Returns the value of attribute minimum_adjacent_copy_atom_distance_angstrom.



35
36
37
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 35

def minimum_adjacent_copy_atom_distance_angstrom
  @minimum_adjacent_copy_atom_distance_angstrom
end

#minimum_copy_above_threshold_fractionObject

Returns the value of attribute minimum_copy_above_threshold_fraction.



35
36
37
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 35

def minimum_copy_above_threshold_fraction
  @minimum_copy_above_threshold_fraction
end

#minimum_copy_mean_density_zObject

Returns the value of attribute minimum_copy_mean_density_z.



35
36
37
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 35

def minimum_copy_mean_density_z
  @minimum_copy_mean_density_z
end

#minimum_copy_sample_fractionObject

Returns the value of attribute minimum_copy_sample_fraction.



35
36
37
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 35

def minimum_copy_sample_fraction
  @minimum_copy_sample_fraction
end

#objectiveObject

Returns the value of attribute objective.



35
36
37
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 35

def objective
  @objective
end

#outside_map_fractionObject

Returns the value of attribute outside_map_fraction.



35
36
37
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 35

def outside_map_fraction
  @outside_map_fraction
end

#sample_fractionObject

Returns the value of attribute sample_fraction.



35
36
37
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 35

def sample_fraction
  @sample_fraction
end

#sampled_atom_countObject

Returns the value of attribute sampled_atom_count.



35
36
37
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 35

def sampled_atom_count
  @sampled_atom_count
end

#sampled_atom_nameObject

Returns the value of attribute sampled_atom_name.



35
36
37
# File 'lib/rafflesia/maps/map_model_fit_candidate_measurements.rb', line 35

def sampled_atom_name
  @sampled_atom_name
end