Retrieve a structure and binding prediction
predictions.structure_and_binding.retrieve(strid, StructureAndBindingRetrieveParams**kwargs) -> StructureAndBindingRetrieveResponse
GET/compute/v1/predictions/structure-and-binding/{id}
Retrieve a prediction by ID, including its status and results.
Parameters
id: str
workspace_id: Optional[str]
Workspace ID. Only used with admin API keys. Ignored (or validated) for workspace-scoped keys.
Returns
Retrieve a structure and binding prediction
import os
from boltz_api import Boltz
client = Boltz(
api_key=os.environ.get("BOLTZ_API_KEY"), # This is the default and can be omitted
)
structure_and_binding = client.predictions.structure_and_binding.retrieve(
id="sab_pred_2X7Ab9Cd3Ef6Gh1JkLmN",
)
print(structure_and_binding.id){
"id": "sab_pred_2X7Ab9Cd3Ef6Gh1JkLmN",
"completed_at": "2019-12-27T18:11:19.117Z",
"created_at": "2019-12-27T18:11:19.117Z",
"data_deleted_at": "2019-12-27T18:11:19.117Z",
"error": {
"code": "code",
"message": "message",
"details": {}
},
"expires_at": "2019-12-27T18:11:19.117Z",
"input": {
"entities": [
{
"chain_ids": [
"string"
],
"type": "protein",
"value": "value",
"cyclic": true,
"modifications": [
{
"residue_index": 0,
"type": "ccd",
"value": "value"
}
]
}
],
"binding": {
"binder_chain_id": "binder_chain_id",
"type": "ligand_protein_binding"
},
"bonds": [
{
"atom1": {
"atom_name": "atom_name",
"chain_id": "chain_id",
"type": "ligand_atom"
},
"atom2": {
"atom_name": "atom_name",
"chain_id": "chain_id",
"type": "ligand_atom"
}
}
],
"constraints": [
{
"binder_chain_id": "binder_chain_id",
"contact_residues": {
"A": [
42,
43,
44,
67,
68,
69
]
},
"max_distance_angstrom": 0,
"type": "pocket",
"force": true
}
],
"model_options": {
"recycling_steps": 1,
"sampling_steps": 1,
"step_scale": 1.3
},
"num_samples": 1
},
"livemode": true,
"model": "boltz-2.1",
"output": {
"all_sample_results": [
{
"metrics": {
"complex_ipde": 0,
"complex_iplddt": 0,
"complex_pde": 0,
"complex_plddt": 0,
"iptm": 0,
"ligand_iptm": 0,
"protein_iptm": 0,
"ptm": 0,
"structure_confidence": 0
},
"structure": {
"url": "https://example.com",
"url_expires_at": "2019-12-27T18:11:19.117Z"
}
}
],
"best_sample": {
"metrics": {
"complex_ipde": 0,
"complex_iplddt": 0,
"complex_pde": 0,
"complex_plddt": 0,
"iptm": 0,
"ligand_iptm": 0,
"protein_iptm": 0,
"ptm": 0,
"structure_confidence": 0
},
"structure": {
"url": "https://example.com",
"url_expires_at": "2019-12-27T18:11:19.117Z"
}
},
"archive": {
"url": "https://example.com",
"url_expires_at": "2019-12-27T18:11:19.117Z"
},
"binding_metrics": {
"binding_confidence": 0,
"optimization_score": 0,
"type": "ligand_protein_binding_metrics"
}
},
"started_at": "2019-12-27T18:11:19.117Z",
"status": "pending",
"version": "version",
"workspace_id": "workspace_id",
"idempotency_key": "idempotency_key"
}Returns Examples
{
"id": "sab_pred_2X7Ab9Cd3Ef6Gh1JkLmN",
"completed_at": "2019-12-27T18:11:19.117Z",
"created_at": "2019-12-27T18:11:19.117Z",
"data_deleted_at": "2019-12-27T18:11:19.117Z",
"error": {
"code": "code",
"message": "message",
"details": {}
},
"expires_at": "2019-12-27T18:11:19.117Z",
"input": {
"entities": [
{
"chain_ids": [
"string"
],
"type": "protein",
"value": "value",
"cyclic": true,
"modifications": [
{
"residue_index": 0,
"type": "ccd",
"value": "value"
}
]
}
],
"binding": {
"binder_chain_id": "binder_chain_id",
"type": "ligand_protein_binding"
},
"bonds": [
{
"atom1": {
"atom_name": "atom_name",
"chain_id": "chain_id",
"type": "ligand_atom"
},
"atom2": {
"atom_name": "atom_name",
"chain_id": "chain_id",
"type": "ligand_atom"
}
}
],
"constraints": [
{
"binder_chain_id": "binder_chain_id",
"contact_residues": {
"A": [
42,
43,
44,
67,
68,
69
]
},
"max_distance_angstrom": 0,
"type": "pocket",
"force": true
}
],
"model_options": {
"recycling_steps": 1,
"sampling_steps": 1,
"step_scale": 1.3
},
"num_samples": 1
},
"livemode": true,
"model": "boltz-2.1",
"output": {
"all_sample_results": [
{
"metrics": {
"complex_ipde": 0,
"complex_iplddt": 0,
"complex_pde": 0,
"complex_plddt": 0,
"iptm": 0,
"ligand_iptm": 0,
"protein_iptm": 0,
"ptm": 0,
"structure_confidence": 0
},
"structure": {
"url": "https://example.com",
"url_expires_at": "2019-12-27T18:11:19.117Z"
}
}
],
"best_sample": {
"metrics": {
"complex_ipde": 0,
"complex_iplddt": 0,
"complex_pde": 0,
"complex_plddt": 0,
"iptm": 0,
"ligand_iptm": 0,
"protein_iptm": 0,
"ptm": 0,
"structure_confidence": 0
},
"structure": {
"url": "https://example.com",
"url_expires_at": "2019-12-27T18:11:19.117Z"
}
},
"archive": {
"url": "https://example.com",
"url_expires_at": "2019-12-27T18:11:19.117Z"
},
"binding_metrics": {
"binding_confidence": 0,
"optimization_score": 0,
"type": "ligand_protein_binding_metrics"
}
},
"started_at": "2019-12-27T18:11:19.117Z",
"status": "pending",
"version": "version",
"workspace_id": "workspace_id",
"idempotency_key": "idempotency_key"
}