openprotein.design.DesignFuture#
- class openprotein.design.DesignFuture(session, job=None, metadata=None)[source]#
A future object that will hold the results of the design job.
- Parameters:
session (APISession)
job (DesignJob)
metadata (Design | None)
- __init__(session, job=None, metadata=None)[source]#
Construct a future for a design job.
Takes in either a design job, or the design metadata.
- Parameters:
session (APISession)
job (DesignJob | None)
metadata (Design | None)
Methods
__init__(session[, job, metadata])Construct a future for a design job.
cancelled()Check if the job has been cancelled.
create(session[, job_id, job, response])Create an instance of the appropriate Future class based on the job type.
done()Check if the job has completed.
get([verbose])Return all results from the job by consuming the stream.
get_assay()Get assay used for design job.
refresh()Refresh the job status and internal job object.
stream([step])Return the results from this job as a generator.
wait([interval, timeout, verbose])Wait for the job to complete, then fetch results.
wait_until_done([interval, timeout, verbose])Wait for the job to complete.
Attributes
algorithmAlgorithm used in the design.
allowed_tokensAllowed tokens used in the design.
assayAssay used in the design.
created_dateThe creation timestamp of the job.
criteriaCriteria used in the design.
crossover_probCrossover probability used in the design.
crossover_prob_pointwiseCrossover probability pointwise used in the design.
end_dateThe end timestamp of the job.
idID of the design.
job_idThe unique identifier of the job.
job_typeThe type of the job.
metadataDesign metadata.
mutation_average_mutations_per_seqAverage mutations per sequence used in the design.
n_offspringsNumber of offsprings used in the design.
num_rowsNumber of rows in the total design output (across all steps).
num_stepsNumber of steps used in the design.
pop_sizePopulation size used in the design.
progress_counterThe progress counter of the job.
start_dateThe start timestamp of the job.
statusThe current status of the job.
jobsession