Class: Rafflesia::FoldHit

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

Constant Summary collapse

HASH_ATTRS =
{
  aligned_residues: :aligned_residues,
  alignment_object_id: :alignment_object_id,
  atom_count_delta: :atom_count_delta,
  backend: :backend,
  bits: :bits,
  chain_count_delta: :chain_count_delta,
  evalue: :evalue,
  geometry_overlap: :geometry_overlap,
  hit_id: :hit_id,
  lddt: :lddt,
  length_similarity: :length_similarity,
  probability: :probability,
  query_coverage: :query_coverage,
  query_id: :query_id,
  query_tm_score: :query_tm_score,
  residue_count_delta: :residue_count_delta,
  rmsd_angstrom: :rmsd_angstrom,
  sequence_identity: :sequence_identity,
  shard_id: :shard_id,
  target_coverage: :target_coverage,
  target_id: :target_id,
  target_tm_score: :target_tm_score,
  tm_score: :tm_score
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldHit

Returns a new instance of FoldHit.



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/proteins/fold_hit.rb', line 59

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @aligned_residues = hash[:aligned_residues]
  @alignment_object_id = hash[:alignment_object_id]
  @atom_count_delta = hash[:atom_count_delta]
  @backend = hash[:backend]
  @bits = hash[:bits]
  @chain_count_delta = hash[:chain_count_delta]
  @evalue = hash[:evalue]
  @geometry_overlap = hash[:geometry_overlap]
  @hit_id = hash[:hit_id]
  @lddt = hash[:lddt]
  @length_similarity = hash[:length_similarity]
  @probability = hash[:probability]
  @query_coverage = hash[:query_coverage]
  @query_id = hash[:query_id]
  @query_tm_score = hash[:query_tm_score]
  @residue_count_delta = hash[:residue_count_delta]
  @rmsd_angstrom = hash[:rmsd_angstrom]
  @sequence_identity = hash[:sequence_identity]
  @shard_id = hash[:shard_id]
  @target_coverage = hash[:target_coverage]
  @target_id = hash[:target_id]
  @target_tm_score = hash[:target_tm_score]
  @tm_score = hash[:tm_score]
end

Instance Attribute Details

#aligned_residuesObject

Returns the value of attribute aligned_residues.



34
35
36
# File 'lib/rafflesia/proteins/fold_hit.rb', line 34

def aligned_residues
  @aligned_residues
end

#alignment_object_idObject

Returns the value of attribute alignment_object_id.



34
35
36
# File 'lib/rafflesia/proteins/fold_hit.rb', line 34

def alignment_object_id
  @alignment_object_id
end

#atom_count_deltaObject

Returns the value of attribute atom_count_delta.



34
35
36
# File 'lib/rafflesia/proteins/fold_hit.rb', line 34

def atom_count_delta
  @atom_count_delta
end

#backendObject

Returns the value of attribute backend.



34
35
36
# File 'lib/rafflesia/proteins/fold_hit.rb', line 34

def backend
  @backend
end

#bitsObject

Returns the value of attribute bits.



34
35
36
# File 'lib/rafflesia/proteins/fold_hit.rb', line 34

def bits
  @bits
end

#chain_count_deltaObject

Returns the value of attribute chain_count_delta.



34
35
36
# File 'lib/rafflesia/proteins/fold_hit.rb', line 34

def chain_count_delta
  @chain_count_delta
end

#evalueObject

Returns the value of attribute evalue.



34
35
36
# File 'lib/rafflesia/proteins/fold_hit.rb', line 34

def evalue
  @evalue
end

#geometry_overlapObject

Returns the value of attribute geometry_overlap.



34
35
36
# File 'lib/rafflesia/proteins/fold_hit.rb', line 34

def geometry_overlap
  @geometry_overlap
end

#hit_idObject

Returns the value of attribute hit_id.



34
35
36
# File 'lib/rafflesia/proteins/fold_hit.rb', line 34

def hit_id
  @hit_id
end

#lddtObject

Returns the value of attribute lddt.



34
35
36
# File 'lib/rafflesia/proteins/fold_hit.rb', line 34

def lddt
  @lddt
end

#length_similarityObject

Returns the value of attribute length_similarity.



34
35
36
# File 'lib/rafflesia/proteins/fold_hit.rb', line 34

def length_similarity
  @length_similarity
end

#probabilityObject

Returns the value of attribute probability.



34
35
36
# File 'lib/rafflesia/proteins/fold_hit.rb', line 34

def probability
  @probability
end

#query_coverageObject

Returns the value of attribute query_coverage.



34
35
36
# File 'lib/rafflesia/proteins/fold_hit.rb', line 34

def query_coverage
  @query_coverage
end

#query_idObject

Returns the value of attribute query_id.



34
35
36
# File 'lib/rafflesia/proteins/fold_hit.rb', line 34

def query_id
  @query_id
end

#query_tm_scoreObject

Returns the value of attribute query_tm_score.



34
35
36
# File 'lib/rafflesia/proteins/fold_hit.rb', line 34

def query_tm_score
  @query_tm_score
end

#residue_count_deltaObject

Returns the value of attribute residue_count_delta.



34
35
36
# File 'lib/rafflesia/proteins/fold_hit.rb', line 34

def residue_count_delta
  @residue_count_delta
end

#rmsd_angstromObject

Returns the value of attribute rmsd_angstrom.



34
35
36
# File 'lib/rafflesia/proteins/fold_hit.rb', line 34

def rmsd_angstrom
  @rmsd_angstrom
end

#sequence_identityObject

Returns the value of attribute sequence_identity.



34
35
36
# File 'lib/rafflesia/proteins/fold_hit.rb', line 34

def sequence_identity
  @sequence_identity
end

#shard_idObject

Returns the value of attribute shard_id.



34
35
36
# File 'lib/rafflesia/proteins/fold_hit.rb', line 34

def shard_id
  @shard_id
end

#target_coverageObject

Returns the value of attribute target_coverage.



34
35
36
# File 'lib/rafflesia/proteins/fold_hit.rb', line 34

def target_coverage
  @target_coverage
end

#target_idObject

Returns the value of attribute target_id.



34
35
36
# File 'lib/rafflesia/proteins/fold_hit.rb', line 34

def target_id
  @target_id
end

#target_tm_scoreObject

Returns the value of attribute target_tm_score.



34
35
36
# File 'lib/rafflesia/proteins/fold_hit.rb', line 34

def target_tm_score
  @target_tm_score
end

#tm_scoreObject

Returns the value of attribute tm_score.



34
35
36
# File 'lib/rafflesia/proteins/fold_hit.rb', line 34

def tm_score
  @tm_score
end