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
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,22 @@ python inference.py target.fasta data/pdb_mmcif/mmcif_files/ \
--hhsearch_binary_path `which hhsearch` \
--kalign_binary_path `which kalign`
```
or run the script `./inference.sh`, you can change
```shell
./inference.sh
```

#### inference with data workflow
alphafold's data pre-processing takes a lot of time, so we speed up the data pre-process by [ray](https://docs.ray.io/en/latest/workflows/concepts.html) workflow, to run the intference with ray workflow, you should install the package by
```shell
pip install ray pyarrow
```

Than you can run by the script `./inference_with_workflow.sh`

```shell
./inference_with_flow.sh
```

## Performance Benchmark

Expand Down
15 changes: 15 additions & 0 deletions inference.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
rm -rf alignments/
rm -rf *.pdb
python inference.py target.fasta /data/scratch/alphafold/alphafold/pdb_mmcif/mmcif_files \
--output_dir ./ \
--gpus 2 \
--uniref90_database_path /data/scratch/alphafold/alphafold/uniref90/uniref90.fasta \
--mgnify_database_path /data/scratch/alphafold/alphafold/mgnify/mgy_clusters_2018_12.fa \
--pdb70_database_path /data/scratch/alphafold/alphafold/pdb70/pdb70 \
--param_path /data/scratch/alphafold/alphafold/params/params_model_1.npz \
--uniclust30_database_path /data/scratch/alphafold/alphafold/uniclust30/uniclust30_2018_08/uniclust30_2018_08 \
--bfd_database_path /data/scratch/alphafold/alphafold/bfd/bfd_metaclust_clu_complete_id30_c90_final_seq.sorted_opt \
--jackhmmer_binary_path `which jackhmmer` \
--hhblits_binary_path `which hhblits` \
--hhsearch_binary_path `which hhsearch` \
--kalign_binary_path `which kalign`
15 changes: 15 additions & 0 deletions inference_with_flow.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
rm -rf alignments/
rm -rf *.pdb
python inference_with_workflow.py target.fasta /data/scratch/alphafold/alphafold/pdb_mmcif/mmcif_files \
--output_dir ./ \
--gpus 2 \
--uniref90_database_path /data/scratch/alphafold/alphafold/uniref90/uniref90.fasta \
--mgnify_database_path /data/scratch/alphafold/alphafold/mgnify/mgy_clusters_2018_12.fa \
--pdb70_database_path /data/scratch/alphafold/alphafold/pdb70/pdb70 \
--param_path /data/scratch/alphafold/alphafold/params/params_model_1.npz \
--uniclust30_database_path /data/scratch/alphafold/alphafold/uniclust30/uniclust30_2018_08/uniclust30_2018_08 \
--bfd_database_path /data/scratch/alphafold/alphafold/bfd/bfd_metaclust_clu_complete_id30_c90_final_seq.sorted_opt \
--jackhmmer_binary_path `which jackhmmer` \
--hhblits_binary_path `which hhblits` \
--hhsearch_binary_path `which hhsearch` \
--kalign_binary_path `which kalign`
1 change: 0 additions & 1 deletion inference_with_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ def inference_model(rank, world_size, result_q, batch, args):


def main(args):
print("--------------- inference_with_workflow.py ---------------")
config = model_config(args.model_name)

template_featurizer = templates.TemplateHitFeaturizer(
Expand Down