Mercurial > repos > bornea > prohits_dotplot_generator
changeset 27:63cc1f29a57b draft
Uploaded
author | bornea |
---|---|
date | Tue, 19 Apr 2016 11:37:44 -0400 |
parents | c0b883652821 |
children | 213e87eb9ade |
files | ProHits_DotPlot_Generator.py |
diffstat | 1 files changed, 11 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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]))