Class: Rafflesia::HmmerDomainHit

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/sequences/hmmer_domain_hit.rb

Constant Summary collapse

HASH_ATTRS =
{
  accuracy: :accuracy,
  ali_from: :ali_from,
  ali_to: :ali_to,
  description: :description,
  domain_bias: :domain_bias,
  domain_cevalue: :domain_cevalue,
  domain_count: :domain_count,
  domain_ievalue: :domain_ievalue,
  domain_index: :domain_index,
  domain_score: :domain_score,
  env_from: :env_from,
  env_to: :env_to,
  full_bias: :full_bias,
  full_evalue: :full_evalue,
  full_score: :full_score,
  hmm_from: :hmm_from,
  hmm_to: :hmm_to,
  query_accession: :query_accession,
  query_len: :query_len,
  query_name: :query_name,
  target_accession: :target_accession,
  target_len: :target_len,
  target_name: :target_name
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ HmmerDomainHit

Returns a new instance of HmmerDomainHit.



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/sequences/hmmer_domain_hit.rb', line 59

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @accuracy = hash[:accuracy]
  @ali_from = hash[:ali_from]
  @ali_to = hash[:ali_to]
  @description = hash[:description]
  @domain_bias = hash[:domain_bias]
  @domain_cevalue = hash[:domain_cevalue]
  @domain_count = hash[:domain_count]
  @domain_ievalue = hash[:domain_ievalue]
  @domain_index = hash[:domain_index]
  @domain_score = hash[:domain_score]
  @env_from = hash[:env_from]
  @env_to = hash[:env_to]
  @full_bias = hash[:full_bias]
  @full_evalue = hash[:full_evalue]
  @full_score = hash[:full_score]
  @hmm_from = hash[:hmm_from]
  @hmm_to = hash[:hmm_to]
  @query_accession = hash[:query_accession]
  @query_len = hash[:query_len]
  @query_name = hash[:query_name]
  @target_accession = hash[:target_accession]
  @target_len = hash[:target_len]
  @target_name = hash[:target_name]
end

Instance Attribute Details

#accuracyObject

Returns the value of attribute accuracy.



34
35
36
# File 'lib/rafflesia/sequences/hmmer_domain_hit.rb', line 34

def accuracy
  @accuracy
end

#ali_fromObject

Returns the value of attribute ali_from.



34
35
36
# File 'lib/rafflesia/sequences/hmmer_domain_hit.rb', line 34

def ali_from
  @ali_from
end

#ali_toObject

Returns the value of attribute ali_to.



34
35
36
# File 'lib/rafflesia/sequences/hmmer_domain_hit.rb', line 34

def ali_to
  @ali_to
end

#descriptionObject

Returns the value of attribute description.



34
35
36
# File 'lib/rafflesia/sequences/hmmer_domain_hit.rb', line 34

def description
  @description
end

#domain_biasObject

Returns the value of attribute domain_bias.



34
35
36
# File 'lib/rafflesia/sequences/hmmer_domain_hit.rb', line 34

def domain_bias
  @domain_bias
end

#domain_cevalueObject

Returns the value of attribute domain_cevalue.



34
35
36
# File 'lib/rafflesia/sequences/hmmer_domain_hit.rb', line 34

def domain_cevalue
  @domain_cevalue
end

#domain_countObject

Returns the value of attribute domain_count.



34
35
36
# File 'lib/rafflesia/sequences/hmmer_domain_hit.rb', line 34

def domain_count
  @domain_count
end

#domain_ievalueObject

Returns the value of attribute domain_ievalue.



34
35
36
# File 'lib/rafflesia/sequences/hmmer_domain_hit.rb', line 34

def domain_ievalue
  @domain_ievalue
end

#domain_indexObject

Returns the value of attribute domain_index.



34
35
36
# File 'lib/rafflesia/sequences/hmmer_domain_hit.rb', line 34

def domain_index
  @domain_index
end

#domain_scoreObject

Returns the value of attribute domain_score.



34
35
36
# File 'lib/rafflesia/sequences/hmmer_domain_hit.rb', line 34

def domain_score
  @domain_score
end

#env_fromObject

Returns the value of attribute env_from.



34
35
36
# File 'lib/rafflesia/sequences/hmmer_domain_hit.rb', line 34

def env_from
  @env_from
end

#env_toObject

Returns the value of attribute env_to.



34
35
36
# File 'lib/rafflesia/sequences/hmmer_domain_hit.rb', line 34

def env_to
  @env_to
end

#full_biasObject

Returns the value of attribute full_bias.



34
35
36
# File 'lib/rafflesia/sequences/hmmer_domain_hit.rb', line 34

def full_bias
  @full_bias
end

#full_evalueObject

Returns the value of attribute full_evalue.



34
35
36
# File 'lib/rafflesia/sequences/hmmer_domain_hit.rb', line 34

def full_evalue
  @full_evalue
end

#full_scoreObject

Returns the value of attribute full_score.



34
35
36
# File 'lib/rafflesia/sequences/hmmer_domain_hit.rb', line 34

def full_score
  @full_score
end

#hmm_fromObject

Returns the value of attribute hmm_from.



34
35
36
# File 'lib/rafflesia/sequences/hmmer_domain_hit.rb', line 34

def hmm_from
  @hmm_from
end

#hmm_toObject

Returns the value of attribute hmm_to.



34
35
36
# File 'lib/rafflesia/sequences/hmmer_domain_hit.rb', line 34

def hmm_to
  @hmm_to
end

#query_accessionObject

Returns the value of attribute query_accession.



34
35
36
# File 'lib/rafflesia/sequences/hmmer_domain_hit.rb', line 34

def query_accession
  @query_accession
end

#query_lenObject

Returns the value of attribute query_len.



34
35
36
# File 'lib/rafflesia/sequences/hmmer_domain_hit.rb', line 34

def query_len
  @query_len
end

#query_nameObject

Returns the value of attribute query_name.



34
35
36
# File 'lib/rafflesia/sequences/hmmer_domain_hit.rb', line 34

def query_name
  @query_name
end

#target_accessionObject

Returns the value of attribute target_accession.



34
35
36
# File 'lib/rafflesia/sequences/hmmer_domain_hit.rb', line 34

def target_accession
  @target_accession
end

#target_lenObject

Returns the value of attribute target_len.



34
35
36
# File 'lib/rafflesia/sequences/hmmer_domain_hit.rb', line 34

def target_len
  @target_len
end

#target_nameObject

Returns the value of attribute target_name.



34
35
36
# File 'lib/rafflesia/sequences/hmmer_domain_hit.rb', line 34

def target_name
  @target_name
end