bio_tools 0.1.3

Install, run, and inspect computational biology and chemistry tools, e.g. AlphaFold, Boltz, RFdiffusion3, and ProteinMPNN
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
{
  "fields": [
    {
      "name": "job_name",
      "label": "Job name",
      "kind": "text",
      "default": "chai1-demo",
      "required": false,
      "help": "Names the run and its result archive.",
      "options": [],
      "rows": null,
      "minimum": null,
      "maximum": null,
      "step": null,
      "maxlength": null,
      "accept": "",
      "task": "",
      "group": "Input",
      "input_modes": "",
      "molecule_features": ""
    },
    {
      "name": "sequence_molecules",
      "label": "Molecules",
      "kind": "molecule_builder",
      "default": "[{\"type\": \"protein\", \"id\": \"A\", \"sequence\": \"MSTNPKPQRKTKRNTNRRPQDVKFPGG\", \"cyclic\": false, \"modifications\": []}]",
      "required": true,
      "help": "One box per entity. Its name becomes the name of its FASTA record, which is what restraints refer to it by; left blank, entities are named A, B, C\u2026 in order. Proteins, DNA, RNA and SMILES ligands are supported. Use the FASTA mode for glycans.",
      "options": [
        {
          "value": "protein",
          "label": "Protein"
        },
        {
          "value": "ligand",
          "label": "Ligand"
        },
        {
          "value": "dna",
          "label": "DNA"
        },
        {
          "value": "rna",
          "label": "RNA"
        }
      ],
      "rows": null,
      "minimum": null,
      "maximum": null,
      "step": null,
      "maxlength": null,
      "accept": "",
      "task": "",
      "group": "Input",
      "input_modes": "parameters",
      "molecule_features": "id,modifications"
    },
    {
      "name": "input_fasta",
      "label": "Chai FASTA",
      "kind": "textarea",
      "default": ">protein|name=A\nMSTNPKPQRKTKRNTNRRPQDVKFPGG\n",
      "required": true,
      "help": "Native Chai FASTA: >protein|name=A, >dna|name=B, >rna|name=C, >ligand|name=D (SMILES), or >glycan|name=E (CCD glycan syntax). Each entity must have a unique name. Use (CCD) in polymer sequences for modified residues.",
      "options": [],
      "rows": 11,
      "minimum": null,
      "maximum": null,
      "step": null,
      "maxlength": 500000,
      "accept": "",
      "task": "",
      "group": "Input",
      "input_modes": "text",
      "molecule_features": ""
    },
    {
      "name": "input_file",
      "label": "Chai FASTA file",
      "kind": "file",
      "default": "",
      "required": true,
      "help": "Upload a native Chai FASTA file.",
      "options": [],
      "rows": null,
      "minimum": null,
      "maximum": null,
      "step": null,
      "maxlength": 500000,
      "accept": ".fasta,.fa,.faa,.txt",
      "task": "",
      "group": "Input",
      "input_modes": "upload",
      "molecule_features": ""
    },
    {
      "name": "use_esm_embeddings",
      "label": "Use ESM embeddings",
      "kind": "checkbox",
      "default": true,
      "required": false,
      "help": "Upstream default. Disable for a sequence-only ablation.",
      "options": [],
      "rows": null,
      "minimum": null,
      "maximum": null,
      "step": null,
      "maxlength": null,
      "accept": "",
      "task": "",
      "group": "Evolution and templates",
      "input_modes": "",
      "molecule_features": ""
    },
    {
      "name": "use_msa_server",
      "label": "Use public MSA server",
      "kind": "checkbox",
      "default": false,
      "required": false,
      "help": "Ask the ColabFold MMseqs2 server to generate protein MSAs. Requires network access.",
      "options": [],
      "rows": null,
      "minimum": null,
      "maximum": null,
      "step": null,
      "maxlength": null,
      "accept": "",
      "task": "",
      "group": "Evolution and templates",
      "input_modes": "",
      "molecule_features": ""
    },
    {
      "name": "msa_server_url",
      "label": "MSA server URL",
      "kind": "text",
      "default": "https://api.colabfold.com",
      "required": false,
      "help": "ColabFold MSA endpoint; used only when the MSA server is enabled.",
      "options": [],
      "rows": null,
      "minimum": null,
      "maximum": null,
      "step": null,
      "maxlength": null,
      "accept": "",
      "task": "",
      "group": "Evolution and templates",
      "input_modes": "",
      "molecule_features": ""
    },
    {
      "name": "msa_directory",
      "label": "Local aligned.pqt directory",
      "kind": "text",
      "default": "",
      "required": false,
      "help": "Existing compute-node directory with one <sequence SHA256>.aligned.pqt per protein, as documented in the official MSA example. Exclusive with the MSA server.",
      "options": [],
      "rows": null,
      "minimum": null,
      "maximum": null,
      "step": null,
      "maxlength": null,
      "accept": "",
      "task": "",
      "group": "Evolution and templates",
      "input_modes": "",
      "molecule_features": ""
    },
    {
      "name": "use_example_msas",
      "label": "Use supplied example MSAs",
      "kind": "checkbox",
      "default": false,
      "required": false,
      "help": "Use the two aligned.pqt files from Chai\u2019s official examples, downloaded when Chai-1 is installed or first used. Only suitable for the sequences in the official protein-complex preset.",
      "options": [],
      "rows": null,
      "minimum": null,
      "maximum": null,
      "step": null,
      "maxlength": null,
      "accept": "",
      "task": "",
      "group": "Evolution and templates",
      "input_modes": "",
      "molecule_features": ""
    },
    {
      "name": "use_templates_server",
      "label": "Search public templates",
      "kind": "checkbox",
      "default": false,
      "required": false,
      "help": "Search pdb100 templates with the MSA server; requires the public MSA server.",
      "options": [],
      "rows": null,
      "minimum": null,
      "maximum": null,
      "step": null,
      "maxlength": null,
      "accept": "",
      "task": "",
      "group": "Evolution and templates",
      "input_modes": "",
      "molecule_features": ""
    },
    {
      "name": "template_hits_path",
      "label": "Local template hits .m8",
      "kind": "text",
      "default": "",
      "required": false,
      "help": "Existing compute-node MMseqs2 .m8 template hits file. Exclusive with the template server.",
      "options": [],
      "rows": null,
      "minimum": null,
      "maximum": null,
      "step": null,
      "maxlength": null,
      "accept": "",
      "task": "",
      "group": "Evolution and templates",
      "input_modes": "",
      "molecule_features": ""
    },
    {
      "name": "restraints_csv",
      "label": "Native restraints CSV",
      "kind": "textarea",
      "default": "",
      "required": false,
      "help": "Paste a Chai restraint table with the official header. Supports contact, pocket and covalent rows. Use either this table or the guided fields below.",
      "options": [],
      "rows": 5,
      "minimum": null,
      "maximum": null,
      "step": null,
      "maxlength": 500000,
      "accept": "",
      "task": "",
      "group": "Restraints",
      "input_modes": "",
      "molecule_features": ""
    },
    {
      "name": "restraints_file",
      "label": "Restraints CSV file",
      "kind": "file",
      "default": "",
      "required": false,
      "help": "Upload the same native restraint table instead of pasting it.",
      "options": [],
      "rows": null,
      "minimum": null,
      "maximum": null,
      "step": null,
      "maxlength": 500000,
      "accept": ".restraints,.csv,.txt",
      "task": "",
      "group": "Restraints",
      "input_modes": "",
      "molecule_features": ""
    },
    {
      "name": "pocket_restraints",
      "label": "Pocket restraints (JSON)",
      "kind": "textarea",
      "default": "",
      "required": false,
      "help": "Guided format: [{\"chainA\":\"A\",\"res_idxA\":387,\"chainB\":\"B\"}]. First chain has the specific residue. Chain letters follow FASTA entity order.",
      "options": [],
      "rows": 3,
      "minimum": null,
      "maximum": null,
      "step": null,
      "maxlength": 500000,
      "accept": "",
      "task": "",
      "group": "Restraints",
      "input_modes": "",
      "molecule_features": ""
    },
    {
      "name": "contact_restraints",
      "label": "Contact restraints (JSON)",
      "kind": "textarea",
      "default": "",
      "required": false,
      "help": "Guided format: [{\"chainA\":\"A\",\"res_idxA\":387,\"chainB\":\"B\",\"res_idxB\":101}].",
      "options": [],
      "rows": 3,
      "minimum": null,
      "maximum": null,
      "step": null,
      "maxlength": 500000,
      "accept": "",
      "task": "",
      "group": "Restraints",
      "input_modes": "",
      "molecule_features": ""
    },
    {
      "name": "covalent_restraints",
      "label": "Covalent restraints (JSON)",
      "kind": "textarea",
      "default": "",
      "required": false,
      "help": "Guided format: [{\"chainA\":\"A\",\"res_idxA\":217,\"covalentAtomA\":\"SG\",\"chainB\":\"B\",\"covalentAtomB\":\"S1\"}]. Ligand/glycan partners need an atom name but no residue index.",
      "options": [],
      "rows": 3,
      "minimum": null,
      "maximum": null,
      "step": null,
      "maxlength": 500000,
      "accept": "",
      "task": "",
      "group": "Restraints",
      "input_modes": "",
      "molecule_features": ""
    },
    {
      "name": "restraints_min_distance",
      "label": "Guided minimum distance (\u00c5)",
      "kind": "number",
      "default": 0,
      "required": false,
      "help": "",
      "options": [],
      "rows": null,
      "minimum": 0,
      "maximum": 100,
      "step": "any",
      "maxlength": null,
      "accept": "",
      "task": "",
      "group": "Restraints",
      "input_modes": "",
      "molecule_features": ""
    },
    {
      "name": "restraints_max_distance",
      "label": "Guided maximum distance (\u00c5)",
      "kind": "number",
      "default": 5,
      "required": false,
      "help": "",
      "options": [],
      "rows": null,
      "minimum": 0,
      "maximum": 100,
      "step": "any",
      "maxlength": null,
      "accept": "",
      "task": "",
      "group": "Restraints",
      "input_modes": "",
      "molecule_features": ""
    },
    {
      "name": "num_trunk_samples",
      "label": "Trunk samples",
      "kind": "number",
      "default": 1,
      "required": false,
      "help": "",
      "options": [],
      "rows": null,
      "minimum": 1,
      "maximum": 10,
      "step": 1,
      "maxlength": null,
      "accept": "",
      "task": "",
      "group": "Sampling",
      "input_modes": "",
      "molecule_features": ""
    },
    {
      "name": "num_recycles",
      "label": "Trunk recycles",
      "kind": "number",
      "default": 3,
      "required": false,
      "help": "",
      "options": [],
      "rows": null,
      "minimum": 0,
      "maximum": 20,
      "step": 1,
      "maxlength": null,
      "accept": "",
      "task": "",
      "group": "Sampling",
      "input_modes": "",
      "molecule_features": ""
    },
    {
      "name": "num_diffn_timesteps",
      "label": "Diffusion timesteps",
      "kind": "number",
      "default": 200,
      "required": false,
      "help": "",
      "options": [],
      "rows": null,
      "minimum": 1,
      "maximum": 1000,
      "step": 1,
      "maxlength": null,
      "accept": "",
      "task": "",
      "group": "Sampling",
      "input_modes": "",
      "molecule_features": ""
    },
    {
      "name": "num_samples",
      "label": "Diffusion samples per trunk",
      "kind": "number",
      "default": 5,
      "required": false,
      "help": "Number of candidate structures to generate per trunk. More samples use more GPU memory; try 1 for large complexes or 16 GB GPUs.",
      "options": [],
      "rows": null,
      "minimum": 1,
      "maximum": 25,
      "step": 1,
      "maxlength": null,
      "accept": "",
      "task": "",
      "group": "Sampling",
      "input_modes": "",
      "molecule_features": ""
    },
    {
      "name": "recycle_msa_subsample",
      "label": "MSA subsample per recycle",
      "kind": "number",
      "default": 0,
      "required": false,
      "help": "Upstream recycle_msa_subsample argument; 0 disables subsampling.",
      "options": [],
      "rows": null,
      "minimum": 0,
      "maximum": 1000,
      "step": 1,
      "maxlength": null,
      "accept": "",
      "task": "",
      "group": "Sampling",
      "input_modes": "",
      "molecule_features": ""
    },
    {
      "name": "seed",
      "label": "Random seed",
      "kind": "number",
      "default": 0,
      "required": false,
      "help": "",
      "options": [],
      "rows": null,
      "minimum": 0,
      "maximum": 2147483647,
      "step": 1,
      "maxlength": null,
      "accept": "",
      "task": "",
      "group": "Sampling",
      "input_modes": "",
      "molecule_features": ""
    },
    {
      "name": "low_memory",
      "label": "Low-memory inference",
      "kind": "checkbox",
      "default": true,
      "required": false,
      "help": "Move model components as needed to lower peak GPU memory.",
      "options": [],
      "rows": null,
      "minimum": null,
      "maximum": null,
      "step": null,
      "maxlength": null,
      "accept": "",
      "task": "",
      "group": "Sampling",
      "input_modes": "",
      "molecule_features": ""
    },
    {
      "name": "device",
      "label": "CUDA device",
      "kind": "text",
      "default": "cuda:0",
      "required": false,
      "help": "CUDA device such as cuda:0.",
      "options": [],
      "rows": null,
      "minimum": null,
      "maximum": null,
      "step": null,
      "maxlength": null,
      "accept": "",
      "task": "",
      "group": "Sampling",
      "input_modes": "",
      "molecule_features": ""
    }
  ],
  "input_modes": {
    "name": "input_mode",
    "label": "Input mode",
    "default": "parameters",
    "options": [
      {
        "value": "parameters",
        "label": "Set parameters here"
      },
      {
        "value": "text",
        "label": "Enter Chai FASTA"
      },
      {
        "value": "upload",
        "label": "Upload Chai FASTA"
      }
    ]
  },
  "tasks": [],
  "field_groups": [
    {
      "label": "Input",
      "docs_url": "https://github.com/chaidiscovery/chai-lab/blob/main/examples/predict_structure.py"
    },
    {
      "label": "Evolution and templates",
      "docs_url": "https://github.com/chaidiscovery/chai-lab/tree/main/examples/msas"
    },
    {
      "label": "Restraints",
      "docs_url": "https://github.com/chaidiscovery/chai-lab/tree/main/examples/restraints"
    },
    {
      "label": "Sampling",
      "docs_url": "https://github.com/chaidiscovery/chai-lab/blob/main/chai_lab/chai1.py#L482"
    }
  ]
}