-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.py
executable file
·39 lines (33 loc) · 901 Bytes
/
menu.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
import subprocess
import os
import time
print "Welcome to main menu"
fileN = raw_input("Enter PDB file path: ")
print "Processing data for " + fileN + "\nPlease Wait..."
time.sleep(1)
print "Fasta Format: "
cmd1 = "~/PymolDSA/pdftofasta.py" + " " + fileN
#subprocess.call(cmd1, fileN)
#subprocess.Popen(cmd1, shell=True)
os.system(cmd1)
time.sleep(3)
print "Center of Mass: "
cmd2 = "com.py" + " " + fileN
subprocess.Popen(cmd2, shell=True)
os.system(cmd2)
time.sleep(3)
print "Root Mean Square Deviation: "
cmd3 = "rmsd.py" + " " + fileN + " " + fileN
subprocess.Popen(cmd3, shell=True)
os.system(cmd3)
time.sleep(3)
print "Free R Value: "
cmd2 = "com.py" + " " + fileN
#subprocess.Popen(cmd2, shell=True)
#os.system(cmd2)
#time.sleep(3)
print "No. of non hydrogen atoms used in Refinement: "
cmd2 = "com.py" + " " + fileN
#subprocess.Popen(cmd2, shell=True)
#os.system(cmd2)
#time.sleep(3)