-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProcessDescriptors.py
More file actions
executable file
·37 lines (26 loc) · 954 Bytes
/
Copy pathProcessDescriptors.py
File metadata and controls
executable file
·37 lines (26 loc) · 954 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
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/python
import os, sys, time
db = sys.argv[1]
datatable = sys.argv[2]
desctable = sys.argv[3]
uname = sys.argv[4]
password = sys.argv[5]
pacode = sys.argv[6]
wantedpdb = sys.argv[7]
wantedlig = sys.argv[8]
curr_dir = os.path.abspath('./')
path = os.path.abspath(os.path.curdir)
### wait for qsubbed jobs to finish ###
command = 'qstat -u '+uname+' > log_cluster.txt'
os.system(command)
log_cluster = open('log_cluster.txt', 'r').readlines()
#print log_cluster
while len(log_cluster) >= 100:
command = 'qstat -u '+uname+' > log_cluster.txt'
os.system(command)
log_cluster = open('log_cluster.txt', 'r').readlines()
#print log_cluster
time.sleep(1)
### COPY ALL PROTEIN AND SUPERLIGAND FILES TO $PATH ###
command = '/homes/asarkar/DrugPred2.1/CalculateDescriptors.py ' + curr_dir + ' ' + db + ' ' + datatable + ' ' + desctable + ' ' + uname + ' ' + password + ' ' + pacode + ' ' + wantedpdb + ' ' + wantedlig
os.system(command)