-
Notifications
You must be signed in to change notification settings - Fork 2
/
CascAID.py
95 lines (76 loc) · 2.54 KB
/
CascAID.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
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
import os
from sys import version_info
py3 = version_info[0] > 2
import time
def question(a):
if py3:
while True:
try:
response1 = input('What would you like to do?')
except ValueError:
print("Please enter an integer")
else:
break
else:
while True:
try:
response1 = raw_input('What would you like to do?')
except ValueError:
print("Please enter an integer")
continue
else:
break
# response1 = raw_input("What would you like to detect?")
return(response1)
print(
'''
###################################################################
# #
# CascAID V1.0 #
# #
'''
+'# '+str(time.strftime("%c"))+' #'
'''
# #
# IGEM Munich 2017 #
# #
# #
# #
# #
# Please send bug reports to: #
# #
# Sven Klumpe #
# #
# E-Mail: [email protected] #
# #
###################################################################
###################################################################
############## Welcome to CascAID ##################
###################################################################
'''
)
x=1000
for i in range(0,20):
print(
'''
############# Main Menu ##################
[1] Access crRNA databank
[2] crRNA Secondary Structure Verification
[3] Evaluate off-target Effect of crRNA Design
[9] Exit Program
''')
response1=question(i)
try:
x=int(response1)
except ValueError:
print('##### Invalid Option. Please enter a valid option ######')
if x==1:
os.system('python ./python/db_execution.py')
elif x==2:
os.system('python ./python/secondary_structure_execution.py')
elif x==3:
os.system('python ./python/blast.py')
elif x==9:
exit()
else:
continue