You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: openprotein/fold/boltz.py
+6-20Lines changed: 6 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,7 @@ def fold(
111
111
Parameters
112
112
----------
113
113
proteins : List[Protein] | MSAFuture | None
114
-
List of protein sequences to include in folded output. `Protein` objects must be tagged with an `msa`, unless `force_single_sequence_mode` is true. Alternatively, supply an `MSAFuture` to use all query sequences as a multimer.
114
+
List of protein sequences to include in folded output. `Protein` objects must be tagged with an `msa`, which can be a `Protein.single_sequence_mode` for single sequence mode. Alternatively, supply an `MSAFuture` to use all query sequences as a multimer.
115
115
dna : List[DNA] | None
116
116
List of DNA sequences to include in folded output.
117
117
rna : List[RNA] | None
@@ -128,8 +128,6 @@ def fold(
128
128
Scaling factor for diffusion steps.
129
129
constraints : Optional[List[dict]]
130
130
List of constraints.
131
-
force_single_sequence_mode: bool
132
-
Force the use of single sequence mode. Needed if providing protein sequences without MSA.
133
131
134
132
Returns
135
133
-------
@@ -189,9 +187,9 @@ def fold(
189
187
forproteininproteinsor []:
190
188
# check the msa
191
189
msa=protein.msa
192
-
ifmsa==Noneandnotforce_single_sequence_mode:
190
+
ifmsaisNone:
193
191
raiseValueError(
194
-
"Expected all protein sequences to have `.msa` set or explicitly use `force_single_sequence_mode`"
192
+
"Expected all protein sequences to have `.msa` set with an `MSAFuture` or `Protein.single_sequence_mode` for single sequence mode."
195
193
)
196
194
# convert to msa id or null for single sequence mode
197
195
msa_id= (
@@ -286,7 +284,6 @@ def fold(
286
284
constraints: list[dict] |None=None,
287
285
templates: list[dict] |None=None,
288
286
properties: list[dict] |None=None,
289
-
force_single_sequence_mode: bool=False,
290
287
method: str|None=None,
291
288
) ->FoldComplexResultFuture:
292
289
"""
@@ -295,7 +292,7 @@ def fold(
295
292
Parameters
296
293
----------
297
294
proteins : List[Protein] | MSAFuture | None
298
-
List of protein sequences to include in folded output. `Protein` objects must be tagged with an `msa`, unless `force_single_sequence_mode` is true. Alternatively, supply an `MSAFuture` to use all query sequences as a multimer.
295
+
List of protein sequences to include in folded output. `Protein` objects must be tagged with an `msa`, which can be a `Protein.single_sequence_mode` for single sequence mode. Alternatively, supply an `MSAFuture` to use all query sequences as a multimer.
299
296
dna : List[DNA] | None
300
297
List of DNA sequences to include in folded output.
301
298
rna : List[RNA] | None
@@ -318,8 +315,6 @@ def fold(
318
315
List of templates to use for structure prediction.
319
316
properties: list[dict] | None = None
320
317
List of additional properties to predict. Should match the `BoltzProperties`
321
-
force_single_sequence_mode: bool
322
-
Force the use of single sequence mode. Needed if providing protein sequences without MSA.
323
318
method: str | None
324
319
The experimental method or supervision source used for the prediction. Defults to None.
Post sequences to Boltz-1x model. Uses potentials with Boltz-1 model.
403
396
404
397
Parameters
405
398
----------
406
399
proteins : List[Protein] | MSAFuture | None
407
-
List of protein sequences to include in folded output. `Protein` objects must be tagged with an `msa`, unless `force_single_sequence_mode` is true. Alternatively, supply an `MSAFuture` to use all query sequences as a multimer.
400
+
List of protein sequences to include in folded output. `Protein` objects must be tagged with an `msa`, which can be a `Protein.single_sequence_mode` for single sequence mode. Alternatively, supply an `MSAFuture` to use all query sequences as a multimer.
408
401
dna : List[DNA] | None
409
402
List of DNA sequences to include in folded output.
410
403
rna : List[RNA] | None
@@ -421,8 +414,6 @@ def fold(
421
414
Scaling factor for diffusion steps.
422
415
constraints : Optional[List[dict]]
423
416
List of constraints.
424
-
force_single_sequence_mode: bool
425
-
Force the use of single sequence mode. Needed if providing protein sequences without MSA.
List of protein sequences to include in folded output. `Protein` objects must be tagged with an `msa`, unless `force_single_sequence_mode` is true. Alternatively, supply an `MSAFuture` to use all query sequences as a multimer.
464
+
List of protein sequences to include in folded output. `Protein` objects must be tagged with an `msa`, which can be a `Protein.single_sequence_mode` for single sequence mode. Alternatively, supply an `MSAFuture` to use all query sequences as a multimer.
476
465
dna : List[DNA] | None
477
466
List of DNA sequences to include in folded output.
478
467
rna : List[RNA] | None
@@ -491,8 +480,6 @@ def fold(
491
480
Whether or not to use potentials.
492
481
constraints : Optional[List[dict]]
493
482
List of constraints.
494
-
force_single_sequence_mode: bool
495
-
Force the use of single sequence mode. Needed if providing protein sequences without MSA.
0 commit comments