1
|
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]
|
9
|
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]
|
13
|
21 r_path = sys.argv[16]
|
|
22 r_path = str(r_path) + r"bin/"
|
1
|
23
|
|
24 if crapome == "None":
|
|
25 crapome = "FALSE"
|
|
26
|
|
27
|
|
28 if label == "false":
|
|
29 label = "FALSE"
|
|
30 elif label == "true":
|
|
31 label = "TRUE"
|
|
32
|
13
|
33 cmd = str(r_path) + 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)
|
1
|
34 os.system(cmd)
|
|
35 time.sleep(3)
|
|
36
|
|
37 open('./output.txt')
|
|
38 os.rename('output.txt', str(output_file_name))
|
|
39
|
|
40 open('./bubble_zoom_NSAF.png')
|
|
41 os.rename('bubble_zoom_NSAF.png', str(bub_zoom_NSAF))
|
|
42
|
|
43 open('./bubble_zoom_SAINT.png')
|
|
44 os.rename('bubble_zoom_SAINT.png', str(bub_zoom_SAINT))
|
|
45
|
|
46 open('./bubble_SAINT.png')
|
|
47 os.rename('bubble_SAINT.png', str(bub_SAINT))
|
|
48
|
|
49 open('./bubble_NSAF.png')
|
|
50 os.rename('bubble_NSAF.png', str(bub_NSAF))
|
|
51
|