Mercurial > repos > bornea > prohits_dotplot_generator
changeset 29:16df07f285c0 draft default tip
Uploaded
author | bornea |
---|---|
date | Tue, 19 Apr 2016 12:01:47 -0400 |
parents | 213e87eb9ade |
children | |
files | ProHits_DotPlot_Generator.py |
diffstat | 1 files changed, 8 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- 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]))