Commit dfcf3e87 authored by Benjamin  BARDIAUX's avatar Benjamin BARDIAUX

Running korp in local directory to avoid long paths issue

parent 0e1ed44f
......@@ -564,7 +564,7 @@ class StructureEnsemble(AriaBaseClass):
base_dir = os.path.dirname(files[0])
file_list = os.path.join(base_dir, "pdb_list.txt")
f = open(file_list, 'w')
file_list_str = "\n".join([i[:-4] for i in files])
file_list_str = "\n".join([os.path.basename(i)[:-4] for i in files])
self.debug("list of pdb files: " + file_list_str + "\n")
f.write(file_list_str)
f.close()
......@@ -574,7 +574,7 @@ class StructureEnsemble(AriaBaseClass):
korp_out = os.path.join(base_dir, "korp_score.txt")
cmd = "%s %s --score_file %s -o %s/korp" % (korp_bin, file_list, score_file, base_dir)
self.debug("running Korp: " + cmd + "\n")
os.system("%s > /dev/null" % cmd)
os.system("cd %s; %s > /dev/null" % (base_dir, cmd))
# read korp output
korp_values = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment