boltz-api 0.43.0 → 0.44.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/package.json +1 -1
- package/resources/predictions/index.d.mts +1 -1
- package/resources/predictions/index.d.mts.map +1 -1
- package/resources/predictions/index.d.ts +1 -1
- package/resources/predictions/index.d.ts.map +1 -1
- package/resources/predictions/index.js.map +1 -1
- package/resources/predictions/index.mjs.map +1 -1
- package/resources/predictions/predictions.d.mts +2 -2
- package/resources/predictions/predictions.d.mts.map +1 -1
- package/resources/predictions/predictions.d.ts +2 -2
- package/resources/predictions/predictions.d.ts.map +1 -1
- package/resources/predictions/predictions.js.map +1 -1
- package/resources/predictions/predictions.mjs.map +1 -1
- package/resources/predictions/structure-and-binding.d.mts +597 -1
- package/resources/predictions/structure-and-binding.d.mts.map +1 -1
- package/resources/predictions/structure-and-binding.d.ts +597 -1
- package/resources/predictions/structure-and-binding.d.ts.map +1 -1
- package/resources/predictions/structure-and-binding.js +30 -0
- package/resources/predictions/structure-and-binding.js.map +1 -1
- package/resources/predictions/structure-and-binding.mjs +30 -0
- package/resources/predictions/structure-and-binding.mjs.map +1 -1
- package/resources/small-molecule/design.d.mts +11 -0
- package/resources/small-molecule/design.d.mts.map +1 -1
- package/resources/small-molecule/design.d.ts +11 -0
- package/resources/small-molecule/design.d.ts.map +1 -1
- package/resources/small-molecule/library-screen.d.mts +11 -0
- package/resources/small-molecule/library-screen.d.mts.map +1 -1
- package/resources/small-molecule/library-screen.d.ts +11 -0
- package/resources/small-molecule/library-screen.d.ts.map +1 -1
- package/src/resources/predictions/index.ts +2 -0
- package/src/resources/predictions/predictions.ts +4 -0
- package/src/resources/predictions/structure-and-binding.ts +731 -0
- package/src/resources/small-molecule/design.ts +14 -0
- package/src/resources/small-molecule/library-screen.ts +14 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -131,6 +131,40 @@ export class StructureAndBinding extends APIResource {
|
|
|
131
131
|
): APIPromise<StructureAndBindingStartResponse> {
|
|
132
132
|
return this._client.post('/compute/v1/predictions/structure-and-binding', { body, ...options });
|
|
133
133
|
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Returns the total token count for a prospective Boltz2 complex along with the
|
|
137
|
+
* maximum token count the caller's compute config will accept. Pure introspection
|
|
138
|
+
* — never rejects when the complex is too large; still rejects on malformed inputs
|
|
139
|
+
* the model could not interpret. Use the sandbox prediction endpoint if you need
|
|
140
|
+
* the cap enforced.
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* ```ts
|
|
144
|
+
* const response =
|
|
145
|
+
* await client.predictions.structureAndBinding.tokenCount({
|
|
146
|
+
* input: {
|
|
147
|
+
* entities: [
|
|
148
|
+
* {
|
|
149
|
+
* chain_ids: ['string'],
|
|
150
|
+
* type: 'protein',
|
|
151
|
+
* value: 'value',
|
|
152
|
+
* },
|
|
153
|
+
* ],
|
|
154
|
+
* },
|
|
155
|
+
* model: 'boltz-2.1',
|
|
156
|
+
* });
|
|
157
|
+
* ```
|
|
158
|
+
*/
|
|
159
|
+
tokenCount(
|
|
160
|
+
body: StructureAndBindingTokenCountParams,
|
|
161
|
+
options?: RequestOptions,
|
|
162
|
+
): APIPromise<StructureAndBindingTokenCountResponse> {
|
|
163
|
+
return this._client.post('/compute/v1/predictions/structure-and-binding/token-count', {
|
|
164
|
+
body,
|
|
165
|
+
...options,
|
|
166
|
+
});
|
|
167
|
+
}
|
|
134
168
|
}
|
|
135
169
|
|
|
136
170
|
export type StructureAndBindingListResponsesCursorPage = CursorPage<StructureAndBindingListResponse>;
|
|
@@ -830,6 +864,8 @@ export namespace StructureAndBindingRetrieveResponse {
|
|
|
830
864
|
metrics: AllSampleResult.Metrics;
|
|
831
865
|
|
|
832
866
|
structure: AllSampleResult.Structure;
|
|
867
|
+
|
|
868
|
+
ligand_structure?: AllSampleResult.LigandStructure;
|
|
833
869
|
}
|
|
834
870
|
|
|
835
871
|
export namespace AllSampleResult {
|
|
@@ -891,12 +927,26 @@ export namespace StructureAndBindingRetrieveResponse {
|
|
|
891
927
|
*/
|
|
892
928
|
url_expires_at: string;
|
|
893
929
|
}
|
|
930
|
+
|
|
931
|
+
export interface LigandStructure {
|
|
932
|
+
/**
|
|
933
|
+
* URL to download the file
|
|
934
|
+
*/
|
|
935
|
+
url: string;
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* When the presigned URL expires
|
|
939
|
+
*/
|
|
940
|
+
url_expires_at: string;
|
|
941
|
+
}
|
|
894
942
|
}
|
|
895
943
|
|
|
896
944
|
export interface BestSample {
|
|
897
945
|
metrics: BestSample.Metrics;
|
|
898
946
|
|
|
899
947
|
structure: BestSample.Structure;
|
|
948
|
+
|
|
949
|
+
ligand_structure?: BestSample.LigandStructure;
|
|
900
950
|
}
|
|
901
951
|
|
|
902
952
|
export namespace BestSample {
|
|
@@ -958,6 +1008,18 @@ export namespace StructureAndBindingRetrieveResponse {
|
|
|
958
1008
|
*/
|
|
959
1009
|
url_expires_at: string;
|
|
960
1010
|
}
|
|
1011
|
+
|
|
1012
|
+
export interface LigandStructure {
|
|
1013
|
+
/**
|
|
1014
|
+
* URL to download the file
|
|
1015
|
+
*/
|
|
1016
|
+
url: string;
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* When the presigned URL expires
|
|
1020
|
+
*/
|
|
1021
|
+
url_expires_at: string;
|
|
1022
|
+
}
|
|
961
1023
|
}
|
|
962
1024
|
|
|
963
1025
|
export interface Archive {
|
|
@@ -1833,6 +1895,8 @@ export namespace StructureAndBindingStartResponse {
|
|
|
1833
1895
|
metrics: AllSampleResult.Metrics;
|
|
1834
1896
|
|
|
1835
1897
|
structure: AllSampleResult.Structure;
|
|
1898
|
+
|
|
1899
|
+
ligand_structure?: AllSampleResult.LigandStructure;
|
|
1836
1900
|
}
|
|
1837
1901
|
|
|
1838
1902
|
export namespace AllSampleResult {
|
|
@@ -1894,12 +1958,26 @@ export namespace StructureAndBindingStartResponse {
|
|
|
1894
1958
|
*/
|
|
1895
1959
|
url_expires_at: string;
|
|
1896
1960
|
}
|
|
1961
|
+
|
|
1962
|
+
export interface LigandStructure {
|
|
1963
|
+
/**
|
|
1964
|
+
* URL to download the file
|
|
1965
|
+
*/
|
|
1966
|
+
url: string;
|
|
1967
|
+
|
|
1968
|
+
/**
|
|
1969
|
+
* When the presigned URL expires
|
|
1970
|
+
*/
|
|
1971
|
+
url_expires_at: string;
|
|
1972
|
+
}
|
|
1897
1973
|
}
|
|
1898
1974
|
|
|
1899
1975
|
export interface BestSample {
|
|
1900
1976
|
metrics: BestSample.Metrics;
|
|
1901
1977
|
|
|
1902
1978
|
structure: BestSample.Structure;
|
|
1979
|
+
|
|
1980
|
+
ligand_structure?: BestSample.LigandStructure;
|
|
1903
1981
|
}
|
|
1904
1982
|
|
|
1905
1983
|
export namespace BestSample {
|
|
@@ -1961,6 +2039,18 @@ export namespace StructureAndBindingStartResponse {
|
|
|
1961
2039
|
*/
|
|
1962
2040
|
url_expires_at: string;
|
|
1963
2041
|
}
|
|
2042
|
+
|
|
2043
|
+
export interface LigandStructure {
|
|
2044
|
+
/**
|
|
2045
|
+
* URL to download the file
|
|
2046
|
+
*/
|
|
2047
|
+
url: string;
|
|
2048
|
+
|
|
2049
|
+
/**
|
|
2050
|
+
* When the presigned URL expires
|
|
2051
|
+
*/
|
|
2052
|
+
url_expires_at: string;
|
|
2053
|
+
}
|
|
1964
2054
|
}
|
|
1965
2055
|
|
|
1966
2056
|
export interface Archive {
|
|
@@ -2001,6 +2091,20 @@ export namespace StructureAndBindingStartResponse {
|
|
|
2001
2091
|
}
|
|
2002
2092
|
}
|
|
2003
2093
|
|
|
2094
|
+
export interface StructureAndBindingTokenCountResponse {
|
|
2095
|
+
/**
|
|
2096
|
+
* Maximum token count the caller's compute config will accept for a sandbox
|
|
2097
|
+
* prediction.
|
|
2098
|
+
*/
|
|
2099
|
+
max_token_count: number;
|
|
2100
|
+
|
|
2101
|
+
/**
|
|
2102
|
+
* Total token count for the complex, after applying the affinity model's internal
|
|
2103
|
+
* crop when relevant.
|
|
2104
|
+
*/
|
|
2105
|
+
total_token_count: number;
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2004
2108
|
export interface StructureAndBindingRetrieveParams {
|
|
2005
2109
|
/**
|
|
2006
2110
|
* Workspace ID. Only used with admin API keys. Ignored (or validated) for
|
|
@@ -3268,6 +3372,631 @@ export namespace StructureAndBindingStartParams {
|
|
|
3268
3372
|
}
|
|
3269
3373
|
}
|
|
3270
3374
|
|
|
3375
|
+
export interface StructureAndBindingTokenCountParams {
|
|
3376
|
+
input: StructureAndBindingTokenCountParams.Input;
|
|
3377
|
+
|
|
3378
|
+
/**
|
|
3379
|
+
* Model to use for prediction
|
|
3380
|
+
*/
|
|
3381
|
+
model: 'boltz-2.1';
|
|
3382
|
+
|
|
3383
|
+
/**
|
|
3384
|
+
* Client-provided key to prevent duplicate submissions on retries
|
|
3385
|
+
*/
|
|
3386
|
+
idempotency_key?: string;
|
|
3387
|
+
|
|
3388
|
+
/**
|
|
3389
|
+
* Target workspace ID (admin keys only; ignored for workspace keys)
|
|
3390
|
+
*/
|
|
3391
|
+
workspace_id?: string;
|
|
3392
|
+
}
|
|
3393
|
+
|
|
3394
|
+
export namespace StructureAndBindingTokenCountParams {
|
|
3395
|
+
export interface Input {
|
|
3396
|
+
/**
|
|
3397
|
+
* Entities (proteins, RNA, DNA, ligands) forming the complex to predict. Order
|
|
3398
|
+
* determines chain assignment.
|
|
3399
|
+
*/
|
|
3400
|
+
entities: Array<
|
|
3401
|
+
| Input.Boltz2ProteinEntity
|
|
3402
|
+
| Input.RnaEntity
|
|
3403
|
+
| Input.DnaEntity
|
|
3404
|
+
| Input.LigandCcdEntity
|
|
3405
|
+
| Input.LigandSmilesEntity
|
|
3406
|
+
>;
|
|
3407
|
+
|
|
3408
|
+
binding?: Input.LigandProteinBinding | Input.ProteinProteinBinding;
|
|
3409
|
+
|
|
3410
|
+
/**
|
|
3411
|
+
* Bond constraints between atoms. Atom-level ligand references currently support
|
|
3412
|
+
* ligand_ccd only; ligand_smiles is unsupported.
|
|
3413
|
+
*/
|
|
3414
|
+
bonds?: Array<Input.Bond>;
|
|
3415
|
+
|
|
3416
|
+
/**
|
|
3417
|
+
* Structural constraints (pocket and contact). Atom-level ligand references
|
|
3418
|
+
* currently support ligand_ccd only; ligand_smiles is unsupported.
|
|
3419
|
+
*/
|
|
3420
|
+
constraints?: Array<Input.PocketConstraint | Input.ContactConstraint>;
|
|
3421
|
+
|
|
3422
|
+
model_options?: Input.ModelOptions;
|
|
3423
|
+
|
|
3424
|
+
/**
|
|
3425
|
+
* Number of structure samples to generate
|
|
3426
|
+
*/
|
|
3427
|
+
num_samples?: number;
|
|
3428
|
+
|
|
3429
|
+
/**
|
|
3430
|
+
* Template structure files to guide protein-chain prediction. Supports up to 4 CIF
|
|
3431
|
+
* or PDB templates from HTTPS URLs or base64 uploads. Use template_chains to map
|
|
3432
|
+
* request chains to template-file chains.
|
|
3433
|
+
*/
|
|
3434
|
+
templates?: Array<Input.Template>;
|
|
3435
|
+
}
|
|
3436
|
+
|
|
3437
|
+
export namespace Input {
|
|
3438
|
+
export interface Boltz2ProteinEntity {
|
|
3439
|
+
/**
|
|
3440
|
+
* Chain IDs for this entity
|
|
3441
|
+
*/
|
|
3442
|
+
chain_ids: Array<string>;
|
|
3443
|
+
|
|
3444
|
+
type: 'protein';
|
|
3445
|
+
|
|
3446
|
+
/**
|
|
3447
|
+
* Amino acid sequence (one-letter codes)
|
|
3448
|
+
*/
|
|
3449
|
+
value: string;
|
|
3450
|
+
|
|
3451
|
+
/**
|
|
3452
|
+
* Whether the sequence is cyclic
|
|
3453
|
+
*/
|
|
3454
|
+
cyclic?: boolean;
|
|
3455
|
+
|
|
3456
|
+
/**
|
|
3457
|
+
* CCD post-translational modifications. Optional; defaults to an empty list when
|
|
3458
|
+
* omitted. SMILES modifications are not supported.
|
|
3459
|
+
*/
|
|
3460
|
+
modifications?: Array<Boltz2ProteinEntity.Modification>;
|
|
3461
|
+
|
|
3462
|
+
/**
|
|
3463
|
+
* Optional protein MSA control. Omit msa on all protein entities to use automatic
|
|
3464
|
+
* MSA generation. Use custom for user-provided A3M/CSV files, or empty for
|
|
3465
|
+
* single-sequence mode. Custom MSA and automatic MSA cannot be mixed in one
|
|
3466
|
+
* request.
|
|
3467
|
+
*/
|
|
3468
|
+
msa?: Boltz2ProteinEntity.Boltz2CustomMsa | Boltz2ProteinEntity.Boltz2EmptyMsa;
|
|
3469
|
+
}
|
|
3470
|
+
|
|
3471
|
+
export namespace Boltz2ProteinEntity {
|
|
3472
|
+
/**
|
|
3473
|
+
* Polymer residue modification. Only CCD codes are supported; SMILES modifications
|
|
3474
|
+
* are not accepted.
|
|
3475
|
+
*/
|
|
3476
|
+
export interface Modification {
|
|
3477
|
+
/**
|
|
3478
|
+
* 0-based index of the residue to modify
|
|
3479
|
+
*/
|
|
3480
|
+
residue_index: number;
|
|
3481
|
+
|
|
3482
|
+
/**
|
|
3483
|
+
* Modification format. Only CCD polymer modifications are supported.
|
|
3484
|
+
*/
|
|
3485
|
+
type: 'ccd';
|
|
3486
|
+
|
|
3487
|
+
/**
|
|
3488
|
+
* CCD code from RCSB PDB (e.g. 'MSE' for selenomethionine, 'SEP' for
|
|
3489
|
+
* phosphoserine)
|
|
3490
|
+
*/
|
|
3491
|
+
value: string;
|
|
3492
|
+
}
|
|
3493
|
+
|
|
3494
|
+
/**
|
|
3495
|
+
* Use a user-provided MSA for this protein entity. If any protein entity uses a
|
|
3496
|
+
* custom MSA, every other protein entity must use either custom or empty MSA;
|
|
3497
|
+
* automatic MSA generation cannot be mixed with custom MSAs in the same request.
|
|
3498
|
+
*/
|
|
3499
|
+
export interface Boltz2CustomMsa {
|
|
3500
|
+
/**
|
|
3501
|
+
* Custom MSA file format. Base64 uploads must use media_type text/x-a3m for A3M or
|
|
3502
|
+
* text/csv for CSV.
|
|
3503
|
+
*/
|
|
3504
|
+
format: 'a3m' | 'csv';
|
|
3505
|
+
|
|
3506
|
+
/**
|
|
3507
|
+
* How to provide a file to the API
|
|
3508
|
+
*/
|
|
3509
|
+
source: Boltz2CustomMsa.URLSource | Boltz2CustomMsa.Base64Source;
|
|
3510
|
+
|
|
3511
|
+
type: 'custom';
|
|
3512
|
+
}
|
|
3513
|
+
|
|
3514
|
+
export namespace Boltz2CustomMsa {
|
|
3515
|
+
export interface URLSource {
|
|
3516
|
+
type: 'url';
|
|
3517
|
+
|
|
3518
|
+
url: string;
|
|
3519
|
+
}
|
|
3520
|
+
|
|
3521
|
+
export interface Base64Source {
|
|
3522
|
+
/**
|
|
3523
|
+
* Base64-encoded file contents
|
|
3524
|
+
*/
|
|
3525
|
+
data: string;
|
|
3526
|
+
|
|
3527
|
+
/**
|
|
3528
|
+
* MIME type (e.g., text/csv)
|
|
3529
|
+
*/
|
|
3530
|
+
media_type: string;
|
|
3531
|
+
|
|
3532
|
+
type: 'base64';
|
|
3533
|
+
}
|
|
3534
|
+
}
|
|
3535
|
+
|
|
3536
|
+
/**
|
|
3537
|
+
* Run this protein entity in single-sequence mode without an MSA. Use this for
|
|
3538
|
+
* chains that should not use automatic MSA generation, including non-homologous
|
|
3539
|
+
* chains in a request that also includes custom MSAs.
|
|
3540
|
+
*/
|
|
3541
|
+
export interface Boltz2EmptyMsa {
|
|
3542
|
+
type: 'empty';
|
|
3543
|
+
}
|
|
3544
|
+
}
|
|
3545
|
+
|
|
3546
|
+
export interface RnaEntity {
|
|
3547
|
+
/**
|
|
3548
|
+
* Chain IDs for this entity
|
|
3549
|
+
*/
|
|
3550
|
+
chain_ids: Array<string>;
|
|
3551
|
+
|
|
3552
|
+
type: 'rna';
|
|
3553
|
+
|
|
3554
|
+
/**
|
|
3555
|
+
* RNA nucleotide sequence (A, C, G, U, N)
|
|
3556
|
+
*/
|
|
3557
|
+
value: string;
|
|
3558
|
+
|
|
3559
|
+
/**
|
|
3560
|
+
* Whether the sequence is cyclic
|
|
3561
|
+
*/
|
|
3562
|
+
cyclic?: boolean;
|
|
3563
|
+
|
|
3564
|
+
/**
|
|
3565
|
+
* CCD chemical modifications. Optional; defaults to an empty list when omitted.
|
|
3566
|
+
* SMILES modifications are not supported.
|
|
3567
|
+
*/
|
|
3568
|
+
modifications?: Array<RnaEntity.Modification>;
|
|
3569
|
+
}
|
|
3570
|
+
|
|
3571
|
+
export namespace RnaEntity {
|
|
3572
|
+
/**
|
|
3573
|
+
* Polymer residue modification. Only CCD codes are supported; SMILES modifications
|
|
3574
|
+
* are not accepted.
|
|
3575
|
+
*/
|
|
3576
|
+
export interface Modification {
|
|
3577
|
+
/**
|
|
3578
|
+
* 0-based index of the residue to modify
|
|
3579
|
+
*/
|
|
3580
|
+
residue_index: number;
|
|
3581
|
+
|
|
3582
|
+
/**
|
|
3583
|
+
* Modification format. Only CCD polymer modifications are supported.
|
|
3584
|
+
*/
|
|
3585
|
+
type: 'ccd';
|
|
3586
|
+
|
|
3587
|
+
/**
|
|
3588
|
+
* CCD code from RCSB PDB (e.g. 'MSE' for selenomethionine, 'SEP' for
|
|
3589
|
+
* phosphoserine)
|
|
3590
|
+
*/
|
|
3591
|
+
value: string;
|
|
3592
|
+
}
|
|
3593
|
+
}
|
|
3594
|
+
|
|
3595
|
+
export interface DnaEntity {
|
|
3596
|
+
/**
|
|
3597
|
+
* Chain IDs for this entity
|
|
3598
|
+
*/
|
|
3599
|
+
chain_ids: Array<string>;
|
|
3600
|
+
|
|
3601
|
+
type: 'dna';
|
|
3602
|
+
|
|
3603
|
+
/**
|
|
3604
|
+
* DNA nucleotide sequence (A, C, G, T, N)
|
|
3605
|
+
*/
|
|
3606
|
+
value: string;
|
|
3607
|
+
|
|
3608
|
+
/**
|
|
3609
|
+
* Whether the sequence is cyclic
|
|
3610
|
+
*/
|
|
3611
|
+
cyclic?: boolean;
|
|
3612
|
+
|
|
3613
|
+
/**
|
|
3614
|
+
* CCD chemical modifications. Optional; defaults to an empty list when omitted.
|
|
3615
|
+
* SMILES modifications are not supported.
|
|
3616
|
+
*/
|
|
3617
|
+
modifications?: Array<DnaEntity.Modification>;
|
|
3618
|
+
}
|
|
3619
|
+
|
|
3620
|
+
export namespace DnaEntity {
|
|
3621
|
+
/**
|
|
3622
|
+
* Polymer residue modification. Only CCD codes are supported; SMILES modifications
|
|
3623
|
+
* are not accepted.
|
|
3624
|
+
*/
|
|
3625
|
+
export interface Modification {
|
|
3626
|
+
/**
|
|
3627
|
+
* 0-based index of the residue to modify
|
|
3628
|
+
*/
|
|
3629
|
+
residue_index: number;
|
|
3630
|
+
|
|
3631
|
+
/**
|
|
3632
|
+
* Modification format. Only CCD polymer modifications are supported.
|
|
3633
|
+
*/
|
|
3634
|
+
type: 'ccd';
|
|
3635
|
+
|
|
3636
|
+
/**
|
|
3637
|
+
* CCD code from RCSB PDB (e.g. 'MSE' for selenomethionine, 'SEP' for
|
|
3638
|
+
* phosphoserine)
|
|
3639
|
+
*/
|
|
3640
|
+
value: string;
|
|
3641
|
+
}
|
|
3642
|
+
}
|
|
3643
|
+
|
|
3644
|
+
export interface LigandCcdEntity {
|
|
3645
|
+
/**
|
|
3646
|
+
* Chain IDs for this ligand
|
|
3647
|
+
*/
|
|
3648
|
+
chain_ids: Array<string>;
|
|
3649
|
+
|
|
3650
|
+
type: 'ligand_ccd';
|
|
3651
|
+
|
|
3652
|
+
/**
|
|
3653
|
+
* CCD code (e.g., ATP, ADP)
|
|
3654
|
+
*/
|
|
3655
|
+
value: string;
|
|
3656
|
+
}
|
|
3657
|
+
|
|
3658
|
+
export interface LigandSmilesEntity {
|
|
3659
|
+
/**
|
|
3660
|
+
* Chain IDs for this ligand
|
|
3661
|
+
*/
|
|
3662
|
+
chain_ids: Array<string>;
|
|
3663
|
+
|
|
3664
|
+
type: 'ligand_smiles';
|
|
3665
|
+
|
|
3666
|
+
/**
|
|
3667
|
+
* SMILES string representing the ligand
|
|
3668
|
+
*/
|
|
3669
|
+
value: string;
|
|
3670
|
+
}
|
|
3671
|
+
|
|
3672
|
+
export interface LigandProteinBinding {
|
|
3673
|
+
/**
|
|
3674
|
+
* Chain ID of the ligand binder (must have exactly 1 copy, <50 atoms, and only
|
|
3675
|
+
* ligands+proteins in entities)
|
|
3676
|
+
*/
|
|
3677
|
+
binder_chain_id: string;
|
|
3678
|
+
|
|
3679
|
+
type: 'ligand_protein_binding';
|
|
3680
|
+
}
|
|
3681
|
+
|
|
3682
|
+
export interface ProteinProteinBinding {
|
|
3683
|
+
/**
|
|
3684
|
+
* Chain IDs of the protein binders
|
|
3685
|
+
*/
|
|
3686
|
+
binder_chain_ids: Array<string>;
|
|
3687
|
+
|
|
3688
|
+
type: 'protein_protein_binding';
|
|
3689
|
+
}
|
|
3690
|
+
|
|
3691
|
+
/**
|
|
3692
|
+
* Bond between two atoms. Atom-level ligand references currently support
|
|
3693
|
+
* ligand_ccd entities only; ligand_smiles is unsupported.
|
|
3694
|
+
*/
|
|
3695
|
+
export interface Bond {
|
|
3696
|
+
/**
|
|
3697
|
+
* Ligand atom reference. Atom-level ligand references currently support ligand_ccd
|
|
3698
|
+
* entities only; ligand_smiles is unsupported.
|
|
3699
|
+
*/
|
|
3700
|
+
atom1: Bond.LigandAtom | Bond.PolymerAtom;
|
|
3701
|
+
|
|
3702
|
+
/**
|
|
3703
|
+
* Ligand atom reference. Atom-level ligand references currently support ligand_ccd
|
|
3704
|
+
* entities only; ligand_smiles is unsupported.
|
|
3705
|
+
*/
|
|
3706
|
+
atom2: Bond.LigandAtom | Bond.PolymerAtom;
|
|
3707
|
+
}
|
|
3708
|
+
|
|
3709
|
+
export namespace Bond {
|
|
3710
|
+
/**
|
|
3711
|
+
* Ligand atom reference. Atom-level ligand references currently support ligand_ccd
|
|
3712
|
+
* entities only; ligand_smiles is unsupported.
|
|
3713
|
+
*/
|
|
3714
|
+
export interface LigandAtom {
|
|
3715
|
+
/**
|
|
3716
|
+
* Standardized atom name (verifiable in CIF file on RCSB). Atom-level references
|
|
3717
|
+
* to ligand_smiles entities are currently unsupported; use ligand_ccd instead.
|
|
3718
|
+
*/
|
|
3719
|
+
atom_name: string;
|
|
3720
|
+
|
|
3721
|
+
/**
|
|
3722
|
+
* Chain ID containing the atom
|
|
3723
|
+
*/
|
|
3724
|
+
chain_id: string;
|
|
3725
|
+
|
|
3726
|
+
type: 'ligand_atom';
|
|
3727
|
+
}
|
|
3728
|
+
|
|
3729
|
+
export interface PolymerAtom {
|
|
3730
|
+
/**
|
|
3731
|
+
* Standardized atom name (verifiable in CIF file on RCSB)
|
|
3732
|
+
*/
|
|
3733
|
+
atom_name: string;
|
|
3734
|
+
|
|
3735
|
+
/**
|
|
3736
|
+
* Chain ID containing the atom
|
|
3737
|
+
*/
|
|
3738
|
+
chain_id: string;
|
|
3739
|
+
|
|
3740
|
+
/**
|
|
3741
|
+
* 0-based residue index
|
|
3742
|
+
*/
|
|
3743
|
+
residue_index: number;
|
|
3744
|
+
|
|
3745
|
+
type: 'polymer_atom';
|
|
3746
|
+
}
|
|
3747
|
+
|
|
3748
|
+
/**
|
|
3749
|
+
* Ligand atom reference. Atom-level ligand references currently support ligand_ccd
|
|
3750
|
+
* entities only; ligand_smiles is unsupported.
|
|
3751
|
+
*/
|
|
3752
|
+
export interface LigandAtom {
|
|
3753
|
+
/**
|
|
3754
|
+
* Standardized atom name (verifiable in CIF file on RCSB). Atom-level references
|
|
3755
|
+
* to ligand_smiles entities are currently unsupported; use ligand_ccd instead.
|
|
3756
|
+
*/
|
|
3757
|
+
atom_name: string;
|
|
3758
|
+
|
|
3759
|
+
/**
|
|
3760
|
+
* Chain ID containing the atom
|
|
3761
|
+
*/
|
|
3762
|
+
chain_id: string;
|
|
3763
|
+
|
|
3764
|
+
type: 'ligand_atom';
|
|
3765
|
+
}
|
|
3766
|
+
|
|
3767
|
+
export interface PolymerAtom {
|
|
3768
|
+
/**
|
|
3769
|
+
* Standardized atom name (verifiable in CIF file on RCSB)
|
|
3770
|
+
*/
|
|
3771
|
+
atom_name: string;
|
|
3772
|
+
|
|
3773
|
+
/**
|
|
3774
|
+
* Chain ID containing the atom
|
|
3775
|
+
*/
|
|
3776
|
+
chain_id: string;
|
|
3777
|
+
|
|
3778
|
+
/**
|
|
3779
|
+
* 0-based residue index
|
|
3780
|
+
*/
|
|
3781
|
+
residue_index: number;
|
|
3782
|
+
|
|
3783
|
+
type: 'polymer_atom';
|
|
3784
|
+
}
|
|
3785
|
+
}
|
|
3786
|
+
|
|
3787
|
+
/**
|
|
3788
|
+
* Constrains the binder to interact with specific pocket residues on the target.
|
|
3789
|
+
*/
|
|
3790
|
+
export interface PocketConstraint {
|
|
3791
|
+
/**
|
|
3792
|
+
* Chain ID of the binder molecule
|
|
3793
|
+
*/
|
|
3794
|
+
binder_chain_id: string;
|
|
3795
|
+
|
|
3796
|
+
/**
|
|
3797
|
+
* Binding pocket residues keyed by chain ID. Each key is a chain ID (e.g. "A") and
|
|
3798
|
+
* the value is an array of 0-indexed residue indices that define the pocket on
|
|
3799
|
+
* that chain.
|
|
3800
|
+
*/
|
|
3801
|
+
contact_residues: { [key: string]: Array<number> };
|
|
3802
|
+
|
|
3803
|
+
/**
|
|
3804
|
+
* Maximum allowed distance in Angstroms between binder and pocket residues.
|
|
3805
|
+
* Typical range: 4-8 A.
|
|
3806
|
+
*/
|
|
3807
|
+
max_distance_angstrom: number;
|
|
3808
|
+
|
|
3809
|
+
type: 'pocket';
|
|
3810
|
+
|
|
3811
|
+
/**
|
|
3812
|
+
* Whether to force the constraint
|
|
3813
|
+
*/
|
|
3814
|
+
force?: boolean;
|
|
3815
|
+
}
|
|
3816
|
+
|
|
3817
|
+
/**
|
|
3818
|
+
* Contact constraint between two tokens. Atom-level ligand references currently
|
|
3819
|
+
* support ligand_ccd entities only; ligand_smiles is unsupported.
|
|
3820
|
+
*/
|
|
3821
|
+
export interface ContactConstraint {
|
|
3822
|
+
/**
|
|
3823
|
+
* Maximum distance in Angstroms
|
|
3824
|
+
*/
|
|
3825
|
+
max_distance_angstrom: number;
|
|
3826
|
+
|
|
3827
|
+
/**
|
|
3828
|
+
* Ligand contact token. Atom-level ligand references currently support ligand_ccd
|
|
3829
|
+
* entities only; ligand_smiles is unsupported.
|
|
3830
|
+
*/
|
|
3831
|
+
token1: ContactConstraint.PolymerContactToken | ContactConstraint.LigandContactToken;
|
|
3832
|
+
|
|
3833
|
+
/**
|
|
3834
|
+
* Ligand contact token. Atom-level ligand references currently support ligand_ccd
|
|
3835
|
+
* entities only; ligand_smiles is unsupported.
|
|
3836
|
+
*/
|
|
3837
|
+
token2: ContactConstraint.PolymerContactToken | ContactConstraint.LigandContactToken;
|
|
3838
|
+
|
|
3839
|
+
type: 'contact';
|
|
3840
|
+
|
|
3841
|
+
/**
|
|
3842
|
+
* Whether to force the constraint
|
|
3843
|
+
*/
|
|
3844
|
+
force?: boolean;
|
|
3845
|
+
}
|
|
3846
|
+
|
|
3847
|
+
export namespace ContactConstraint {
|
|
3848
|
+
export interface PolymerContactToken {
|
|
3849
|
+
/**
|
|
3850
|
+
* Chain ID
|
|
3851
|
+
*/
|
|
3852
|
+
chain_id: string;
|
|
3853
|
+
|
|
3854
|
+
/**
|
|
3855
|
+
* 0-based residue index
|
|
3856
|
+
*/
|
|
3857
|
+
residue_index: number;
|
|
3858
|
+
|
|
3859
|
+
type: 'polymer_contact';
|
|
3860
|
+
}
|
|
3861
|
+
|
|
3862
|
+
/**
|
|
3863
|
+
* Ligand contact token. Atom-level ligand references currently support ligand_ccd
|
|
3864
|
+
* entities only; ligand_smiles is unsupported.
|
|
3865
|
+
*/
|
|
3866
|
+
export interface LigandContactToken {
|
|
3867
|
+
/**
|
|
3868
|
+
* Atom name. Atom-level references to ligand_smiles entities are currently
|
|
3869
|
+
* unsupported; use ligand_ccd instead.
|
|
3870
|
+
*/
|
|
3871
|
+
atom_name: string;
|
|
3872
|
+
|
|
3873
|
+
/**
|
|
3874
|
+
* Chain ID
|
|
3875
|
+
*/
|
|
3876
|
+
chain_id: string;
|
|
3877
|
+
|
|
3878
|
+
type: 'ligand_contact';
|
|
3879
|
+
}
|
|
3880
|
+
|
|
3881
|
+
export interface PolymerContactToken {
|
|
3882
|
+
/**
|
|
3883
|
+
* Chain ID
|
|
3884
|
+
*/
|
|
3885
|
+
chain_id: string;
|
|
3886
|
+
|
|
3887
|
+
/**
|
|
3888
|
+
* 0-based residue index
|
|
3889
|
+
*/
|
|
3890
|
+
residue_index: number;
|
|
3891
|
+
|
|
3892
|
+
type: 'polymer_contact';
|
|
3893
|
+
}
|
|
3894
|
+
|
|
3895
|
+
/**
|
|
3896
|
+
* Ligand contact token. Atom-level ligand references currently support ligand_ccd
|
|
3897
|
+
* entities only; ligand_smiles is unsupported.
|
|
3898
|
+
*/
|
|
3899
|
+
export interface LigandContactToken {
|
|
3900
|
+
/**
|
|
3901
|
+
* Atom name. Atom-level references to ligand_smiles entities are currently
|
|
3902
|
+
* unsupported; use ligand_ccd instead.
|
|
3903
|
+
*/
|
|
3904
|
+
atom_name: string;
|
|
3905
|
+
|
|
3906
|
+
/**
|
|
3907
|
+
* Chain ID
|
|
3908
|
+
*/
|
|
3909
|
+
chain_id: string;
|
|
3910
|
+
|
|
3911
|
+
type: 'ligand_contact';
|
|
3912
|
+
}
|
|
3913
|
+
}
|
|
3914
|
+
|
|
3915
|
+
export interface ModelOptions {
|
|
3916
|
+
/**
|
|
3917
|
+
* The number of recycling steps to use for prediction. Default is 3.
|
|
3918
|
+
*/
|
|
3919
|
+
recycling_steps?: number;
|
|
3920
|
+
|
|
3921
|
+
/**
|
|
3922
|
+
* The number of sampling steps to use for prediction. Default is 200.
|
|
3923
|
+
*/
|
|
3924
|
+
sampling_steps?: number;
|
|
3925
|
+
|
|
3926
|
+
/**
|
|
3927
|
+
* Diffusion step scale (temperature). Controls sampling diversity — higher values
|
|
3928
|
+
* produce more varied structures. Default is 1.638.
|
|
3929
|
+
*/
|
|
3930
|
+
step_scale?: number;
|
|
3931
|
+
}
|
|
3932
|
+
|
|
3933
|
+
/**
|
|
3934
|
+
* Template structure used as an inference-time guide for Boltz-2.1 protein-chain
|
|
3935
|
+
* geometry. Provide a CIF or PDB file from an HTTPS URL or base64 upload.
|
|
3936
|
+
*/
|
|
3937
|
+
export interface Template {
|
|
3938
|
+
/**
|
|
3939
|
+
* Request-to-template chain mappings. Each input_chain_id and template_chain_id
|
|
3940
|
+
* must be unique within this template.
|
|
3941
|
+
*/
|
|
3942
|
+
template_chains: Array<Template.TemplateChain>;
|
|
3943
|
+
|
|
3944
|
+
/**
|
|
3945
|
+
* How to provide a template structure file. URLs must point to a CIF or PDB file;
|
|
3946
|
+
* base64 uploads must use chemical/x-cif or chemical/x-pdb.
|
|
3947
|
+
*/
|
|
3948
|
+
template_structure: Template.URLSource | Template.TemplateStructureBase64Source;
|
|
3949
|
+
|
|
3950
|
+
/**
|
|
3951
|
+
* Force the template reference potential with this distance threshold in
|
|
3952
|
+
* angstroms. Omit to use the template without force.
|
|
3953
|
+
*/
|
|
3954
|
+
force_threshold_angstroms?: number;
|
|
3955
|
+
}
|
|
3956
|
+
|
|
3957
|
+
export namespace Template {
|
|
3958
|
+
/**
|
|
3959
|
+
* Mapping from one request chain to the corresponding chain in the template
|
|
3960
|
+
* structure file.
|
|
3961
|
+
*/
|
|
3962
|
+
export interface TemplateChain {
|
|
3963
|
+
/**
|
|
3964
|
+
* Chain ID in this prediction request
|
|
3965
|
+
*/
|
|
3966
|
+
input_chain_id: string;
|
|
3967
|
+
|
|
3968
|
+
/**
|
|
3969
|
+
* Corresponding chain ID in the template structure file
|
|
3970
|
+
*/
|
|
3971
|
+
template_chain_id: string;
|
|
3972
|
+
}
|
|
3973
|
+
|
|
3974
|
+
export interface URLSource {
|
|
3975
|
+
type: 'url';
|
|
3976
|
+
|
|
3977
|
+
url: string;
|
|
3978
|
+
}
|
|
3979
|
+
|
|
3980
|
+
export interface TemplateStructureBase64Source {
|
|
3981
|
+
/**
|
|
3982
|
+
* Base64-encoded template structure file contents
|
|
3983
|
+
*/
|
|
3984
|
+
data: string;
|
|
3985
|
+
|
|
3986
|
+
/**
|
|
3987
|
+
* Template structure MIME type
|
|
3988
|
+
*
|
|
3989
|
+
* - `chemical/x-cif` - CIF template structure
|
|
3990
|
+
* - `chemical/x-pdb` - PDB template structure
|
|
3991
|
+
*/
|
|
3992
|
+
media_type: 'chemical/x-cif' | 'chemical/x-pdb';
|
|
3993
|
+
|
|
3994
|
+
type: 'base64';
|
|
3995
|
+
}
|
|
3996
|
+
}
|
|
3997
|
+
}
|
|
3998
|
+
}
|
|
3999
|
+
|
|
3271
4000
|
export declare namespace StructureAndBinding {
|
|
3272
4001
|
export {
|
|
3273
4002
|
type StructureAndBindingRetrieveResponse as StructureAndBindingRetrieveResponse,
|
|
@@ -3275,10 +4004,12 @@ export declare namespace StructureAndBinding {
|
|
|
3275
4004
|
type StructureAndBindingDeleteDataResponse as StructureAndBindingDeleteDataResponse,
|
|
3276
4005
|
type StructureAndBindingEstimateCostResponse as StructureAndBindingEstimateCostResponse,
|
|
3277
4006
|
type StructureAndBindingStartResponse as StructureAndBindingStartResponse,
|
|
4007
|
+
type StructureAndBindingTokenCountResponse as StructureAndBindingTokenCountResponse,
|
|
3278
4008
|
type StructureAndBindingListResponsesCursorPage as StructureAndBindingListResponsesCursorPage,
|
|
3279
4009
|
type StructureAndBindingRetrieveParams as StructureAndBindingRetrieveParams,
|
|
3280
4010
|
type StructureAndBindingListParams as StructureAndBindingListParams,
|
|
3281
4011
|
type StructureAndBindingEstimateCostParams as StructureAndBindingEstimateCostParams,
|
|
3282
4012
|
type StructureAndBindingStartParams as StructureAndBindingStartParams,
|
|
4013
|
+
type StructureAndBindingTokenCountParams as StructureAndBindingTokenCountParams,
|
|
3283
4014
|
};
|
|
3284
4015
|
}
|