Skip to content

Commit

Permalink
fix: obabel bin resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
YaoYinYing committed Aug 17, 2024
1 parent ae9146a commit 5aae769
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions apps/protein_folding/helixfold3/FOLDING.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# FOLD GUIDE

## Quick example
Run from default config
```shell
LD_LIBRARY_PATH=/mnt/data/envs/conda_env/envs/helixfold/lib/:$LD_LIBRARY_PATH helixfold input=/repo/PaddleHelix/apps/protein_folding/helixfold3/data/demo_8ecx.json output=. CONFIG_DIFFS.preset=allatom_demo
```

Run with customized configuration dir and name:
```shell
LD_LIBRARY_PATH=/mnt/data/envs/conda_env/envs/helixfold/lib/:$LD_LIBRARY_PATH helixfold --config-dir=. --config-name=myfold input=/repo/PaddleHelix/apps/protein_folding/helixfold3/data/demo_6zcy_smiles.json output=. CONFIG_DIFFS.preset=allatom_demo
```
3 changes: 2 additions & 1 deletion apps/protein_folding/helixfold3/helixfold/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,6 @@ def main(cfg: DictConfig):
print(f'>>> FLAGS_new_einsum: {new_einsum}')
print(f'>>> config:\n{cfg}')

all_entitys = preprocess_json_entity(cfg.input, cfg.output)
## check maxit binary path
maxit_binary=resolve_bin_path(cfg.other.maxit_binary,'maxit')

Expand All @@ -468,6 +467,8 @@ def main(cfg: DictConfig):
obabel_bin=resolve_bin_path(cfg.bin.obabel,'obabel')
os.environ['OBABEL_BIN']=obabel_bin

all_entitys = preprocess_json_entity(cfg.input, cfg.output)

### Set seed for reproducibility
seed = cfg.seed
if seed is None:
Expand Down

0 comments on commit 5aae769

Please sign in to comment.