Class: Rafflesia::MapMetadataEntry

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

Constant Summary collapse

HASH_ATTRS =
{
  emdb_id: :emdb_id,
  fitted_pdb_id: :fitted_pdb_id,
  grid_col: :grid_col,
  grid_row: :grid_row,
  grid_sec: :grid_sec,
  is_contour_measured: :is_contour_measured,
  is_fitted_pdb_present: :is_fitted_pdb_present,
  is_resolution_measured: :is_resolution_measured,
  is_sample_name_title_mismatch: :is_sample_name_title_mismatch,
  map_id: :map_id,
  method: :method,
  number_images_used: :number_images_used,
  number_subtomograms_used: :number_subtomograms_used,
  pixel_spacing_x_angstrom: :pixel_spacing_x_angstrom,
  pixel_spacing_y_angstrom: :pixel_spacing_y_angstrom,
  pixel_spacing_z_angstrom: :pixel_spacing_z_angstrom,
  recommended_contour_level: :recommended_contour_level,
  resolution_angstrom: :resolution_angstrom,
  resolution_method: :resolution_method,
  sample_name: :sample_name,
  source_url: :source_url,
  title: :title
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ MapMetadataEntry

Returns a new instance of MapMetadataEntry.



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

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @emdb_id = hash[:emdb_id]
  @fitted_pdb_id = hash[:fitted_pdb_id]
  @grid_col = hash[:grid_col]
  @grid_row = hash[:grid_row]
  @grid_sec = hash[:grid_sec]
  @is_contour_measured = hash[:is_contour_measured]
  @is_fitted_pdb_present = hash[:is_fitted_pdb_present]
  @is_resolution_measured = hash[:is_resolution_measured]
  @is_sample_name_title_mismatch = hash[:is_sample_name_title_mismatch]
  @map_id = hash[:map_id]
  @method = hash[:method]
  @number_images_used = hash[:number_images_used]
  @number_subtomograms_used = hash[:number_subtomograms_used]
  @pixel_spacing_x_angstrom = hash[:pixel_spacing_x_angstrom]
  @pixel_spacing_y_angstrom = hash[:pixel_spacing_y_angstrom]
  @pixel_spacing_z_angstrom = hash[:pixel_spacing_z_angstrom]
  @recommended_contour_level = hash[:recommended_contour_level]
  @resolution_angstrom = hash[:resolution_angstrom]
  @resolution_method = hash[:resolution_method]
  @sample_name = hash[:sample_name]
  @source_url = hash[:source_url]
  @title = hash[:title]
end

Instance Attribute Details

#emdb_idObject

Returns the value of attribute emdb_id.



33
34
35
# File 'lib/rafflesia/maps/map_metadata_entry.rb', line 33

def emdb_id
  @emdb_id
end

#fitted_pdb_idObject

Returns the value of attribute fitted_pdb_id.



33
34
35
# File 'lib/rafflesia/maps/map_metadata_entry.rb', line 33

def fitted_pdb_id
  @fitted_pdb_id
end

#grid_colObject

Returns the value of attribute grid_col.



33
34
35
# File 'lib/rafflesia/maps/map_metadata_entry.rb', line 33

def grid_col
  @grid_col
end

#grid_rowObject

Returns the value of attribute grid_row.



33
34
35
# File 'lib/rafflesia/maps/map_metadata_entry.rb', line 33

def grid_row
  @grid_row
end

#grid_secObject

Returns the value of attribute grid_sec.



33
34
35
# File 'lib/rafflesia/maps/map_metadata_entry.rb', line 33

def grid_sec
  @grid_sec
end

#is_contour_measuredObject

Returns the value of attribute is_contour_measured.



33
34
35
# File 'lib/rafflesia/maps/map_metadata_entry.rb', line 33

def is_contour_measured
  @is_contour_measured
end

#is_fitted_pdb_presentObject

Returns the value of attribute is_fitted_pdb_present.



33
34
35
# File 'lib/rafflesia/maps/map_metadata_entry.rb', line 33

def is_fitted_pdb_present
  @is_fitted_pdb_present
end

#is_resolution_measuredObject

Returns the value of attribute is_resolution_measured.



33
34
35
# File 'lib/rafflesia/maps/map_metadata_entry.rb', line 33

def is_resolution_measured
  @is_resolution_measured
end

#is_sample_name_title_mismatchObject

Returns the value of attribute is_sample_name_title_mismatch.



33
34
35
# File 'lib/rafflesia/maps/map_metadata_entry.rb', line 33

def is_sample_name_title_mismatch
  @is_sample_name_title_mismatch
end

#map_idObject

Returns the value of attribute map_id.



33
34
35
# File 'lib/rafflesia/maps/map_metadata_entry.rb', line 33

def map_id
  @map_id
end

#methodObject

Returns the value of attribute method.



33
34
35
# File 'lib/rafflesia/maps/map_metadata_entry.rb', line 33

def method
  @method
end

#number_images_usedObject

Returns the value of attribute number_images_used.



33
34
35
# File 'lib/rafflesia/maps/map_metadata_entry.rb', line 33

def number_images_used
  @number_images_used
end

#number_subtomograms_usedObject

Returns the value of attribute number_subtomograms_used.



33
34
35
# File 'lib/rafflesia/maps/map_metadata_entry.rb', line 33

def number_subtomograms_used
  @number_subtomograms_used
end

#pixel_spacing_x_angstromObject

Returns the value of attribute pixel_spacing_x_angstrom.



33
34
35
# File 'lib/rafflesia/maps/map_metadata_entry.rb', line 33

def pixel_spacing_x_angstrom
  @pixel_spacing_x_angstrom
end

#pixel_spacing_y_angstromObject

Returns the value of attribute pixel_spacing_y_angstrom.



33
34
35
# File 'lib/rafflesia/maps/map_metadata_entry.rb', line 33

def pixel_spacing_y_angstrom
  @pixel_spacing_y_angstrom
end

#pixel_spacing_z_angstromObject

Returns the value of attribute pixel_spacing_z_angstrom.



33
34
35
# File 'lib/rafflesia/maps/map_metadata_entry.rb', line 33

def pixel_spacing_z_angstrom
  @pixel_spacing_z_angstrom
end

Returns the value of attribute recommended_contour_level.



33
34
35
# File 'lib/rafflesia/maps/map_metadata_entry.rb', line 33

def recommended_contour_level
  @recommended_contour_level
end

#resolution_angstromObject

Returns the value of attribute resolution_angstrom.



33
34
35
# File 'lib/rafflesia/maps/map_metadata_entry.rb', line 33

def resolution_angstrom
  @resolution_angstrom
end

#resolution_methodObject

Returns the value of attribute resolution_method.



33
34
35
# File 'lib/rafflesia/maps/map_metadata_entry.rb', line 33

def resolution_method
  @resolution_method
end

#sample_nameObject

Returns the value of attribute sample_name.



33
34
35
# File 'lib/rafflesia/maps/map_metadata_entry.rb', line 33

def sample_name
  @sample_name
end

#source_urlObject

Returns the value of attribute source_url.



33
34
35
# File 'lib/rafflesia/maps/map_metadata_entry.rb', line 33

def source_url
  @source_url
end

#titleObject

Returns the value of attribute title.



33
34
35
# File 'lib/rafflesia/maps/map_metadata_entry.rb', line 33

def title
  @title
end