af79f7d592f448ad3f355847d8695180d3a0d0ed
examples/alphaflow.md
... | ... | @@ -1 +1,43 @@ |
1 | -# AlphaFlow Example |
|
... | ... | \ No newline at end of file |
0 | +## AlphaFlow Example |
|
1 | + |
|
2 | +In order to run AlphaFlow with SBGrid you must: |
|
3 | + |
|
4 | +1. Obtain the alphaflow model weights |
|
5 | + |
|
6 | +2. Obtain MSAs for your sequences |
|
7 | + |
|
8 | +These steps are included in the example script below. We use a test input csv file provided with AlphaFlow. |
|
9 | + |
|
10 | +Edit the project_dir variable to point to your own project directory. |
|
11 | + |
|
12 | +``` |
|
13 | +## AlphaFlow Example |
|
14 | +## https://github.com/bjing2016/alphaflow |
|
15 | +## |
|
16 | +## help@sbgrid.org |
|
17 | +## Dec 3, 2024 |
|
18 | + |
|
19 | + |
|
20 | +source /programs/sbgrid.shrc |
|
21 | +export ALPHAFLOW_X=20241203_86d7606 |
|
22 | + |
|
23 | +verdir=/programs//x86_64-linux//alphaflow/20241203_86d7606 |
|
24 | +project_dir=/build/source/alphaflow/20241203_86d7606 |
|
25 | + |
|
26 | +cd ${project_dir} |
|
27 | + |
|
28 | +## Get weights |
|
29 | +## AlphaFlow-PDB distilled |
|
30 | +mkdir weights |
|
31 | +wget -P ./weights https://storage.googleapis.com/alphaflow/params/alphaflow_pdb_distilled_202402.pt |
|
32 | + |
|
33 | +## Sample input file |
|
34 | +## edit to contain just one sequence for testing |
|
35 | +cp ${verdir}/alphaflow/splits/atlas_test.csv ./ |
|
36 | + |
|
37 | +## Generate MSAs from colabfold |
|
38 | +python.alphaflow ${verdir}/alphaflow/scripts/mmseqs_query.py --split ./atlas_test.csv --outdir ./msa |
|
39 | + |
|
40 | +## Run model |
|
41 | +python.alphaflow ${verdir}/alphaflow/predict.py --mode alphafold --input_csv ${project_dir}/atlas_test.csv --msa_dir ${project_dir}/msa --weights ${project_dir}/weights/alphaflow_pdb_distilled_202402.pt --samples 1 --outpdb ${project_dir}/out_pdb |
|
42 | +``` |