-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathrun_af3_all.sh
54 lines (47 loc) · 1.8 KB
/
run_af3_all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
#SBATCH -J AF3_data_pipeline # Job name
#SBATCH -p test,serial_requeue # Partition(s) (separate with commas if using multiple)
#SBATCH -c 8 # Number of cores
#SBATCH -t 00:30:00 # Time (D-HH:MM:SS)
#SBATCH --mem=12g # Memory
#SBATCH -o AF3_dp_%j.out # Both stdout and stderr
# (don't change this) set database directory
data_dir=/n/holylfs04-ssd2/LABS/FAS/alphafold_databases/v3.0
# (change this) set model parameters directory
my_model_parms_dir=/n/holylabs/LABS/jharvard_lab/Lab/alphafold3/model_parameters
# (change this) set input directory -- must match location of json input file
my_input_dir=/n/holylabs/LABS/jharvard_lab/Lab/alphafold3/input_dir
# (change this) set output directory
my_output_dir=/n/holylabs/LABS/jharvard_lab/Lab/alphafold3/output_dir
# submit inference job that will only run after data pipeline job
sbatch --dependency=afterok:${SLURM_JOB_ID} <<END
#!/bin/bash -eu
#SBATCH -J AF3_inference
#SBATCH -p gpu_test
#SBATCH --gres=gpu:1
#SBATCH -c 8
#SBATCH --mem=8g
#SBATCH -t 00:10:00
#SBATCH -o AF3_inf_%j.out
singularity exec \
--nv \
--bind $data_dir:/data \
${sif} \
python /app/alphafold/run_alphafold.py \
--json_path=${my_output_dir}/2pv7/2pv7_data.json \
--model_dir=$my_model_parms_dir \
--output_dir=${my_output_dir} \
--norun_data_pipeline
END
# run data pipeline
singularity exec \
--bind $data_dir:/data \
/n/singularity_images/FAS/alphafold/alphafold_3.0.0.sif \
python /app/alphafold/run_alphafold.py \
--json_path=${my_input_dir}/alphafold_input.json \
--model_dir=$my_model_parms_dir \
--db_dir=/data \
--pdb_database_path=/data/mmcif_files \
--input_dir=${my_input_dir} \
--output_dir=${my_output_dir} \
--norun_inference