Class: Rafflesia::CorpuReleaseHit

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/datasets/corpu_release_hit.rb

Constant Summary collapse

HASH_ATTRS =
{
  aligned_length: :aligned_length,
  aligned_residues: :aligned_residues,
  alignment_identity: :alignment_identity,
  alignment_score: :alignment_score,
  bits: :bits,
  evalue: :evalue,
  id: :id,
  lddt: :lddt,
  pair_geometry_component_count: :pair_geometry_component_count,
  pair_geometry_max_component_size: :pair_geometry_max_component_size,
  pair_geometry_shared_count: :pair_geometry_shared_count,
  query_tm_score: :query_tm_score,
  query_token_count: :query_token_count,
  rank_key: :rank_key,
  rerank_backend: :rerank_backend,
  rmsd_angstrom: :rmsd_angstrom,
  sequence_identity: :sequence_identity,
  sequence_len: :sequence_len,
  shared_token_count: :shared_token_count,
  target_tm_score: :target_tm_score,
  verified: :verified
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ CorpuReleaseHit

Returns a new instance of CorpuReleaseHit.



55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# File 'lib/rafflesia/datasets/corpu_release_hit.rb', line 55

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @aligned_length = hash[:aligned_length]
  @aligned_residues = hash[:aligned_residues]
  @alignment_identity = hash[:alignment_identity]
  @alignment_score = hash[:alignment_score]
  @bits = hash[:bits]
  @evalue = hash[:evalue]
  @id = hash[:id]
  @lddt = hash[:lddt]
  @pair_geometry_component_count = hash[:pair_geometry_component_count]
  @pair_geometry_max_component_size = hash[:pair_geometry_max_component_size]
  @pair_geometry_shared_count = hash[:pair_geometry_shared_count]
  @query_tm_score = hash[:query_tm_score]
  @query_token_count = hash[:query_token_count]
  @rank_key = hash[:rank_key]
  @rerank_backend = hash[:rerank_backend]
  @rmsd_angstrom = hash[:rmsd_angstrom]
  @sequence_identity = hash[:sequence_identity]
  @sequence_len = hash[:sequence_len]
  @shared_token_count = hash[:shared_token_count]
  @target_tm_score = hash[:target_tm_score]
  @verified = hash[:verified]
end

Instance Attribute Details

#aligned_lengthObject

Returns the value of attribute aligned_length.



32
33
34
# File 'lib/rafflesia/datasets/corpu_release_hit.rb', line 32

def aligned_length
  @aligned_length
end

#aligned_residuesObject

Returns the value of attribute aligned_residues.



32
33
34
# File 'lib/rafflesia/datasets/corpu_release_hit.rb', line 32

def aligned_residues
  @aligned_residues
end

#alignment_identityObject

Returns the value of attribute alignment_identity.



32
33
34
# File 'lib/rafflesia/datasets/corpu_release_hit.rb', line 32

def alignment_identity
  @alignment_identity
end

#alignment_scoreObject

Returns the value of attribute alignment_score.



32
33
34
# File 'lib/rafflesia/datasets/corpu_release_hit.rb', line 32

def alignment_score
  @alignment_score
end

#bitsObject

Returns the value of attribute bits.



32
33
34
# File 'lib/rafflesia/datasets/corpu_release_hit.rb', line 32

def bits
  @bits
end

#evalueObject

Returns the value of attribute evalue.



32
33
34
# File 'lib/rafflesia/datasets/corpu_release_hit.rb', line 32

def evalue
  @evalue
end

#idObject

Returns the value of attribute id.



32
33
34
# File 'lib/rafflesia/datasets/corpu_release_hit.rb', line 32

def id
  @id
end

#lddtObject

Returns the value of attribute lddt.



32
33
34
# File 'lib/rafflesia/datasets/corpu_release_hit.rb', line 32

def lddt
  @lddt
end

#pair_geometry_component_countObject

Returns the value of attribute pair_geometry_component_count.



32
33
34
# File 'lib/rafflesia/datasets/corpu_release_hit.rb', line 32

def pair_geometry_component_count
  @pair_geometry_component_count
end

#pair_geometry_max_component_sizeObject

Returns the value of attribute pair_geometry_max_component_size.



32
33
34
# File 'lib/rafflesia/datasets/corpu_release_hit.rb', line 32

def pair_geometry_max_component_size
  @pair_geometry_max_component_size
end

#pair_geometry_shared_countObject

Returns the value of attribute pair_geometry_shared_count.



32
33
34
# File 'lib/rafflesia/datasets/corpu_release_hit.rb', line 32

def pair_geometry_shared_count
  @pair_geometry_shared_count
end

#query_tm_scoreObject

Returns the value of attribute query_tm_score.



32
33
34
# File 'lib/rafflesia/datasets/corpu_release_hit.rb', line 32

def query_tm_score
  @query_tm_score
end

#query_token_countObject

Returns the value of attribute query_token_count.



32
33
34
# File 'lib/rafflesia/datasets/corpu_release_hit.rb', line 32

def query_token_count
  @query_token_count
end

#rank_keyObject

Returns the value of attribute rank_key.



32
33
34
# File 'lib/rafflesia/datasets/corpu_release_hit.rb', line 32

def rank_key
  @rank_key
end

#rerank_backendObject

Returns the value of attribute rerank_backend.



32
33
34
# File 'lib/rafflesia/datasets/corpu_release_hit.rb', line 32

def rerank_backend
  @rerank_backend
end

#rmsd_angstromObject

Returns the value of attribute rmsd_angstrom.



32
33
34
# File 'lib/rafflesia/datasets/corpu_release_hit.rb', line 32

def rmsd_angstrom
  @rmsd_angstrom
end

#sequence_identityObject

Returns the value of attribute sequence_identity.



32
33
34
# File 'lib/rafflesia/datasets/corpu_release_hit.rb', line 32

def sequence_identity
  @sequence_identity
end

#sequence_lenObject

Returns the value of attribute sequence_len.



32
33
34
# File 'lib/rafflesia/datasets/corpu_release_hit.rb', line 32

def sequence_len
  @sequence_len
end

#shared_token_countObject

Returns the value of attribute shared_token_count.



32
33
34
# File 'lib/rafflesia/datasets/corpu_release_hit.rb', line 32

def shared_token_count
  @shared_token_count
end

#target_tm_scoreObject

Returns the value of attribute target_tm_score.



32
33
34
# File 'lib/rafflesia/datasets/corpu_release_hit.rb', line 32

def target_tm_score
  @target_tm_score
end

#verifiedObject

Returns the value of attribute verified.



32
33
34
# File 'lib/rafflesia/datasets/corpu_release_hit.rb', line 32

def verified
  @verified
end