Class: Rafflesia::FoundryProteinDesign

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/foundry/foundry_protein_design.rb

Constant Summary collapse

HASH_ATTRS =
{
  id: :id,
  index: :index,
  mean_log_probability: :mean_log_probability,
  object: :object,
  position_log_probabilities: :position_log_probabilities,
  sequence: :sequence
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoundryProteinDesign

Returns a new instance of FoundryProteinDesign.



25
26
27
28
29
30
31
32
33
34
# File 'lib/rafflesia/foundry/foundry_protein_design.rb', line 25

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @id = hash[:id]
  @index = hash[:index]
  @mean_log_probability = hash[:mean_log_probability]
  @object = hash[:object]
  @position_log_probabilities = (hash[:position_log_probabilities] || [])
  @sequence = hash[:sequence]
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



17
18
19
# File 'lib/rafflesia/foundry/foundry_protein_design.rb', line 17

def id
  @id
end

#indexObject

Returns the value of attribute index.



17
18
19
# File 'lib/rafflesia/foundry/foundry_protein_design.rb', line 17

def index
  @index
end

#mean_log_probabilityObject

Returns the value of attribute mean_log_probability.



17
18
19
# File 'lib/rafflesia/foundry/foundry_protein_design.rb', line 17

def mean_log_probability
  @mean_log_probability
end

#objectObject

Returns the value of attribute object.



17
18
19
# File 'lib/rafflesia/foundry/foundry_protein_design.rb', line 17

def object
  @object
end

#position_log_probabilitiesObject

Returns the value of attribute position_log_probabilities.



17
18
19
# File 'lib/rafflesia/foundry/foundry_protein_design.rb', line 17

def position_log_probabilities
  @position_log_probabilities
end

#sequenceObject

Returns the value of attribute sequence.



17
18
19
# File 'lib/rafflesia/foundry/foundry_protein_design.rb', line 17

def sequence
  @sequence
end