-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu-func.py
executable file
·102 lines (72 loc) · 2.32 KB
/
menu-func.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
93
94
95
96
97
98
99
100
101
102
import os
import sys
import subprocess
import time
print("Welcome to the PDB World")
fileN = raw_input("Enter PDB file path: ")
print "Processing data for " + fileN + "\nPlease Wait..."
time.sleep(1)
loop = 1
while loop ==1:
print("What do you want to do:")
print("1)Center of mass")
print("2)RMSD")
print("3)PDB to fasta conveter")
print("4)B-factor")
print("5)Free R- value")
print("6)Know the type of ATOMS")
print("7 PDB params")
print("8)Secondary structure details")
print("9)Sequence resolution")
print("10)if you want to exit")
choice = input("Choice your options")
choice = int(choice)
os.system("cls")
if choice == 1:
print("1)Center of mass")
cmd2 = "~/PymolDSA/pdb_centermass.py" + " " + fileN
subprocess.Popen(cmd2, shell=True)
os.system(cmd2)
time.sleep(3)
if choice == 2:
print("Root mean Square Difference: ")
file2 = input("Enter File2 to get the Difference")
cmd3 = "~/PymolDSA/rmsd.py" + " " + fileN + " " + file2
subprocess.Popen(cmd3, shell=True)
sys.stdin.read(1)
if choice == 3:
print("3)PDB to fasta conveter")
cmd1 = "~/PymolDSA/pdftofasta.py" + " " + fileN
subprocess.Popen(cmd1, shell=True)
os.system(cmd1)
sys.stdin.read(1)
if choice == 4:
print("4)B-factor")
cmd5 = "~/PymolDSA/pdb_bfactor.py"+" "+ fileN
subprocess.Popen(cmd5, shell= True)
# if choice == 5:
# print("5)chiral center")
# if choice == 6:
# print("6)Free R- value")
# cmd2 = "~/PymolDSA/com.py" + " " + fileN
if choice == 7:
print("7)PDB params")
cmd5 = "~/PymolDSA/pdb_param.py" + " "+fileN
if choice == 6:
print("6)Know the type of ATOMS")
cmd4 = "~/PymolDSA/name.py"
subprocess.Popen(cmd4, shell=True)
if choice == 8:
print("8)Secondary structure details")
cmd5 = "~PymolDSA/pdb_torsion.py"
subprocess.Popen(cmd5, shell=True)
if choice == 9:
print("9)Sequence resolution")
cmd5 = "~/PymolDSA/pdb_seq.py"
subprocess.Popen(cmd5, shell=True)
if choice == 10:
loop ==0
exit
else:
print("please enter a valid option")
os.system("cls")