Mercurial > repos > bornea > prohits_dotplot_generator
comparison ProHits_DotPlot_Generator.py @ 27:63cc1f29a57b draft
Uploaded
author | bornea |
---|---|
date | Tue, 19 Apr 2016 11:37:44 -0400 |
parents | cfac73f960c8 |
children | 16df07f285c0 |
comparison
equal
deleted
inserted
replaced
26:c0b883652821 | 27:63cc1f29a57b |
---|---|
42 os.system(cmd) | 42 os.system(cmd) |
43 | 43 |
44 | 44 |
45 cmd = (str(ins_path) + r"Dotplot_Release/dotplot.bash -f saint_input.txt" + r" -c b -s " + str(FDR1) + | 45 cmd = (str(ins_path) + r"Dotplot_Release/dotplot.bash -f saint_input.txt" + r" -c b -s " + str(FDR1) + |
46 r" -t " + str(FDR2) + " -m " + str(spec_max)) | 46 r" -t " + str(FDR2) + " -m " + str(spec_max)) |
47 os.system(cmd) | 47 try: |
48 os.system(cmd) | |
49 cmd1 = r"cp -a ./Output_saint_input/. ." | |
50 os.system(cmd1) | |
51 os.rename("saint_input.txt", str(sys.argv[1])) | |
52 except: | |
53 os.rename("saint_input.txt", str(sys.argv[1])) | |
54 print "DotPlot did not run correctly" | |
55 sys.exit() | |
48 | 56 |
49 cmd1 = r"cp -a ./Output_saint_input/. ." | |
50 os.system(cmd1) | |
51 | 57 |
52 os.rename("saint_input.txt", str(sys.argv[1])) | 58 |
59 | |
53 os.rename('dotplot.pdf', str(sys.argv[5])) | 60 os.rename('dotplot.pdf', str(sys.argv[5])) |
54 os.rename('bait2bait.pdf', str(sys.argv[6])) | 61 os.rename('bait2bait.pdf', str(sys.argv[6])) |
55 os.rename('estimated.pdf', str(sys.argv[7])) | 62 os.rename('estimated.pdf', str(sys.argv[7])) |
56 os.rename('stats.pdf', str(sys.argv[8])) | 63 os.rename('stats.pdf', str(sys.argv[8])) |