forked from kaistomics/DeepNeo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_deepneo.py
29 lines (26 loc) · 1.09 KB
/
run_deepneo.py
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
#!/usr/bin/python
import os, sys
mhc_class = sys.argv[1]
predtype= sys.argv[2]
Inputname = sys.argv[3]
Resultname = sys.argv[4]
if mhc_class == "class1" and predtype== 'tcr' :
os.system('THEANO_FLAGS=mode=FAST_RUN,device=cuda3,floatX=float32 ' \
+'python cnn.py ' \
+'data/tcr1-pan.pkl.gz ' \
+ Inputname + ' ' \
+ Resultname)
print ("\nThe running is completed!\n")
if mhc_class=="class1" and predtype=='mhc':
os.system('THEANO_FLAGS=mode=FAST_RUN,device=cuda3,floatX=float32 python cnn.py data/mhc1-pan.pkl.gz '+Inputname+' '+Resultname)
print("\nThe running is completed!\n")
if mhc_class=="class2" and predtype=='mhc':
os.system('THEANO_FLAGS=mode=FAST_RUN,device=cuda0,floatX=float32 python cnn.py data/mhc2-pan.pkl.gz '+Inputname+' '+Resultname)
print("\nThe running is completed!\n")
if mhc_class == "class2" and predtype== 'tcr' :
os.system('THEANO_FLAGS=mode=FAST_RUN,device=cuda0,floatX=float32 ' \
+'python cnn.py ' \
+'data/tcr2-pan.pkl.gz ' \
+ Inputname + ' ' \
+ Resultname)
print ("\nThe running is completed!\n")