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
ModelZoo
alphafold2_jax
Commits
e7456783
Commit
e7456783
authored
Nov 29, 2023
by
zhuwenwen
Browse files
add msas args
parent
57bb29ba
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
9 deletions
+11
-9
README.md
README.md
+1
-1
run_alphafold.py
run_alphafold.py
+8
-8
run_monomer.sh
run_monomer.sh
+1
-0
run_multimer.sh
run_multimer.sh
+1
-0
No files found.
README.md
View file @
e7456783
...
@@ -92,7 +92,7 @@ $DOWNLOAD_DIR/
...
@@ -92,7 +92,7 @@ $DOWNLOAD_DIR/
```
bash
```
bash
./run_monomer.sh
./run_monomer.sh
```
```
单体推理参数说明:download_dir为数据集下载目录,monomer.fasta为推理的单体序列;
`--output_dir`
为输出目录;
`model_names`
为推理的模型名称,
`--model_preset=monomer`
为单体模型配置;
`--run_relax=true`
为进行relax操作;
`--use_gpu_relax=true`
为使用gpu进行relax操作(速度更快,但可能不太稳定),
`--use_gpu_relax=false`
为使用CPU进行relax操作(速度慢,但稳定)。
单体推理参数说明:download_dir为数据集下载目录,monomer.fasta为推理的单体序列;
`--output_dir`
为输出目录;
`model_names`
为推理的模型名称,
`--model_preset=monomer`
为单体模型配置;
`--run_relax=true`
为进行relax操作;
`--use_gpu_relax=true`
为使用gpu进行relax操作(速度更快,但可能不太稳定),
`--use_gpu_relax=false`
为使用CPU进行relax操作(速度慢,但稳定)
;若添加--use_precomputed_msas=true则可以加载已有的MSAs,否则默认运行MSA工具
。
### 多体
### 多体
```
bash
```
bash
...
...
run_alphafold.py
View file @
e7456783
...
@@ -194,18 +194,18 @@ def predict_structure(
...
@@ -194,18 +194,18 @@ def predict_structure(
# Get features.
# Get features.
t_0
=
time
.
time
()
t_0
=
time
.
time
()
features_output_path
=
os
.
path
.
join
(
output_dir
,
'features.pkl'
)
#
features_output_path = os.path.join(output_dir, 'features.pkl')
if
os
.
path
.
exists
(
features_output_path
):
#
if os.path.exists(features_output_path):
feature_dict
=
pickle
.
load
(
open
(
features_output_path
,
'rb'
))
#
feature_dict = pickle.load(open(features_output_path, 'rb'))
else
:
#
else:
feature_dict
=
data_pipeline
.
process
(
feature_dict
=
data_pipeline
.
process
(
input_fasta_path
=
fasta_path
,
input_fasta_path
=
fasta_path
,
msa_output_dir
=
msa_output_dir
)
msa_output_dir
=
msa_output_dir
)
timings
[
'features'
]
=
time
.
time
()
-
t_0
timings
[
'features'
]
=
time
.
time
()
-
t_0
# Write out features as a pickled dictionary.
# Write out features as a pickled dictionary.
#
features_output_path = os.path.join(output_dir, 'features.pkl')
features_output_path
=
os
.
path
.
join
(
output_dir
,
'features.pkl'
)
with
open
(
features_output_path
,
'wb'
)
as
f
:
with
open
(
features_output_path
,
'wb'
)
as
f
:
pickle
.
dump
(
feature_dict
,
f
,
protocol
=
4
)
pickle
.
dump
(
feature_dict
,
f
,
protocol
=
4
)
...
...
run_monomer.sh
View file @
e7456783
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
python3 run_alphafold.py
\
python3 run_alphafold.py
\
--fasta_paths
=
monomer.fasta
\
--fasta_paths
=
monomer.fasta
\
--output_dir
=
./
\
--output_dir
=
./
\
--use_precomputed_msas
=
false
\
--data_dir
=
$download_dir
\
--data_dir
=
$download_dir
\
--model_names
=
"model_1"
\
--model_names
=
"model_1"
\
--uniref90_database_path
=
$download_dir
/uniref90/uniref90.fasta
\
--uniref90_database_path
=
$download_dir
/uniref90/uniref90.fasta
\
...
...
run_multimer.sh
View file @
e7456783
...
@@ -2,6 +2,7 @@ download_dir=/data/alphafold2
...
@@ -2,6 +2,7 @@ download_dir=/data/alphafold2
python3 run_alphafold.py
\
python3 run_alphafold.py
\
--fasta_paths
=
multimer.fasta
\
--fasta_paths
=
multimer.fasta
\
--output_dir
=
./
\
--output_dir
=
./
\
--use_precomputed_msas
=
false
\
--num_multimer_predictions_per_model
=
1
\
--num_multimer_predictions_per_model
=
1
\
--data_dir
=
$download_dir
\
--data_dir
=
$download_dir
\
--model_names
=
"model_1_multimer_v3"
\
--model_names
=
"model_1_multimer_v3"
\
...
...
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