Stop a running protein library screen
client.Protein.LibraryScreen.Stop(ctx, id) (*ProteinLibraryScreenStopResponse, error)
POST/compute/v1/protein/library-screen/{id}/stop
Stop an in-progress protein library screen early
Parameters
id string
Returns
Stop a running protein library screen
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"),
)
response, err := client.Protein.LibraryScreen.Stop(context.TODO(), "id")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.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-screen",
"engine_version": "engine_version",
"error": {
"code": "code",
"message": "message",
"details": {}
},
"input": {
"proteins": {
"url": "https://example.com",
"url_expires_at": "2019-12-27T18:11:19.117Z"
},
"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"
}
},
"livemode": true,
"progress": {
"num_proteins_failed": 0,
"num_proteins_screened": 0,
"total_proteins_to_screen": 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-screen",
"engine_version": "engine_version",
"error": {
"code": "code",
"message": "message",
"details": {}
},
"input": {
"proteins": {
"url": "https://example.com",
"url_expires_at": "2019-12-27T18:11:19.117Z"
},
"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"
}
},
"livemode": true,
"progress": {
"num_proteins_failed": 0,
"num_proteins_screened": 0,
"total_proteins_to_screen": 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"
}