Class: Rafflesia::StructurePredictionRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::StructurePredictionRequest
- 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
-
#affinity_binder_id ⇒ Object
Returns the value of attribute affinity_binder_id.
-
#constraints ⇒ Object
Returns the value of attribute constraints.
-
#entities ⇒ Object
Returns the value of attribute entities.
-
#idempotency_key ⇒ Object
Returns the value of attribute idempotency_key.
-
#max_retries ⇒ Object
Returns the value of attribute max_retries.
-
#max_template_date ⇒ Object
Returns the value of attribute max_template_date.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#model ⇒ Object
Returns the value of attribute model.
-
#model_type ⇒ Object
Returns the value of attribute model_type.
-
#msa_inputs ⇒ Object
Returns the value of attribute msa_inputs.
-
#msa_mode ⇒ Object
Returns the value of attribute msa_mode.
-
#msa_server_url ⇒ Object
Returns the value of attribute msa_server_url.
-
#num_diffusion_samples ⇒ Object
Returns the value of attribute num_diffusion_samples.
-
#num_loops ⇒ Object
Returns the value of attribute num_loops.
-
#num_models ⇒ Object
Returns the value of attribute num_models.
-
#num_recycles ⇒ Object
Returns the value of attribute num_recycles.
-
#num_sampling_steps ⇒ Object
Returns the value of attribute num_sampling_steps.
-
#num_seeds ⇒ Object
Returns the value of attribute num_seeds.
-
#pair_mode ⇒ Object
Returns the value of attribute pair_mode.
-
#predict_affinity ⇒ Object
Returns the value of attribute predict_affinity.
-
#random_seed ⇒ Object
Returns the value of attribute random_seed.
-
#relax_top_n ⇒ Object
Returns the value of attribute relax_top_n.
-
#templates ⇒ Object
Returns the value of attribute templates.
-
#timeout_ms ⇒ Object
Returns the value of attribute timeout_ms.
Instance Method Summary collapse
-
#initialize(json) ⇒ StructurePredictionRequest
constructor
A new instance of StructurePredictionRequest.
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_id ⇒ Object
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 |
#constraints ⇒ Object
Returns the value of attribute constraints.
35 36 37 |
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35 def constraints @constraints end |
#entities ⇒ Object
Returns the value of attribute entities.
35 36 37 |
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35 def entities @entities end |
#idempotency_key ⇒ Object
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_retries ⇒ Object
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_date ⇒ Object
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 |
#metadata ⇒ Object
Returns the value of attribute metadata.
35 36 37 |
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35 def @metadata end |
#model ⇒ Object
Returns the value of attribute model.
35 36 37 |
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35 def model @model end |
#model_type ⇒ Object
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_inputs ⇒ Object
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_mode ⇒ Object
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_url ⇒ Object
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_samples ⇒ Object
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_loops ⇒ Object
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_models ⇒ Object
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_recycles ⇒ Object
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_steps ⇒ Object
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_seeds ⇒ Object
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_mode ⇒ Object
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_affinity ⇒ Object
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_seed ⇒ Object
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_n ⇒ Object
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 |
#templates ⇒ Object
Returns the value of attribute templates.
35 36 37 |
# File 'lib/rafflesia/foundry/structure_prediction_request.rb', line 35 def templates @templates end |
#timeout_ms ⇒ Object
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 |