Get protein design run status
client.Protein.Design.Get(ctx, id, query) (*ProteinDesignGetResponse, error)
GET/compute/v1/protein/design/{id}
Retrieve a design run by ID, including progress and status
Parameters
id string
Returns
Get protein design run status
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"),
)
design, err := client.Protein.Design.Get(
context.TODO(),
"id",
boltzapi.ProteinDesignGetParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", design.ID)
}
{
"id": "id",
"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",
"engine": "boltz-protein-design",
"engine_version": "engine_version",
"error": {
"code": "code",
"message": "message",
"details": {}
},
"input": {
"binder_specification": {
"chain_selection": {
"B": {
"chain_type": "polymer",
"crop_residues": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"design_motifs": [
{
"design_length_range": {
"max": 8,
"min": 4
},
"end_index": 5,
"start_index": 0,
"type": "replacement"
}
]
}
},
"modality": "peptide",
"structure": {
"url": "https://example.com",
"url_expires_at": "2019-12-27T18:11:19.117Z"
},
"type": "structure_template",
"rules": {
"excluded_amino_acids": [
"x"
],
"excluded_sequence_motifs": [
"string"
],
"max_hydrophobic_fraction": 0
}
},
"num_proteins": 10,
"target": {
"chain_selection": {
"A": {
"chain_type": "polymer",
"crop_residues": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12
],
"epitope_residues": [
10,
11,
12
],
"flexible_residues": [
5,
6,
7
]
}
},
"structure": {
"url": "https://example.com",
"url_expires_at": "2019-12-27T18:11:19.117Z"
},
"type": "structure_template"
},
"idempotency_key": "idempotency_key",
"workspace_id": "workspace_id"
},
"livemode": true,
"progress": {
"num_proteins_generated": 0,
"total_proteins_to_generate": 1,
"latest_result_id": "latest_result_id"
},
"started_at": "2019-12-27T18:11:19.117Z",
"status": "pending",
"stopped_at": "2019-12-27T18:11:19.117Z",
"workspace_id": "workspace_id",
"idempotency_key": "idempotency_key"
}Returns Examples
{
"id": "id",
"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",
"engine": "boltz-protein-design",
"engine_version": "engine_version",
"error": {
"code": "code",
"message": "message",
"details": {}
},
"input": {
"binder_specification": {
"chain_selection": {
"B": {
"chain_type": "polymer",
"crop_residues": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"design_motifs": [
{
"design_length_range": {
"max": 8,
"min": 4
},
"end_index": 5,
"start_index": 0,
"type": "replacement"
}
]
}
},
"modality": "peptide",
"structure": {
"url": "https://example.com",
"url_expires_at": "2019-12-27T18:11:19.117Z"
},
"type": "structure_template",
"rules": {
"excluded_amino_acids": [
"x"
],
"excluded_sequence_motifs": [
"string"
],
"max_hydrophobic_fraction": 0
}
},
"num_proteins": 10,
"target": {
"chain_selection": {
"A": {
"chain_type": "polymer",
"crop_residues": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12
],
"epitope_residues": [
10,
11,
12
],
"flexible_residues": [
5,
6,
7
]
}
},
"structure": {
"url": "https://example.com",
"url_expires_at": "2019-12-27T18:11:19.117Z"
},
"type": "structure_template"
},
"idempotency_key": "idempotency_key",
"workspace_id": "workspace_id"
},
"livemode": true,
"progress": {
"num_proteins_generated": 0,
"total_proteins_to_generate": 1,
"latest_result_id": "latest_result_id"
},
"started_at": "2019-12-27T18:11:19.117Z",
"status": "pending",
"stopped_at": "2019-12-27T18:11:19.117Z",
"workspace_id": "workspace_id",
"idempotency_key": "idempotency_key"
}