Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion abcfold/data/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ protenix_env = abcfold-protenix-py311
af3_version = 3.0.0
boltz_version = 2.2.1
chai_version = 0.6.1
openfold_version = 0.3.1
openfold_version = 0.4.1
protenix_version = 1.0.0

[Models]
Expand Down
1 change: 0 additions & 1 deletion abcfold/openfold3/af3_to_openfold3.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ def write_yaml(self, out_file: Union[str, Path]):
"model_update:",
" presets:",
" - predict",
" - pae_enabled",
" - low_mem",
" custom:",
" settings:",
Expand Down
6 changes: 3 additions & 3 deletions abcfold/openfold3/check_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

logger = logging.getLogger("logger")

OPENFOLD_BUCKET = "openfold"
CHECKPOINT_NAME = "of3_ft3_v1.pt"
S3_KEY = f"openfold3_params/{CHECKPOINT_NAME}"
OPENFOLD_BUCKET = "openfold3-data"
CHECKPOINT_NAME = "of3-p2-155k.pt"
S3_KEY = f"openfold3-parameters/{CHECKPOINT_NAME}"
HTTPS_URL = (
f"https://{OPENFOLD_BUCKET}.s3.amazonaws.com/{S3_KEY}"
)
Expand Down
5 changes: 3 additions & 2 deletions abcfold/openfold3/run_openfold3.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
from typing import Optional, Union

from abcfold.openfold3.af3_to_openfold3 import OpenfoldJson
from abcfold.openfold3.check_install import (ensure_openfold_checkpoint,
from abcfold.openfold3.check_install import (CHECKPOINT_NAME,
ensure_openfold_checkpoint,
ensure_openfold_env)

logger = logging.getLogger("logger")
Expand Down Expand Up @@ -55,7 +56,7 @@ def run_openfold(
else:
cache_path = Path.home().joinpath(".openfold3")

default_ckpt = cache_path.joinpath("of3_ft3_v1.pt")
default_ckpt = cache_path.joinpath(CHECKPOINT_NAME)
if input_ckpt is None:
if not default_ckpt.exists():
logger.info(
Expand Down
2 changes: 1 addition & 1 deletion abcfold/output/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def from_openfold3(cls, scores: dict, cif_file: CifFile):
]
)

pae_matrix = np.asarray(scores["pde"])
pae_matrix = np.asarray(scores["pae"])
af3_scores["pae"] = pae_matrix.tolist()
af3_scores["atom_chain_ids"] = atom_chain_ids
af3_scores["atom_plddts"] = atom_plddts
Expand Down
Loading
Loading