Previous changeset 26:c0b883652821 (2016-04-19) Next changeset 28:213e87eb9ade (2016-04-19) |
Commit message:
Uploaded |
modified:
ProHits_DotPlot_Generator.py |
b |
diff -r c0b883652821 -r 63cc1f29a57b ProHits_DotPlot_Generator.py --- a/ProHits_DotPlot_Generator.py Tue Apr 19 11:37:32 2016 -0400 +++ b/ProHits_DotPlot_Generator.py Tue Apr 19 11:37:44 2016 -0400 |
[ |
@@ -44,12 +44,19 @@ 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)) -os.system(cmd) +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() -cmd1 = r"cp -a ./Output_saint_input/. ." -os.system(cmd1) + -os.rename("saint_input.txt", str(sys.argv[1])) + os.rename('dotplot.pdf', str(sys.argv[5])) os.rename('bait2bait.pdf', str(sys.argv[6])) os.rename('estimated.pdf', str(sys.argv[7])) |