Class: Rafflesia::LocalDistanceDifferenceData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/local_distance_difference_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  backend: :backend,
  compared_residue_count: :compared_residue_count,
  cutoff_angstrom: :cutoff_angstrom,
  lddt: :lddt,
  local_pair_count: :local_pair_count,
  method: :method,
  passing_threshold_counts: :passing_threshold_counts,
  query_residue_count: :query_residue_count,
  query_structure_id: :query_structure_id,
  target_residue_count: :target_residue_count,
  target_structure_id: :target_structure_id,
  thresholds: :thresholds,
  unmatched_query_count: :unmatched_query_count,
  unmatched_target_count: :unmatched_target_count
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ LocalDistanceDifferenceData

Returns a new instance of LocalDistanceDifferenceData.



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/rafflesia/proteins/local_distance_difference_data.rb', line 41

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @backend = hash[:backend]
  @compared_residue_count = hash[:compared_residue_count]
  @cutoff_angstrom = hash[:cutoff_angstrom]
  @lddt = hash[:lddt]
  @local_pair_count = hash[:local_pair_count]
  @method = hash[:method]
  @passing_threshold_counts = (hash[:passing_threshold_counts] || [])
  @query_residue_count = hash[:query_residue_count]
  @query_structure_id = hash[:query_structure_id]
  @target_residue_count = hash[:target_residue_count]
  @target_structure_id = hash[:target_structure_id]
  @thresholds = (hash[:thresholds] || [])
  @unmatched_query_count = hash[:unmatched_query_count]
  @unmatched_target_count = hash[:unmatched_target_count]
end

Instance Attribute Details

#backendObject

Returns the value of attribute backend.



25
26
27
# File 'lib/rafflesia/proteins/local_distance_difference_data.rb', line 25

def backend
  @backend
end

#compared_residue_countObject

Returns the value of attribute compared_residue_count.



25
26
27
# File 'lib/rafflesia/proteins/local_distance_difference_data.rb', line 25

def compared_residue_count
  @compared_residue_count
end

#cutoff_angstromObject

Returns the value of attribute cutoff_angstrom.



25
26
27
# File 'lib/rafflesia/proteins/local_distance_difference_data.rb', line 25

def cutoff_angstrom
  @cutoff_angstrom
end

#lddtObject

Returns the value of attribute lddt.



25
26
27
# File 'lib/rafflesia/proteins/local_distance_difference_data.rb', line 25

def lddt
  @lddt
end

#local_pair_countObject

Returns the value of attribute local_pair_count.



25
26
27
# File 'lib/rafflesia/proteins/local_distance_difference_data.rb', line 25

def local_pair_count
  @local_pair_count
end

#methodObject

Returns the value of attribute method.



25
26
27
# File 'lib/rafflesia/proteins/local_distance_difference_data.rb', line 25

def method
  @method
end

#passing_threshold_countsObject

Returns the value of attribute passing_threshold_counts.



25
26
27
# File 'lib/rafflesia/proteins/local_distance_difference_data.rb', line 25

def passing_threshold_counts
  @passing_threshold_counts
end

#query_residue_countObject

Returns the value of attribute query_residue_count.



25
26
27
# File 'lib/rafflesia/proteins/local_distance_difference_data.rb', line 25

def query_residue_count
  @query_residue_count
end

#query_structure_idObject

Returns the value of attribute query_structure_id.



25
26
27
# File 'lib/rafflesia/proteins/local_distance_difference_data.rb', line 25

def query_structure_id
  @query_structure_id
end

#target_residue_countObject

Returns the value of attribute target_residue_count.



25
26
27
# File 'lib/rafflesia/proteins/local_distance_difference_data.rb', line 25

def target_residue_count
  @target_residue_count
end

#target_structure_idObject

Returns the value of attribute target_structure_id.



25
26
27
# File 'lib/rafflesia/proteins/local_distance_difference_data.rb', line 25

def target_structure_id
  @target_structure_id
end

#thresholdsObject

Returns the value of attribute thresholds.



25
26
27
# File 'lib/rafflesia/proteins/local_distance_difference_data.rb', line 25

def thresholds
  @thresholds
end

#unmatched_query_countObject

Returns the value of attribute unmatched_query_count.



25
26
27
# File 'lib/rafflesia/proteins/local_distance_difference_data.rb', line 25

def unmatched_query_count
  @unmatched_query_count
end

#unmatched_target_countObject

Returns the value of attribute unmatched_target_count.



25
26
27
# File 'lib/rafflesia/proteins/local_distance_difference_data.rb', line 25

def unmatched_target_count
  @unmatched_target_count
end