Upload modeling_fast_esmfold.py with huggingface_hub
Browse files- modeling_fast_esmfold.py +1 -3
modeling_fast_esmfold.py
CHANGED
|
@@ -1089,7 +1089,6 @@ class FastEsmForProteinFolding(EsmForProteinFolding):
|
|
| 1089 |
self,
|
| 1090 |
sequence: str,
|
| 1091 |
ttt: bool = False,
|
| 1092 |
-
num_recycles: Optional[int] = None,
|
| 1093 |
return_pdb_string: bool = True,
|
| 1094 |
) -> Dict[str, Any]:
|
| 1095 |
"""Fold a protein sequence, optionally with test-time training.
|
|
@@ -1097,7 +1096,6 @@ class FastEsmForProteinFolding(EsmForProteinFolding):
|
|
| 1097 |
Args:
|
| 1098 |
sequence: Protein sequence (single-letter amino acid codes)
|
| 1099 |
ttt: If True, run test-time training before folding (improves accuracy)
|
| 1100 |
-
num_recycles: Override default number of recycling iterations (None = use config default)
|
| 1101 |
return_pdb_string: If True, include PDB string in output
|
| 1102 |
|
| 1103 |
Returns:
|
|
@@ -1114,7 +1112,7 @@ class FastEsmForProteinFolding(EsmForProteinFolding):
|
|
| 1114 |
result["ttt_losses"] = ttt_result["losses"]
|
| 1115 |
|
| 1116 |
with torch.no_grad():
|
| 1117 |
-
output = self.infer(sequence
|
| 1118 |
|
| 1119 |
plddt = output["plddt"]
|
| 1120 |
if plddt.dim() >= 2:
|
|
|
|
| 1089 |
self,
|
| 1090 |
sequence: str,
|
| 1091 |
ttt: bool = False,
|
|
|
|
| 1092 |
return_pdb_string: bool = True,
|
| 1093 |
) -> Dict[str, Any]:
|
| 1094 |
"""Fold a protein sequence, optionally with test-time training.
|
|
|
|
| 1096 |
Args:
|
| 1097 |
sequence: Protein sequence (single-letter amino acid codes)
|
| 1098 |
ttt: If True, run test-time training before folding (improves accuracy)
|
|
|
|
| 1099 |
return_pdb_string: If True, include PDB string in output
|
| 1100 |
|
| 1101 |
Returns:
|
|
|
|
| 1112 |
result["ttt_losses"] = ttt_result["losses"]
|
| 1113 |
|
| 1114 |
with torch.no_grad():
|
| 1115 |
+
output = self.infer(sequence)
|
| 1116 |
|
| 1117 |
plddt = output["plddt"]
|
| 1118 |
if plddt.dim() >= 2:
|