Skip to content

Commit 967284c

Browse files
committed
command option changed to rxdock by default
1 parent a32dae4 commit 967284c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

sampledock/SnD/docking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def dock(ligs, dock_dir, prmfile, docking_prm, npose, prefix = 'docked'):
1919
procs.append(proc)
2020

2121
for proc in procs:
22-
# makes sure the docking has completed before sorting the score
22+
# makes sure the docking has completed before this function ends
2323
proc.wait()
2424
print('Docking Complete! \t', end = '\r')
2525
sys.stdout.flush()

sampledock/SnD/sampler_util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ def __init__(self,filename=None):
1818
FILE = open(filename)
1919
print('\n'+'#'*11+' Parameters Loaded as Below '+'#'*11+'\n')
2020
for i, line in enumerate(FILE):
21-
if line.strip('\r\n ').startswith("#") or line.isspace(): pass
21+
if line.strip().startswith("#") or line.isspace(): pass
2222
else:
2323
try:
2424
if "#" in line:
2525
line = line.split("#",1)[0]
2626
name, value = line.split("=",1)
27-
name = name.strip("\r\n ")
28-
value = value.strip("\r\n ")
27+
name = name.strip()
28+
value = value.strip()
2929
if value.isdigit(): value = int(value)
3030
setattr(self,name,value)
3131
print(name,":",value)

sampledock/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@
8787
sys.stdout.flush()
8888
design_list = jtvae.smiles_gen(smi, p.ndesign)
8989
# go to the second best candidate if the best does not give any return
90-
except KeyError as err:
91-
print('[KeyError]',err,'is not part of the vocabulary')
90+
except KeyError as key:
91+
print('[KeyError]',key,'is not part of the vocabulary')
9292
continue
9393

9494
if len(design_list) != 0:

test_hyper.param

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ndesign = 10 # number of designs to be gen
99
seed_smi = C1=CC=CC=C1 # initial seeding SMILES for the first cycle, default to benzene
1010

1111
############### Parameters for rDock ###################
12-
cavity_protocol = rbcavity -was -d -r # cmd and option for creating pocket
12+
cavity_protocol = rbcavity -W -d -r # cmd and option for creating pocket
1313
docking_prm = dock.prm # docking protocol (-p), no solvation term by default
1414
npose = 10 # number of poses generated (-n)
1515
prefix = pose_docked_ # prefix of the output files from rDock

0 commit comments

Comments
 (0)