-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalpha_list.py
More file actions
26 lines (23 loc) · 905 Bytes
/
alpha_list.py
File metadata and controls
26 lines (23 loc) · 905 Bytes
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
#!/usr/bin/python3
#SBATCH -p gpu # partition
#SBATCH --gres=gpu:v100:1 # number of GPUs
#SBATCH -N 1 # number of nodes
#SBATCH -c 8 # number of cores
#SBATCH -t 72:00:00 # time
import argparse
import os
def run_alpha(seqfile, outputdir):
"""Wrapper to run AlphaFold on one sequence.
Args:
seqfile: full path to FASTA file
outputdir: full path for output directory."""
os.system('/scratch/jws6pq/CMfiles/alpha_run.sh %s %s' % (seqfile, outputdir))
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('-s', help='comma-separated list of sequence files',
type=str)
parser.add_argument('-o', help='output directory', type=str)
args = parser.parse_args()
seqlist = args.s.split(',')
for seq in seqlist:
run_alpha(os.path.abspath(seq), os.path.abspath(args.o))