openprotein.fold
SDK release/v0.18.0This compatibility interface is deprecated. Use session.models for model access.
Create PDBs of your protein sequences via our folding models! Note that for Boltz and AlphaFold2 Models, you will also need to utilize our align workflow to create MSAs.
21source
Fold API provides a high level interface for making protein structure predictions.
sessionAPISessionattributeboltz2:Boltz2Modelsource
Boltz-2 model
attributeboltz_2:Boltz2Modelsource
attributeboltz1x:Boltz1xModelsource
Boltz-1x model
attributeboltz_1x:Boltz1xModelsource
attributeboltz1:Boltz1Modelsource
Boltz-1 model
attributeboltz_1:Boltz1Modelsource
attributeaf2:AlphaFold2Modelsource
AlphaFold-2 model
attributealphafold2:AlphaFold2Modelsource
attributerf3:RosettaFold3Modelsource
RosettaFold-3 model
attributerosettafold_3:RosettaFold3Modelsource
attributeesmfold:ESMFoldModelsource
ESMFold model
attributeesmfold2:ESMFold2Modelsource
ESMFold2 model
attributeesmfold2_fast:ESMFold2FastModelsource
ESMFold2-Fast model
attributeminifold:MiniFoldModelsource
MiniFold model
attributeopendde:OpenDDEModelsource
OpenDDE model
attributeopendde_abag:OpenDDEAbagModelsource
OpenDDE antibody-antigen model
attributeprotenix:ProtenixModelsource
Protenix model
attributeprotenix_v2:ProtenixV2Modelsource
Protenix-v2 model
methodget_model(model_id)→FoldModelsource
Get model by model_id.
FoldModel allows all the usual job manipulation: e.g. making POST and GET requests for this model specifically.
model_idstrthe model identifier
The model
If the GET request does not succeed.
methodget_results(job)→FoldResultFuturesource
Retrieves the results of a fold job.
jobJobThe fold job whose results are to be retrieved.
An instance of FoldResultFuture
1source
Bases: FoldModel
Class providing inference endpoints for Protenix structure prediction.
methodfold(sequences, diffusion_samples=1, num_recycles=10, num_steps=200, templates=None, seed=None, **_)→FoldResultFuturesource
Request structure prediction with Protenix.
sequencesFoldInput | MSAFutureComplexes to fold, or a lone complex/protein/sequence. Protein objects must be tagged with an msa, which can be a Protein.single_sequence_mode for single sequence mode. Alternatively, supply an MSAFuture to use all query sequences as a multimer.
diffusion_samplesint= 1Number of diffusion samples to use
num_recyclesint= 10Number of recycling steps to use
num_stepsint= 200Number of sampling steps to use
List of templates to use for structure prediction.
seedint | None= NoneSeed for the prediction, from 0 to 2**31 - 1. None draws a new
seed for each call, so every call is a fresh prediction; the job's
metadata.args["seed"] records it. Folding the same input with
the same seed returns the same structures.
Future for the folding results.
source
Bases: ProtenixModel, FoldModel
Class providing inference endpoints for Protenix-v2 structure prediction.
Protenix-v2 shares Protenix's fold API surface and confidence schema.
1source
Bases: BoltzModel, FoldModel
Class providing inference endpoints for Boltz-2 structure prediction model which jointly models complex structures and binding affinities.
methodfold(sequences, diffusion_samples=1, num_recycles=3, num_steps=200, step_scale=1.638, use_potentials=False, constraints=None, templates=None, properties=None, method=None, seed=None, **_)→FoldResultFuturesource
Request structure prediction with Boltz-2 model.
sequencesFoldInput | MSAFutureComplexes to fold, or a lone complex/protein/sequence. Protein objects must be tagged with an msa, which can be a Protein.single_sequence_mode for single sequence mode. Alternatively, supply an MSAFuture to use all query sequences as a multimer.
diffusion_samplesint= 1Number of diffusion samples to use
num_recyclesint= 3Number of recycling steps to use
num_stepsint= 200Number of sampling steps to use
step_scalefloat= 1.638Scaling factor for diffusion steps.
use_potentialsbool= FalseWhether or not to use potentials.
constraintslist[dict] | None = None= NoneList of constraints.
List of templates to use for structure prediction.
propertiesSequence[Mapping] | None= NoneList of additional properties to predict. Should match the BoltzProperties
methodstr | None= NoneThe experimental method or supervision source used for the prediction. Defults to None. Supported values (case-insensitive) include: 'MD', 'X-RAY DIFFRACTION', 'ELECTRON MICROSCOPY', 'SOLUTION NMR', 'SOLID-STATE NMR', 'NEUTRON DIFFRACTION', 'ELECTRON CRYSTALLOGRAPHY', 'FIBER DIFFRACTION', 'POWDER DIFFRACTION', 'INFRARED SPECTROSCOPY', 'FLUORESCENCE TRANSFER', 'EPR', 'THEORETICAL MODEL', 'SOLUTION SCATTERING', 'OTHER', 'AFDB', 'BOLTZ-1'. View the documentation on Boltz for upstream details.
seedint | None= NoneSeed for the prediction, from 0 to 2**31 - 1. None draws a new
seed for each call, so every call is a fresh prediction; the job's
metadata.args["seed"] records it. Folding the same input with
the same seed returns the same structures.
Future for the folding result.
1source
Bases: Boltz1Model, BoltzModel, FoldModel
Class providing inference endpoints for Boltz-1x open-source structure prediction model, which adds the use of inference potentials to improve performance.
methodfold(sequences, diffusion_samples=1, num_recycles=3, num_steps=200, step_scale=1.638, use_potentials=True, constraints=None, seed=None, **_)→FoldResultFuturesource
Request structure prediction with Boltz-1x model. Uses potentials with Boltz-1 model.
sequencesFoldInput | MSAFutureComplexes to fold, or a lone complex/protein/sequence. Protein objects must be tagged with an msa, which can be a Protein.single_sequence_mode for single sequence mode. Alternatively, supply an MSAFuture to use all query sequences as a multimer.
diffusion_samplesint= 1Number of diffusion samples to use
num_recyclesint= 3Number of recycling steps to use
num_stepsint= 200Number of sampling steps to use
step_scalefloat= 1.638Scaling factor for diffusion steps.
constraintsOptional[List[dict]]= NoneList of constraints.
seedint | None= NoneSeed for the prediction, from 0 to 2**31 - 1. None draws a new
seed for each call, so every call is a fresh prediction; the job's
metadata.args["seed"] records it. Folding the same input with
the same seed returns the same structures.
use_potentialsbool= TrueFuture for the folding complex result.
1source
Bases: BoltzModel, FoldModel
Class providing inference endpoints for Boltz-1 open-source structure prediction model.
methodfold(sequences, diffusion_samples=1, num_recycles=3, num_steps=200, step_scale=1.638, use_potentials=False, constraints=None, seed=None, **_)→FoldResultFuturesource
Request structure prediction with Boltz-1 model.
sequencesFoldInput | MSAFutureComplexes to fold, or a lone complex/protein/sequence. Protein objects must be tagged with an msa, which can be a Protein.single_sequence_mode for single sequence mode. Alternatively, supply an MSAFuture to use all query sequences as a multimer.
diffusion_samplesint= 1Number of diffusion samples to use
num_recyclesint= 3Number of recycling steps to use
num_stepsint= 200Number of sampling steps to use
step_scalefloat= 1.638Scaling factor for diffusion steps.
use_potentialsbool= FalseWhether or not to use potentials.
constraintsOptional[List[dict]]= NoneList of constraints.
seedint | None= NoneSeed for the prediction, from 0 to 2**31 - 1. None draws a new
seed for each call, so every call is a fresh prediction; the job's
metadata.args["seed"] records it. Folding the same input with
the same seed returns the same structures.
Future for the folding complex result.
1source
Bases: FoldModel
Class providing inference endpoints for RosettaFold-3 structure prediction model.
methodfold(sequences, diffusion_samples=1, num_recycles=10, num_steps=50, seed=None, **kwargs)→FoldResultFuturesource
Request structure prediction with RosettaFold-3 model.
sequencesFoldInput | MSAFutureComplexes to fold, or a lone complex/protein/sequence. Protein objects must be tagged with an msa, which can be a Protein.single_sequence_mode for single sequence mode. Alternatively, supply an MSAFuture to use all query sequences as a multimer.
diffusion_samplesint= 1Number of diffusion samples to use
num_recyclesint= 10Number of recycling steps to use
num_stepsint= 50Number of sampling steps to use
seedint | None= NoneSeed for the prediction, from 1 to 2**32 - 1. None draws a new
seed for each call, so every call is a fresh prediction; the job's
metadata.args["seed"] records it. Folding the same input with
the same seed returns the same structures.
Future for the folding results.
1source
Bases: FoldModel
Class providing inference endpoints for AlphaFold2 structure prediction models, based on the implementation by ColabFold.
methodfold(sequences, num_recycles=None, num_models=1, num_relax=0, **kwargs)→FoldResultFuturesource
Post sequences to alphafold model.
sequencesFoldInput | MSAFutureComplexes to fold, or a lone complex/protein/sequence. Protein objects must be tagged with an msa, which can be a Protein.single_sequence_mode for single sequence mode. Alternatively, supply an MSAFuture to use all query sequences as a multimer.
num_recyclesint= Nonenumber of times to recycle models
num_modelsint= 1number of models to train - best model will be used
num_relaxint= 0maximum number of iterations for relax
jobJob1source
Bases: FoldModel
Class providing inference endpoints for Facebook's ESMFold structure prediction models.
methodfold(sequences, num_recycles=None, **_)→FoldResultFuturesource
Fold sequences using this model.
sequencesFoldInputsequences to fold
num_recyclesint | None= Nonenumber of times to recycle models
1source
Bases: FoldModel
Class providing inference endpoints for ESMFold2 structure prediction.
methodfold(sequences, diffusion_samples=1, num_recycles=3, num_steps=100, seed=None, **_)→FoldResultFuturesource
Request structure prediction with ESMFold2.
sequencesFoldInput | MSAFutureList of complexes to fold. Protein objects must be tagged with
an msa, which can be Protein.single_sequence_mode for single
sequence mode. Alternatively, supply an MSAFuture to use all
query sequences as a multimer.
diffusion_samplesint= 1Number of diffusion samples to use.
num_recyclesint= 3Number of recycling steps to use.
num_stepsint= 100Number of sampling steps to use.
seedint | None= NoneSeed for the diffusion sampler.
Future for the folding result.
1source
Bases: FoldModel
Class providing inference endpoints for ESMFold2-Fast structure prediction.
Single-sequence variant of ESMFold2 (no MSA).
methodfold(sequences, diffusion_samples=1, num_recycles=3, num_steps=100, seed=None, **_)→FoldResultFuturesource
Request structure prediction with ESMFold2-Fast.
Single-sequence variant: protein chains must use Protein.single_sequence_mode
rather than an MSA.
sequencesFoldInputList of complexes to fold. Protein objects must be tagged with
Protein.single_sequence_mode.
diffusion_samplesint= 1Number of diffusion samples to use.
num_recyclesint= 3Number of recycling steps to use.
num_stepsint= 100Number of sampling steps to use.
seedint | None= NoneSeed for the diffusion sampler.
Future for the folding result.
1source
Bases: FoldModel
Class providing inference endpoints for MiniFold.
methodfold(sequences, num_recycles=None, **_)→FoldResultFuturesource
Fold sequences using this model.
sequencesFoldInputsequences to fold
num_recyclesint | None= Nonenumber of times to recycle models
5source
A fold model that predicts a structure from sequences.
methodget_model()source
Get the model_id(s) for this FoldModel subclass.
List of model_id strings associated with this class.
methodcreate(session, model_id, default=None, **kwargs)source
Create and return an instance of the subclass serving model_id.
sessionAPISessionThe API session to use.
model_idstrThe model identifier.
Default FoldModel subclass to use if no match is found.
**kwargsdict= {}Additional keyword arguments to pass to the model constructor.
An instance of the appropriate FoldModel subclass.
If no suitable FoldModel subclass is found and no default is provided.
propertymetadatasource
ModelMetadata : Model metadata for this model.
methodget_metadata()→ModelMetadatasource
Get model metadata for this model.
The metadata associated with this model.
methodfold(sequences, **kwargs)→FoldResultFuturesource
Fold sequences using this model.
sequencesFoldInputSequences, proteins or complexes to fold. Every protein is sent
with an msa_id when any of them has an MSA or
Protein.single_sequence_mode attached. An empty list sends no
sequences, for models whose inputs are other parameters.
**kwargsdict= {}Additional keyword arguments to pass to the underlying
fold request.
Future object representing the fold result.
1source
Bases: FoldModel
Class providing inference endpoints for Boltz structure prediction models.
methodfold(sequences, diffusion_samples=1, num_recycles=3, num_steps=200, step_scale=1.638, use_potentials=False, constraints=None, *, seed=None, **kwargs)→FoldResultFuturesource
Request structure prediction with boltz model.
sequencesFoldInput | MSAFutureComplexes to fold, or a lone complex/protein/sequence. Protein objects must be tagged with an msa, which can be a Protein.single_sequence_mode for single sequence mode. Alternatively, supply an MSAFuture to use all query sequences as a multimer.
diffusion_samplesint= 1Number of diffusion samples to use
num_recyclesint= 3Number of recycling steps to use
num_stepsint= 200Number of sampling steps to use
step_scalefloat= 1.638Scaling factor for diffusion steps.
constraintsOptional[List[dict]]= NoneList of constraints.
seedint | None= NoneSeed for the prediction, from 0 to 2**31 - 1. None draws a new
seed for each call, so every call is a fresh prediction; the job's
metadata.args["seed"] records it. Folding the same input with
the same seed returns the same structures.
use_potentialsbool= FalseFuture for the folding complex result.
6source
Bases: BaseModel
Per-sample confidence scores from an ESMFold2 structure prediction.
attributeptm:floatsource
Predicted TM-score for the full complex.
attributeiptm:floatsource
Interface pTM aggregated over inter-chain residue pairs.
attributecomplex_plddt:floatsource
Mean per-atom pLDDT for the complex.
attributechains_ptm:dict[str, float]source
Per-chain pTM scores, keyed by chain index as a string.
attributepair_chains_iptm:dict[str, dict[str, float]]source
Predicted ipTM between each pair of chains, keyed by chain indices as strings.
attributemodel_config:ClassVar[ConfigDict]= {}
pydantic model configuration
41source
Bases: MappedFuture[int, FoldResult]
Fold results represented as a future.
propertysequences:list[bytes]source
Get the sequences submitted for the fold request.
List of sequences.
propertycomplexes:list[Complex]source
Get the molecular complexes submitted for the fold request.
List of complexes.
propertyidsource
Get the ID of the fold request.
Fold job ID.
propertymetadata:FoldMetadatasource
The fold metadata.
propertymodel_id:strsource
The fold model used.
methodget_item(k, key=None, **kwargs)→FoldResultsource
Get fold results for one unit of the fold job.
kintZero-based index of the unit, as returned by __keys__.
keystr or None= NoneWhich result to fetch. None returns the predicted structure.
Otherwise one of "pae", "pde", "plddt", "ptm",
"ipae", "confidence", "affinity", "score" or
"metrics". Availability varies by model.
The predicted structure when key is None; an array for the
per-residue and per-pair metrics; a parsed affinity or per-model
confidence object for "affinity" and "confidence".
methodstream(key=None)→Iterator[Structure] | Iterator[np.ndarray] | Iterator[pd.DataFrame] | Iterator[BoltzAffinity] | Iterator[list[BoltzConfidence]] | Iterator[list[ProtenixConfidence]] | Iterator[list[ESMFold2Confidence]]source
Retrieve results for this job as a stream.
A generator that yields (key, value) tuples.
keyLiteral['pae', 'pde', 'plddt', 'ptm', 'ipae', 'confidence', 'affinity', 'score', 'metrics'] | None= Nonemethodget(verbose=False, key=None)→list[Structure] | list[np.ndarray] | list[pd.DataFrame] | list[list[BoltzConfidence]] | list[list[ProtenixConfidence]] | list[list[ESMFold2Confidence]] | list[BoltzAffinity]source
verbosebool= FalsekeyLiteral['pae', 'pde', 'plddt', 'ptm', 'ipae', 'confidence', 'affinity', 'score', 'metrics'] | None= Nonemethodget_pae()→list[np.ndarray]source
Get the Predicted Aligned Error (PAE) matrix for all outputs.
PAE matrix.
If PAE is not supported for the model.
methodget_pde()→list[np.ndarray]source
Get the Predicted Distance Error (PDE) matrix.
PDE matrix.
If PDE is not supported for the model.
methodget_plddt()→list[np.ndarray]source
Get the Predicted Local Distance Difference Test (pLDDT) scores.
pLDDT scores.
If pLDDT is not supported for the model.
methodget_ptm()→list[np.ndarray]source
Get the Predicted TM (pTM) scores.
pTM scores.
If pTM is not supported for the model.
methodget_ipae()→list[np.ndarray]source
Get the interface PAE (iPAE) — a synthetic scalar per unit derived
from pae and the per-unit protein-chain layout. Returns one
shape-(1,) array per fold output.
iPAE scalars (one (1,) array per unit).
If iPAE is not supported for the model.
methodget_score()→list[pd.DataFrame]source
Get the predicted scores.
Structure prediction scores.
If score is not supported for the model.
methodget_metrics()→list[pd.DataFrame]source
Get the predicted metrics.
Structure prediction metrics.
If metrics is not supported for the model.
methodget_confidence()→list[list[BoltzConfidence]] | list[list[ProtenixConfidence]] | list[list[ESMFold2Confidence]]source
Retrieve the confidences of the structure prediction.
This is currently supported for Boltz, Protenix, and ESMFold2 models.
List of list of confidence objects (model-specific schema).
If confidence is not supported for the model.
methodget_affinity()→list[BoltzAffinity]source
Retrieve the predicted binding affinities.
This is only currently supported for Boltz models.
BoltzAffinity object containing the predicted affinities.
If affinity is not supported for the model.
methodget_pae_batch()→np.ndarraysource
Get the Predicted Aligned Error (PAE) for every unit as a single
stacked np.ndarray of shape [N, ...]. Per-unit arrays that
differ in size are NaN-padded to the per-axis max shape.
methodget_pde_batch()→np.ndarraysource
Like get_pae_batch but for PDE. Shape [N, ...], NaN-padded.
methodget_plddt_batch()→np.ndarraysource
Like get_pae_batch but for pLDDT. Shape [N, ...], NaN-padded.
methodget_ptm_batch()→np.ndarraysource
Like get_pae_batch but for pTM. Shape [N, ...], NaN-padded.
methodget_ipae_batch()→np.ndarraysource
Get iPAE for every unit as a single np.ndarray of shape [N].
Units whose per-unit iPAE could not be computed appear as NaN.
methodget_confidence_batch()→list[list[BoltzConfidence] | None] | list[list[OpenDDEConfidence] | None] | list[list[ProtenixConfidence] | None] | list[list[ESMFold2Confidence] | None]source
Retrieve per-unit confidence objects in a single HTTP call.
Returns a length-N list; each entry is that unit's parsed
confidence list, or None if that unit's result could not be
fetched.
methodget_affinity_batch()→list[BoltzAffinity | None]source
Retrieve per-unit affinity objects in a single HTTP call.
Returns a length-N list; each entry is a BoltzAffinity or
None if that unit's result could not be fetched.
propertyargs:dict[str, Any]source
inherited from openprotein.jobs.Future
The registered job arguments.
methodcancelled()→boolsource
inherited from openprotein.jobs.Future
Check if the job has been cancelled.
True if the job is cancelled, False otherwise.
propertycreated_date:datetimesource
inherited from openprotein.jobs.Future
The creation timestamp of the job.
propertydescription:str | Nonesource
inherited from openprotein.jobs.Future
The job's description, or an empty string if the job has none.
methoddone()→boolsource
inherited from openprotein.jobs.Future
Check if the job has completed.
True if the job is done, False otherwise.
propertyend_date:datetime | Nonesource
inherited from openprotein.jobs.Future
The end timestamp of the job.
propertyname:str | Nonesource
inherited from openprotein.jobs.Future
The job's name, or its job id if the job has no name.
propertyprogress_counter:intsource
inherited from openprotein.jobs.Future
The progress counter of the job.
methodrefresh()source
inherited from openprotein.jobs.Future
Refresh the job status and internal job object.
methodrename(name=None, description=None)source
inherited from openprotein.jobs.Future
Set this job's name and description.
Only the arguments given are sent, so renaming leaves the description alone. Extra fields carried on the job are preserved, as on refresh.
namestr | None= Nonedescriptionstr | None= Nonepropertystart_date:datetime | Nonesource
inherited from openprotein.jobs.Future
The start timestamp of the job.
methodwait(interval=5, timeout=None, verbose=False, **kwargs)→list[tuple[K, V]]source
inherited from openprotein.jobs.MappedFuture
Wait for the job to complete, then fetch results.
intervalint= config.POLLING_INTERVALTime in seconds between polling. Defaults to config.POLLING_INTERVAL.
timeoutint | None= NoneMaximum time in seconds to wait. Defaults to None.
verbosebool= FalseVerbosity flag. Defaults to False.
**kwargs= {}Keyword arguments passed to get.
The results of the job.
methodwait_until_done(interval=5, timeout=None, verbose=False)→boolsource
inherited from openprotein.jobs.Future
Wait for the job to complete.
intervalfloat= config.POLLING_INTERVALTime in seconds between polling. Defaults to config.POLLING_INTERVAL.
timeoutint= NoneMaximum time in seconds to wait. Defaults to None.
verbosebool= FalseVerbosity flag. Defaults to False.
True if the job completed successfully.
This method does not fetch the job results, unlike wait().
11source
Bases: BaseModel
Model representing the aggregated confidence scores for a prediction sample.
attributeconfidence_score:floatsource
Aggregated score used to sort the predictions, corresponds to 0.8 * complex_plddt + 0.2 * iptm (ptm for single chains).
attributeptm:floatsource
Predicted TM score for the complex.
attributeiptm:floatsource
Predicted TM score when aggregating at the interfaces.
attributeligand_iptm:floatsource
ipTM but only aggregating at protein-ligand interfaces.
attributeprotein_iptm:floatsource
ipTM but only aggregating at protein-protein interfaces.
attributecomplex_plddt:floatsource
Average pLDDT score for the complex.
attributecomplex_iplddt:floatsource
Average pLDDT score when upweighting interface tokens.
attributecomplex_pde:floatsource
Average PDE score for the complex.
attributecomplex_ipde:floatsource
Average PDE score when aggregating at interfaces.
attributechains_ptm:dict[str, float]source
Predicted TM score within each chain, keyed by chain index as a string.
attributepair_chains_iptm:dict[str, dict[str, float]]source
Predicted (interface) TM score between each pair of chains, keyed by chain indices as strings.
3source
Bases: BaseModel
Output schema for Boltz affinity ensemble predictions.
attributeaffinity_pred_value:floatsource
Predicted binding affinity from the ensemble model.
attributeaffinity_probability_binary:floatsource
Predicted binding likelihood from the ensemble model.
attribute**kwargs
Extra keys of the form 'affinity_pred_valueN' and 'affinity_probability_binaryN', where N is the model index (e.g., 1, 2, 3, ...).
15source
Bases: BaseModel
Per-sample confidence scores from a Protenix structure prediction.
attributeranking_score:floatsource
Composite ranking metric: 0.8 * iptm + 0.2 * ptm - 100 * has_clash.
attributeptm:floatsource
Predicted TM-score for the full complex.
attributeiptm:floatsource
Interface pTM aggregated over inter-chain residue pairs.
attributeplddt:floatsource
Mean per-atom pLDDT in [0, 100].
attributegpde:floatsource
Global PDE weighted by contact probabilities.
attributehas_clash:floatsource
Binary clash flag (1.0 if atomic clashes detected, else 0.0).
attributenum_recycles:intsource
Number of recycling iterations used.
attributedisorder:floatsource
Disorder score (currently always 0.0).
attributechain_ptm:list[float]source
Per-chain pTM scores, indexed by chain.
attributechain_iptm:list[float]source
Per-chain ipTM scores.
attributechain_plddt:list[float]source
Per-chain mean pLDDT scores.
attributechain_gpde:list[float]source
Per-chain global PDE scores.
attributechain_pair_iptm:list[list[float]]source
Chain-pair ipTM matrix.
attributechain_pair_iptm_global:list[list[float]]source
Chain-pair ipTM matrix with ligand-aware weighting.
attributechain_pair_gpde:list[list[float]]source
Chain-pair global PDE matrix.
Types referenced by the interfaces above.
1source
Bases: FoldModel
Class providing inference endpoints for OpenDDE structure prediction.
OpenDDE folds protein, DNA, RNA, ligand and ion entities into a single all-atom complex, optionally conditioned on an MSA per protein chain.
methodfold(sequences, diffusion_samples=1, num_recycles=10, num_steps=200, seed=None, **_)→FoldResultFuturesource
Request structure prediction with OpenDDE.
sequencesFoldInput | MSAFutureList of complexes to fold. Protein objects must be tagged with an
msa, which can be Protein.single_sequence_mode to fold without
one. Alternatively, supply an MSAFuture to use all its query
sequences as a multimer.
diffusion_samplesint= 1Number of diffusion samples to generate per prediction.
num_recyclesint= 10Number of recycling iterations to run.
num_stepsint= 200Number of diffusion sampling steps.
seedint | None= NoneSeed for the diffusion sampling, from 0 to 2**32 - 1. None draws a
new seed for each call, so every call is a fresh prediction; the
job's metadata.args["seed"] records it. Input preparation,
ligand conformers included, is not seeded, so folding the same
input with the same seed can still give different structures,
especially for complexes with a ligand.
Future for the folding results.
source
Bases: OpenDDEModel
Class providing inference endpoints for the OpenDDE antibody-antigen model.
Shares OpenDDE's fold API surface and confidence schema, with weights tuned on antibody-antigen complexes.
17source
Bases: BaseModel
Per-sample confidence scores from an OpenDDE structure prediction.
OpenDDE emits three further scores - pb_ranking_score,
has_vdw_pl_clash and pb_ranking_score_vdw_penalized - only when a
prediction targets a specific binder chain. This API never requests that, so
they are not declared here; extra = "allow" passes them through should
that change.
attributeranking_score:floatsource
Composite ranking metric:
0.8 * iptm + 0.2 * ptm + 0.5 * disorder - 100 * has_clash.
attributeptm:floatsource
Predicted TM-score for the full complex.
attributeiptm:floatsource
Interface pTM aggregated over inter-chain residue pairs.
attributeplddt:floatsource
Mean per-atom pLDDT in [0, 100].
attributegpde:floatsource
Global PDE weighted by contact probabilities.
attributehas_clash:floatsource
Binary clash flag (1.0 if atomic clashes detected, else 0.0).
attributenum_recycles:intsource
Number of recycling iterations used.
attributedisorder:floatsource
Disorder score (currently always 0.0).
attributechain_ptm:list[float]source
Per-chain pTM scores, indexed by chain.
attributechain_iptm:list[float]source
Per-chain ipTM scores.
attributechain_plddt:list[float]source
Per-chain mean pLDDT scores.
attributechain_gpde:list[float]source
Per-chain global PDE scores.
attributechain_pair_iptm:list[list[float]]source
Chain-pair ipTM matrix.
attributechain_pair_iptm_global:list[list[float]]source
Chain-pair ipTM matrix with ligand-aware weighting.
attributechain_pair_gpde:list[list[float]]source
Chain-pair global PDE matrix.
attributechain_pair_plddt:list[list[float]]source
Chain-pair mean pLDDT matrix.
attributemodel_config:ClassVar[ConfigDict]= {}
pydantic model configuration