We recommend running AlphaFold on GPU partitions because it runs much faster than solely using CPUs -- due to AlphaFold's GPU optimization. See slurm partitions for the specifics of each partition.
Below you will find a slurm script example
run_alphafold.sh
that uses the fasta file
5ZE6_1.fasta
.
This example assumes that run_alphafold.sh
and my_fasta
are located in the
same directory. If they are located in different directories, you will have to
edit my_fasta_path
.
You will have to edit in the run_alphafold.sh
script:
SBATCH
directives to suit your needs (e.g. time-t
, number of cores-c
, amount of memory--mem
)my_fasta
to suit to your own fasta file- (optional)
my_output_dir
if you would like your output to go somewhere else - (optional)
my_fasta_path
Note: AlphaFold screen output goes to the stderr file (.err
) rather than the
stdout file (.out
).
This example takes about 1 hour to run on Cannon in the gpu
partition with
8 cores (-c 8
).
Slurm script
User_Codes/Applications/AlphaFold/run_alphafold.sh
Lines 1 to 48 in d9c3f2f
Fasta file
User_Codes/Applications/AlphaFold/5ZE6_1.fasta
Lines 1 to 2 in f15ac0e
This example takes about 1-2 hours to run on Cannon in the gpu
partition with
8 cores (-c 8
).
Slurm script
User_Codes/Applications/AlphaFold/run_alphafold_multi.sh
Lines 1 to 60 in 1f69e32
Fasta file
User_Codes/Applications/AlphaFold/T1083_T1084.fasta
Lines 1 to 4 in 1f69e32
Log in to Cannon (see login
instructions). Go to the
directory where run_alphafold.sh
is located. Then submit a slurm batch job
with the command:
# monomer job
sbatch run_alphafold.sh
# multimer job
sbatch run_alphafold_multi.sh