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
1b802b29
Commit
1b802b29
authored
Oct 11, 2021
by
Gustaf Ahdritz
Browse files
Rename runner, update command in README
parent
911795ca
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
5 deletions
+25
-5
README.md
README.md
+18
-1
run_pretrained_openfold.py
run_pretrained_openfold.py
+7
-4
No files found.
README.md
View file @
1b802b29
...
...
@@ -49,9 +49,26 @@ To run inference on a sequence using a set of DeepMind's pretrained parameters,
run e.g.
```
bash
python3 run_pretrained_alphafold.py
--device
cuda:1
--model
model_1_ptm
python3 run_pretrained_openfold.py
\
test.fasta
\
data/uniref90/uniref90.fasta
\
data/mgnify/mgy_clusters_2018_12.fa
\
data/pdb70/pdb70
\
data/pdb_mmcif/mmcif_files/
\
--output_dir
./
\
--bfd_database_path
data/bfd/bfd_metaclust_clu_complete_id30_c90_final_seq.sorted_opt
\
--uniclust30_database_path
data/uniclust30/uniclust30_2018_08/uniclust30_2018_08
\
--device
cuda:1
```
where
`data`
is a directory populated by
`scripts/download_all_data.sh`
. Run
```
bash
python3 run_pretrained_openfold.py
--help
```
for a full list of options.
## Copyright notice
While AlphaFold's and, by extension, OpenFold's source code is licensed under
...
...
run_pretrained_
alpha
fold.py
→
run_pretrained_
open
fold.py
View file @
1b802b29
...
...
@@ -95,20 +95,23 @@ def main(args):
if
not
os
.
path
.
exists
(
alignment_dir
):
os
.
makedirs
(
alignment_dir
)
print
(
"
Collecting data
..."
)
alignment_runner
.
run
_from_fasta
(
print
(
"
Generating features
..."
)
alignment_runner
.
run
(
args
.
fasta_path
,
alignment_dir
)
feature_dict
=
data_processor
.
process_fasta
(
input_
fasta_path
=
args
.
fasta_path
,
alignment_dir
=
alignment_dir
fasta_path
=
args
.
fasta_path
,
alignment_dir
=
alignment_dir
)
print
(
"Generating features..."
)
processed_feature_dict
=
feature_processor
.
process_features
(
feature_dict
,
random_seed
)
for
k
,
v
in
processed_feature_dict
.
items
():
print
(
k
)
print
(
v
.
shape
)
print
(
"Executing model..."
)
batch
=
processed_feature_dict
with
torch
.
no_grad
():
...
...
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