Class: Rafflesia::StructurePredictionRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  affinity_binder_id: :affinity_binder_id,
  constraints: :constraints,
  entities: :entities,
  idempotency_key: :idempotency_key,
  max_retries: :max_retries,
  max_template_date: :max_template_date,
  metadata: :metadata,
  model: :model,
  model_type: :model_type,
  msa_inputs: :msa_inputs,
  msa_mode: :msa_mode,
  msa_server_url: :msa_server_url,
  num_diffusion_samples: :num_diffusion_samples,
  num_loops: :num_loops,
  num_models: :num_models,
  num_recycles: :num_recycles,
  num_sampling_steps: :num_sampling_steps,
  num_seeds: :num_seeds,
  pair_mode: :pair_mode,
  predict_affinity: :predict_affinity,
  random_seed: :random_seed,
  relax_top_n: :relax_top_n,
  templates: :templates,
  timeout_ms: :timeout_ms
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ StructurePredictionRequest

Returns a new instance of StructurePredictionRequest.



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
86
87
88
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 61

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @affinity_binder_id = hash[:affinity_binder_id]
  @constraints = hash[:constraints]
  @entities = (hash[:entities] || []).map { |item| item ? Rafflesia::StructurePredictionEntity.new(item) : nil }
  @idempotency_key = hash[:idempotency_key]
  @max_retries = hash[:max_retries]
  @max_template_date = hash[:max_template_date]
  @metadata = hash[:metadata] || {}
  @model = hash[:model]
  @model_type = hash[:model_type]
  @msa_inputs = (hash[:msa_inputs] || []).map { |item| item ? Rafflesia::StructurePredictionMsaInput.new(item) : nil }
  @msa_mode = hash[:msa_mode]
  @msa_server_url = hash[:msa_server_url]
  @num_diffusion_samples = hash[:num_diffusion_samples]
  @num_loops = hash[:num_loops]
  @num_models = hash[:num_models]
  @num_recycles = hash[:num_recycles]
  @num_sampling_steps = hash[:num_sampling_steps]
  @num_seeds = hash[:num_seeds]
  @pair_mode = hash[:pair_mode]
  @predict_affinity = hash[:predict_affinity]
  @random_seed = hash[:random_seed]
  @relax_top_n = hash[:relax_top_n]
  @templates = hash[:templates]
  @timeout_ms = hash[:timeout_ms]
end

Instance Attribute Details

#affinity_binder_idObject

Returns the value of attribute affinity_binder_id.



35
36
37
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35

def affinity_binder_id
  @affinity_binder_id
end

#constraintsObject

Returns the value of attribute constraints.



35
36
37
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35

def constraints
  @constraints
end

#entitiesObject

Returns the value of attribute entities.



35
36
37
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35

def entities
  @entities
end

#idempotency_keyObject

Returns the value of attribute idempotency_key.



35
36
37
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35

def idempotency_key
  @idempotency_key
end

#max_retriesObject

Returns the value of attribute max_retries.



35
36
37
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35

def max_retries
  @max_retries
end

#max_template_dateObject

Returns the value of attribute max_template_date.



35
36
37
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35

def max_template_date
  @max_template_date
end

#metadataObject

Returns the value of attribute metadata.



35
36
37
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35

def 
  @metadata
end

#modelObject

Returns the value of attribute model.



35
36
37
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35

def model
  @model
end

#model_typeObject

Returns the value of attribute model_type.



35
36
37
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35

def model_type
  @model_type
end

#msa_inputsObject

Returns the value of attribute msa_inputs.



35
36
37
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35

def msa_inputs
  @msa_inputs
end

#msa_modeObject

Returns the value of attribute msa_mode.



35
36
37
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35

def msa_mode
  @msa_mode
end

#msa_server_urlObject

Returns the value of attribute msa_server_url.



35
36
37
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35

def msa_server_url
  @msa_server_url
end

#num_diffusion_samplesObject

Returns the value of attribute num_diffusion_samples.



35
36
37
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35

def num_diffusion_samples
  @num_diffusion_samples
end

#num_loopsObject

Returns the value of attribute num_loops.



35
36
37
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35

def num_loops
  @num_loops
end

#num_modelsObject

Returns the value of attribute num_models.



35
36
37
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35

def num_models
  @num_models
end

#num_recyclesObject

Returns the value of attribute num_recycles.



35
36
37
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35

def num_recycles
  @num_recycles
end

#num_sampling_stepsObject

Returns the value of attribute num_sampling_steps.



35
36
37
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35

def num_sampling_steps
  @num_sampling_steps
end

#num_seedsObject

Returns the value of attribute num_seeds.



35
36
37
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35

def num_seeds
  @num_seeds
end

#pair_modeObject

Returns the value of attribute pair_mode.



35
36
37
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35

def pair_mode
  @pair_mode
end

#predict_affinityObject

Returns the value of attribute predict_affinity.



35
36
37
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35

def predict_affinity
  @predict_affinity
end

#random_seedObject

Returns the value of attribute random_seed.



35
36
37
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35

def random_seed
  @random_seed
end

#relax_top_nObject

Returns the value of attribute relax_top_n.



35
36
37
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35

def relax_top_n
  @relax_top_n
end

#templatesObject

Returns the value of attribute templates.



35
36
37
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35

def templates
  @templates
end

#timeout_msObject

Returns the value of attribute timeout_ms.



35
36
37
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35

def timeout_ms
  @timeout_ms
end