Previous changeset 28:213e87eb9ade (2016-04-19) |
Commit message:
Uploaded |
modified:
ProHits_DotPlot_Generator.py |
b |
diff -r 213e87eb9ade -r 16df07f285c0 ProHits_DotPlot_Generator.py --- a/ProHits_DotPlot_Generator.py Tue Apr 19 11:57:16 2016 -0400 +++ b/ProHits_DotPlot_Generator.py Tue Apr 19 12:01:47 2016 -0400 |
[ |
@@ -45,16 +45,14 @@ cmd = (str(ins_path) + r"Dotplot_Release/dotplot.bash -f saint_input.txt" + r" -c b -s " + str(FDR1) + r" -t " + str(FDR2) + " -m " + str(spec_max)) try: - os.system(cmd) - cmd1 = r"cp -a ./Output_saint_input/. ." - os.system(cmd1) - os.rename("saint_input.txt", str(sys.argv[1])) -except: - os.rename("saint_input.txt", str(sys.argv[1])) - print "DotPlot did not run correctly" - sys.exit() - - + os.system(cmd) + cmd1 = r"cp -a ./Output_saint_input/. ." + os.system(cmd1) + os.rename("saint_input.txt", str(sys.argv[1])) +except OSError: + os.rename("saint_input.txt", str(sys.argv[1])) + print "DotPlot did not run correctly" + sys.exit() os.rename('dotplot.pdf', str(sys.argv[5])) |