Skip to content

Commit df9f450

Browse files
committed
Added redirect for stderr.
1 parent 0fbdafd commit df9f450

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

bin/parallelCodeML.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,19 +101,19 @@ def parallelize(ap, outdir, finished, completed, multiple, cpu, ctl,
101101
makeCtl(gene, outfile, tempctl, treefile, ctl)
102102
os.chdir(wd)
103103
# Call CodeML
104-
with open(wd + "codemlLog.txt", "w") as tmpout:
104+
with open("codemlLog.txt", "w") as tmpout:
105105
cm = Popen(split(ap + "paml/bin/codeml " + tempctl),
106-
shell = True, stdout = tmpout)
106+
shell = True, stdout = tmpout, stderr = tmpout)
107107
cm.wait()
108108
elif multiple == False:
109109
# Make control file
110110
treefile = wd + filename + ""
111111
makeCtl(gene, outfile, tempctl, treefile, ctl)
112112
# Call CodeML for all files
113113
os.chdir(wd)
114-
with open(wd + "codemlLog.txt", "w") as tmpout:
114+
with open("codemlLog.txt", "w") as tmpout:
115115
cm = Popen(split(ap + "paml/bin/codeml " + tempctl),
116-
shell = True, stdout = tmpout)
116+
shell = True, stdout = tmpout, stderr = tmpout)
117117
cm.wait()
118118
with open(finished, "a") as fin:
119119
# Append gene id to list when done

0 commit comments

Comments
 (0)