Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
OpenFold
Commits
30f92c45
Commit
30f92c45
authored
Feb 09, 2022
by
Gustaf Ahdritz
Browse files
Add note about chain data cache script
parent
c6e82f02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
README.md
README.md
+17
-2
No files found.
README.md
View file @
30f92c45
...
...
@@ -188,7 +188,21 @@ python3 scripts/generate_mmcif_cache.py \
```
This cache is used to minimize the number of mmCIF parses performed during
training-time data preprocessing. Finally, call the training script:
training-time data preprocessing. Next, generate a separate chain-level cache
with data used for training-time data filtering:
```
bash
python3 scripts/generate_chain_data_cache.py
\
mmcif_dir/
\
chain_data_cache.json
\
--cluster_file
clusters-by-entity-40.txt
\
--no_workers
16
```
where the
`cluster_file`
argument is a file of chain clusters, one cluster
per line (e.g.
[
PDB40
](
https://cdn.rcsb.org/resources/sequence/clusters/clusters-by-entity-40.txt
)
).
Finally, call the training script:
```
bash
python3 train_openfold.py mmcif_dir/ alignment_dir/ template_mmcif_dir/
\
...
...
@@ -199,7 +213,8 @@ python3 train_openfold.py mmcif_dir/ alignment_dir/ template_mmcif_dir/ \
--seed
42
\
# in multi-gpu settings, the seed must be specified
--deepspeed_config_path
deepspeed_config.json
\
--checkpoint_every_epoch
\
--resume_from_ckpt
ckpt_dir/
--resume_from_ckpt
ckpt_dir/
\
--train_prot_data_cache_path
chain_data_cache.json
```
where
`--template_release_dates_cache_path`
is a path to the
`.json`
file
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment