Retrieve a structure and binding prediction
client.Predictions.StructureAndBinding.Get(ctx, id, query) (*PredictionStructureAndBindingGetResponse, error)
GET/compute/v1/predictions/structure-and-binding/{id}
Retrieve a prediction by ID, including its status and results.
Parameters
id string
Returns
Retrieve a structure and binding prediction
package main
import (
"context"
"fmt"
"github.com/boltz-bio/boltz-api-go"
"github.com/boltz-bio/boltz-api-go/option"
)
func main() {
client := boltzapi.NewClient(
option.WithAPIKey("My API Key"),
)
structureAndBinding, err := client.Predictions.StructureAndBinding.Get(
context.TODO(),
"sab_pred_2X7Ab9Cd3Ef6Gh1JkLmN",
boltzapi.PredictionStructureAndBindingGetParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", structureAndBinding.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"
}