Mercurial > repos > bornea > saint_interactions
comparison Bubblebeam_For_SAINT_wrapper.py @ 0:9ef1d870412e draft
Uploaded
author | bornea |
---|---|
date | Thu, 19 Nov 2015 11:15:43 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:9ef1d870412e |
---|---|
1 import os | |
2 import sys | |
3 import time | |
4 | |
5 | |
6 list_file = sys.argv[1] | |
7 prey_file = sys.argv[2] | |
8 crapome = sys.argv[3] | |
9 color = sys.argv[4] | |
10 label = sys.argv[5] | |
11 cutoff = sys.argv[6] | |
12 mq_sc = sys.argv[7] | |
13 inc_file = sys.argv[8] | |
14 exc_file = sys.argv[9] | |
15 output_file_name = sys.argv[10] | |
16 bub_zoom_NSAF = sys.argv[11] | |
17 bub_zoom_SAINT =sys.argv[12] | |
18 bub_SAINT = sys.argv[13] | |
19 bub_NSAF = sys.argv[14] | |
20 ins_path =sys.argv[15] | |
21 | |
22 if crapome == "None": | |
23 crapome = "FALSE" | |
24 | |
25 | |
26 if label == "false": | |
27 label = "FALSE" | |
28 elif label == "true": | |
29 label = "TRUE" | |
30 | |
31 cmd = r"Rscript "+ str(ins_path) + r"/bubbles_v9_NSAF_natural_log.R " + str(list_file) + r" " + str(prey_file) + r" " + str(crapome) + r" " + str(color) + r" " + str(label) + r" " + str(cutoff) + r" " + str(mq_sc) + r" " + str(inc_file) + r" " + str(exc_file) | |
32 os.system(cmd) | |
33 time.sleep(3) | |
34 | |
35 open('./output.txt') | |
36 os.rename('output.txt', str(output_file_name)) | |
37 | |
38 open('./bubble_zoom_NSAF.png') | |
39 os.rename('bubble_zoom_NSAF.png', str(bub_zoom_NSAF)) | |
40 | |
41 open('./bubble_zoom_SAINT.png') | |
42 os.rename('bubble_zoom_SAINT.png', str(bub_zoom_SAINT)) | |
43 | |
44 open('./bubble_SAINT.png') | |
45 os.rename('bubble_SAINT.png', str(bub_SAINT)) | |
46 | |
47 open('./bubble_NSAF.png') | |
48 os.rename('bubble_NSAF.png', str(bub_NSAF)) | |
49 |