Nathalie BERNARD

amélioration du script pour automatiser le benchmark

...@@ -24,32 +24,58 @@ def run_test(cmd, log): ...@@ -24,32 +24,58 @@ def run_test(cmd, log):
24 log.flush() 24 log.flush()
25 rc = process.poll() 25 rc = process.poll()
26 26
27 -def create_command_E(name, estimator): 27 +def create_command_rin(path, name, function, estimator):
28 - #cmd = ("python3 /mnt/c/Users/natha/Documents/IBISC/biorseo2/biorseo/biorseo.py -i " + 28 + cmd = ("python3 " + path + "/biorseo.py -i " +
29 - cmd = ("python3 /local/local/BiorseoNath/biorseo.py -i " + 29 + path + "/data/fasta/" +
30 - "/local/local/BiorseoNath/data/fasta/" +
31 name + ".fa " + 30 name + ".fa " +
32 "-O results/ " + 31 "-O results/ " +
33 - "--contacts " + 32 + "--carnaval " +
34 "--patternmatch " + 33 "--patternmatch " +
35 - "--func E --" + estimator + " -v " + 34 + "--func " + function + " --" + estimator + " -v " +
36 - "--biorseo-dir /local/local/BiorseoNath " + 35 + " --biorseo-dir " + path + " " +
37 - "--modules-path /local/local/BiorseoNath/data/modules/ISAURE/Motifs_derniere_version ") 36 + "--modules-path " + path + "/data/modules/RIN/Subfiles")
38 return cmd 37 return cmd
39 38
40 -def create_command_F(name, estimator): 39 +def create_command_desc(path, name, function, estimator):
41 - #cmd = ("python3 /mnt/c/Users/natha/Documents/IBISC/biorseo2/biorseo/biorseo.py -i " + 40 + cmd = ("python3 " + path + "/biorseo.py -i " +
42 - cmd = ("python3 /local/local/BiorseoNath/biorseo.py -i " + 41 + path + "/data/fasta/" +
43 - "/local/local/BiorseoNath/data/fasta/" + 42 + name + ".fa " +
43 + "-O results/ " +
44 + "--rna3dmotifs " +
45 + "--patternmatch " +
46 + "--func " + function + " --" + estimator + " -v " +
47 + " --biorseo-dir " + path + " " +
48 + "--modules-path " + path + "/data/modules/DESC")
49 + return cmd
50 +
51 +def create_command_isaure(path, name, function, estimator):
52 + cmd = ("python3 " + path + "/biorseo.py -i " +
53 + path + "/data/fasta/" +
44 name + ".fa " + 54 name + ".fa " +
45 "-O results/ " + 55 "-O results/ " +
46 "--contacts " + 56 "--contacts " +
47 "--patternmatch " + 57 "--patternmatch " +
48 - "--func F --" + estimator + " -v " + 58 + "--func " + function + " --" + estimator +
49 - "--biorseo-dir /local/local/BiorseoNath " + 59 + " --biorseo-dir " + path + " " +
50 - "--modules-path /local/local/BiorseoNath/data/modules/ISAURE/Motifs_derniere_version ") 60 + "--modules-path " + path + "/data/modules/ISAURE/Motifs_derniere_version")
51 return cmd 61 return cmd
52 62
63 +def execute_command(path, function, estimator, list_ctc, list_str, modules):
64 + if (modules == 'desc'):
65 + cmd = create_command_desc(path, name, function, estimator)
66 + elif (modules == 'rin'):
67 + cmd = create_command_rin(path, name, function, estimator)
68 + elif (modules == 'isaure'):
69 + cmd = create_command_isaure(path, name, function, estimator)
70 +
71 + os.system(cmd)
72 +
73 + file_path = "results/test_" + name + ".json_pm" + function + "_" + estimator
74 + if os.path.isfile(file_path):
75 + tab = write_mcc_in_file(name, contacts, structure2d, estimator, function)
76 + list_ctc.append(tab[0])
77 + list_str.append(tab[1])
78 +
53 # ================== Code from Louis Beckey Benchark.py ============================== 79 # ================== Code from Louis Beckey Benchark.py ==============================
54 def dbn_to_basepairs(structure): 80 def dbn_to_basepairs(structure):
55 parenthesis = [] 81 parenthesis = []
...@@ -128,7 +154,7 @@ def compare_two_structures(true2d, prediction): ...@@ -128,7 +154,7 @@ def compare_two_structures(true2d, prediction):
128 154
129 def mattews_corr_coeff(tp, tn, fp, fn): 155 def mattews_corr_coeff(tp, tn, fp, fn):
130 if ((tp + fp) * (tp + fn) * (tn + fp) * (tn + fn) == 0): 156 if ((tp + fp) * (tp + fn) * (tn + fp) * (tn + fn) == 0):
131 - print("warning: division by zero! no contact in the prediction") 157 + #print("warning: division by zero! no contact in the prediction")
132 #print("tp: " + str(tp) + " fp: " + str(fp) + " tn: " + str(tn) + " fn: " + str(fn)) 158 #print("tp: " + str(tp) + " fp: " + str(fp) + " tn: " + str(tn) + " fn: " + str(fn))
133 return -1 159 return -1
134 elif (tp + fp == 0): 160 elif (tp + fp == 0):
...@@ -143,53 +169,9 @@ def specificity(tp, tn, fp, fn): ...@@ -143,53 +169,9 @@ def specificity(tp, tn, fp, fn):
143 169
144 # ================== Code from Louis Beckey Benchark.py ============================== 170 # ================== Code from Louis Beckey Benchark.py ==============================
145 171
146 -def write_mcc_in_file_E(sequence_id, true_contacts, true_structure, estimator): 172 +def write_mcc_in_file(sequence_id, true_contacts, true_structure, estimator, function):
147 - read_prd = open("results/test_" + sequence_id + ".json_pmE_"+ estimator, "r") 173 + read_prd = open("results/test_" + sequence_id + ".json_pm" + function + "_" + estimator, "r")
148 - write = open("results/test_" + sequence_id + ".mcc_E_" + estimator, "w") 174 + write = open("results/test_" + sequence_id + ".mcc_" + function + "_" + estimator, "w")
149 -
150 - max_mcc_str = -1;
151 - max_mcc_ctc = -1;
152 -
153 - title_exp = ">test_" + sequence_id + ": "
154 - write.write(title_exp)
155 - contacts_exp = true_contacts
156 - structure_exp = true_structure
157 - write.write("structure 2d attendue:\n" + structure_exp + "\n")
158 - write.write("contacts attendus:\n" + contacts_exp + "\n" + len(structure_exp) * "-")
159 -
160 - title_prd = read_prd.readline()
161 - structure_prd = read_prd.readline()
162 - sequence_prd = structure_prd
163 - while structure_prd:
164 - structure_prd = read_prd.readline()
165 - if (len(structure_prd) != 0):
166 - write.write("\nstructure 2d predite:\n" + structure_prd[:len(sequence_prd)] + "\n")
167 - mcc_tab = compare_two_structures(structure_exp, structure_prd[:len(sequence_prd)])
168 - mcc_str = mattews_corr_coeff(mcc_tab[0], mcc_tab[1], mcc_tab[2], mcc_tab[3])
169 - if (max_mcc_str < mcc_str):
170 - max_mcc_str = mcc_str
171 - write.write("mcc: " + str(mcc_str) + "\n")
172 -
173 - contacts_prd = read_prd.readline()
174 - write.write("\ncontacts predits:\n" + contacts_prd)
175 - if (len(contacts_prd) == len(contacts_exp)):
176 - mcc_tab = compare_two_contacts(contacts_exp, contacts_prd)
177 - mcc_ctc = mattews_corr_coeff(mcc_tab[0], mcc_tab[1], mcc_tab[2], mcc_tab[3])
178 - if (max_mcc_ctc < mcc_ctc):
179 - max_mcc_ctc = mcc_ctc
180 - write.write("mcc: " + str(mcc_ctc) + "\n\n")
181 - else:
182 - write.write("mcc: no expected contacts sequence or not same length between expected and predicted\n\n")
183 - write.write("max mcc 2D:" + str(max_mcc_str))
184 - write.write("max mcc ctc:" + str(max_mcc_ctc))
185 - read_prd.close()
186 - write.close()
187 - return [max_mcc_ctc, max_mcc_str]
188 -
189 -def write_mcc_in_file_F(sequence_id, true_contacts, true_structure, estimator):
190 -
191 - read_prd = open("results/test_" + sequence_id + ".json_pmF_" + estimator, "r")
192 - write = open("results/test_" + sequence_id + ".mcc_F_" + estimator, "w")
193 175
194 max_mcc_str = -1; 176 max_mcc_str = -1;
195 max_mcc_ctc = -1; 177 max_mcc_ctc = -1;
...@@ -238,7 +220,7 @@ def set_axis_style(ax, labels): ...@@ -238,7 +220,7 @@ def set_axis_style(ax, labels):
238 ax.set_xlim(0.25, len(labels) + 0.75) 220 ax.set_xlim(0.25, len(labels) + 0.75)
239 ax.set_xlabel('Sample name') 221 ax.set_xlabel('Sample name')
240 222
241 -def visualization_best_mcc(list_struct2d, list_contacts, estimator, function, color, lines_color): 223 +def visualization_best_mcc(list_struct2d, list_contacts, estimator, function, modules, color, lines_color):
242 224
243 print(estimator + " + " + function + ": ") 225 print(estimator + " + " + function + ": ")
244 np_struct2d = np.array(list_struct2d) 226 np_struct2d = np.array(list_struct2d)
...@@ -269,7 +251,7 @@ def visualization_best_mcc(list_struct2d, list_contacts, estimator, function, co ...@@ -269,7 +251,7 @@ def visualization_best_mcc(list_struct2d, list_contacts, estimator, function, co
269 251
270 for v in violins['bodies']: 252 for v in violins['bodies']:
271 v.set_facecolor(color) 253 v.set_facecolor(color)
272 - plt.savefig('visualisation_16_06_' + estimator + '_' + function + '.png', bbox_inches='tight') 254 + plt.savefig('visualisation_16_06_' + estimator + '_' + function + '_' + modules + '.png', bbox_inches='tight')
273 255
274 def get_list_structs_contacts(path_benchmark, estimator, function): 256 def get_list_structs_contacts(path_benchmark, estimator, function):
275 myfile = open(path_benchmark, "r") 257 myfile = open(path_benchmark, "r")
...@@ -334,18 +316,40 @@ def get_half(list): ...@@ -334,18 +316,40 @@ def get_half(list):
334 316
335 return [first_half, second_half] 317 return [first_half, second_half]
336 318
337 -def visualization_all_mcc(path_benchmark, estimator, function): 319 +def visualization_all_mcc(path_benchmark, estimator, function, modules):
338 320
339 list_name = get_list_structs_contacts(path_benchmark, estimator, function)[0] 321 list_name = get_list_structs_contacts(path_benchmark, estimator, function)[0]
340 tab_struct2d = get_list_structs_contacts(path_benchmark, estimator, function)[1] 322 tab_struct2d = get_list_structs_contacts(path_benchmark, estimator, function)[1]
341 tab_contacts = get_list_structs_contacts(path_benchmark, estimator, function)[2] 323 tab_contacts = get_list_structs_contacts(path_benchmark, estimator, function)[2]
342 324
325 + min = 20
326 + max = 0
327 + max_i = 0
328 + min_i = 0
329 + for i in range(len(tab_struct2d)):
330 + if (len(tab_struct2d[i]) > max):
331 + max = len(tab_struct2d[i])
332 + max_i = i
333 + if (len(tab_struct2d[i]) < min):
334 + min = len(tab_struct2d[i])
335 + min_i = i
336 +
337 + print("max: " + list_name[max_i] + " " + str(max) + " min: " + list_name[min_i] + " " + str(min) + "\n")
338 +
343 np_struct2d = np.array(tab_struct2d) 339 np_struct2d = np.array(tab_struct2d)
344 size = len(tab_struct2d) 340 size = len(tab_struct2d)
345 list_median_str = [] 341 list_median_str = []
346 for i in range(size): 342 for i in range(size):
347 list_median_str.append(np.median(np_struct2d[i])) 343 list_median_str.append(np.median(np_struct2d[i]))
348 344
345 + all_str = []
346 + for i in range(size):
347 + for j in range(len(np_struct2d[i])):
348 + all_str.append(np_struct2d[i][j])
349 +
350 + """print("mediane struct" + estimator + " + " + function + " : " + str(np.median(all_str)))
351 + print("ecart struct" + estimator + " + " + function + " : " + str(np.std(all_str)) + "\n")"""
352 +
349 data = [x for _, x in sorted(zip(list_median_str, tab_struct2d))] 353 data = [x for _, x in sorted(zip(list_median_str, tab_struct2d))]
350 boxName = [x for _, x in sorted(zip(list_median_str, list_name))] 354 boxName = [x for _, x in sorted(zip(list_median_str, list_name))]
351 355
...@@ -368,7 +372,7 @@ def visualization_all_mcc(path_benchmark, estimator, function): ...@@ -368,7 +372,7 @@ def visualization_all_mcc(path_benchmark, estimator, function):
368 372
369 plt.xlabel('nom de la séquence') 373 plt.xlabel('nom de la séquence')
370 plt.ylabel('MCC (appariements)') 374 plt.ylabel('MCC (appariements)')
371 - plt.savefig('visualisation_128arn_structure2d_' + estimator + "_" + function + '.png', bbox_inches='tight') 375 + plt.savefig('visualisation_128arn_structure2d_' + estimator + "_" + function + "_" + modules + '.png', bbox_inches='tight')
372 376
373 plt.figure(figsize=(15, 4), dpi=200) 377 plt.figure(figsize=(15, 4), dpi=200)
374 plt.xticks(rotation=90) 378 plt.xticks(rotation=90)
...@@ -382,7 +386,7 @@ def visualization_all_mcc(path_benchmark, estimator, function): ...@@ -382,7 +386,7 @@ def visualization_all_mcc(path_benchmark, estimator, function):
382 386
383 plt.xlabel('nom de la séquence') 387 plt.xlabel('nom de la séquence')
384 plt.ylabel('MCC') 388 plt.ylabel('MCC')
385 - plt.savefig('visualisation_128arn_structure2d_' + estimator + "_" + function + '_2.png', bbox_inches='tight') 389 + plt.savefig('visualisation_128arn_structure2d_' + estimator + "_" + function + "_" + modules + '_2.png', bbox_inches='tight')
386 390
387 np_contacts = np.array(tab_contacts) 391 np_contacts = np.array(tab_contacts)
388 size = len(tab_contacts) 392 size = len(tab_contacts)
...@@ -390,6 +394,14 @@ def visualization_all_mcc(path_benchmark, estimator, function): ...@@ -390,6 +394,14 @@ def visualization_all_mcc(path_benchmark, estimator, function):
390 for i in range(size): 394 for i in range(size):
391 list_median_ctc.append(np.median(np_contacts[i])) 395 list_median_ctc.append(np.median(np_contacts[i]))
392 396
397 + all_ctc = []
398 + for i in range(size):
399 + for j in range(len(np_contacts[i])):
400 + all_ctc.append(np_contacts[i][j])
401 +
402 + """print("mediane ctc" + estimator + " + " + function + " : " + str(np.median(all_ctc)))
403 + print("ecart ctc" + estimator + " + " + function + " : " + str(np.std(all_ctc)) + "\n")"""
404 +
393 data = [x for _, x in sorted(zip(list_median_ctc, tab_contacts))] 405 data = [x for _, x in sorted(zip(list_median_ctc, tab_contacts))]
394 boxName = [x for _, x in sorted(zip(list_median_ctc, list_name))] 406 boxName = [x for _, x in sorted(zip(list_median_ctc, list_name))]
395 407
...@@ -431,7 +443,6 @@ def visualization_all_mcc(path_benchmark, estimator, function): ...@@ -431,7 +443,6 @@ def visualization_all_mcc(path_benchmark, estimator, function):
431 #cmd = ("cppsrc/Scripts/create") 443 #cmd = ("cppsrc/Scripts/create")
432 #cmd0 = ("cppsrc/Scripts/addDelimiter") 444 #cmd0 = ("cppsrc/Scripts/addDelimiter")
433 #cmd1 = ("cppsrc/Scripts/countPattern") 445 #cmd1 = ("cppsrc/Scripts/countPattern")
434 -#cmd2 = ("cppsrc/Scripts/deletePdb")
435 446
436 myfile = open("data/modules/ISAURE/Motifs_version_initiale/benchmark.txt", "r") 447 myfile = open("data/modules/ISAURE/Motifs_version_initiale/benchmark.txt", "r")
437 name = myfile.readline() 448 name = myfile.readline()
...@@ -439,21 +450,18 @@ contacts = myfile.readline() ...@@ -439,21 +450,18 @@ contacts = myfile.readline()
439 seq = myfile.readline() 450 seq = myfile.readline()
440 structure2d = myfile.readline() 451 structure2d = myfile.readline()
441 452
442 -list_struct2d_E_MFE = [] 453 +list_struct2d_A_MFE = []
443 -list_contacts_E_MFE = [] 454 +list_contacts_A_MFE = []
444 -list_struct2d_F_MFE = [] 455 +list_struct2d_B_MFE = []
445 -list_contacts_F_MFE = [] 456 +list_contacts_B_MFE = []
446 457
447 -list_struct2d_E_MEA = [] 458 +list_struct2d_A_MEA = []
448 -list_contacts_E_MEA = [] 459 +list_contacts_A_MEA = []
449 -list_struct2d_F_MEA = [] 460 +list_struct2d_B_MEA = []
450 -list_contacts_F_MEA = [] 461 +list_contacts_B_MEA = []
451 462
452 -countE_MFE = 0 463 +path = "/mnt/c/Users/natha/Documents/IBISC/biorseo2/biorseo"
453 -countF_MFE = 0 464 +path2 = "/local/local/BiorseoNath"
454 -
455 -countE_MEA = 0
456 -countF_MEA = 0
457 while seq: 465 while seq:
458 name = name[6:].strip() 466 name = name[6:].strip()
459 print(name) 467 print(name)
...@@ -461,63 +469,25 @@ while seq: ...@@ -461,63 +469,25 @@ while seq:
461 cmd2 = ("cppsrc/Scripts/deletePdb " + name) 469 cmd2 = ("cppsrc/Scripts/deletePdb " + name)
462 os.system(cmd2) 470 os.system(cmd2)
463 471
464 - cmd3 = create_command_E(name, 'MFE') 472 + execute_command(path2, 'A', 'MEA', list_contacts_A_MEA, list_struct2d_A_MEA, 'desc')
465 - os.system(cmd3) 473 + execute_command(path2, 'A', 'MFE', list_contacts_A_MFE, list_struct2d_A_MFE, 'desc')
466 - 474 + execute_command(path2, 'B', 'MEA', list_contacts_B_MEA, list_struct2d_B_MEA, 'desc')
467 - file_path = "results/test_" + name + ".json_pmE_MFE" 475 + execute_command(path2, 'B', 'MFE', list_contacts_B_MFE, list_struct2d_B_MFE, 'desc')
468 - if os.path.isfile(file_path):
469 - tabE_MFE = write_mcc_in_file_E(name, contacts, structure2d, 'MFE')
470 - list_contacts_E_MFE.append(tabE_MFE[0])
471 - list_struct2d_E_MFE.append(tabE_MFE[1])
472 - countE_MFE = countE_MFE + 1
473 -
474 - cmd3 = create_command_F(name, 'MFE')
475 - os.system(cmd3)
476 -
477 - file_path = "results/test_" + name + ".json_pmF_MFE"
478 - if os.path.isfile(file_path):
479 - tabF_MFE = write_mcc_in_file_F(name, contacts, structure2d, 'MFE')
480 - list_contacts_F_MFE.append(tabF_MFE[0])
481 - list_struct2d_F_MFE.append(tabF_MFE[1])
482 - countF_MFE = countF_MFE + 1
483 -
484 - cmd3 = create_command_E(name, 'MEA')
485 - os.system(cmd3)
486 -
487 - file_path = "results/test_" + name + ".json_pmE_MEA"
488 - if os.path.isfile(file_path):
489 - tabE_MEA = write_mcc_in_file_E(name, contacts, structure2d, 'MEA')
490 - list_contacts_E_MEA.append(tabE_MEA[0])
491 - list_struct2d_E_MEA.append(tabE_MEA[1])
492 - countE_MEA = countE_MEA + 1
493 -
494 - cmd3 = create_command_F(name, 'MEA')
495 - os.system(cmd3)
496 -
497 - file_path = "results/test_" + name + ".json_pmF_MEA"
498 - if os.path.isfile(file_path):
499 - tabF_MEA = write_mcc_in_file_F(name, contacts, structure2d, 'MEA')
500 - list_contacts_F_MEA.append(tabF_MEA[0])
501 - list_struct2d_F_MEA.append(tabF_MEA[1])
502 - countF_MEA = countF_MEA + 1
503 476
504 name = myfile.readline() 477 name = myfile.readline()
505 contacts = myfile.readline() 478 contacts = myfile.readline()
506 seq = myfile.readline() 479 seq = myfile.readline()
507 structure2d = myfile.readline() 480 structure2d = myfile.readline()
508 481
509 -visualization_best_mcc(list_struct2d_E_MFE, list_contacts_E_MFE, 'MFE', 'E', 'red', '#900C3F') 482 +visualization_best_mcc(list_struct2d_A_MFE, list_contacts_A_MFE, 'MFE', 'A', 'desc', 'red', '#900C3F')
510 -visualization_best_mcc(list_struct2d_F_MFE, list_contacts_F_MFE, 'MFE', 'F', 'blue', '#0900FF') 483 +visualization_best_mcc(list_struct2d_B_MFE, list_contacts_B_MFE, 'MFE', 'B', 'desc', 'blue', '#0900FF')
511 -visualization_best_mcc(list_struct2d_E_MEA, list_contacts_E_MEA, 'MEA', 'E', 'red', '#900C3F') 484 +visualization_best_mcc(list_struct2d_A_MEA, list_contacts_A_MEA, 'MEA', 'A', 'desc', 'red', '#900C3F')
512 -visualization_best_mcc(list_struct2d_F_MEA, list_contacts_F_MEA, 'MEA', 'F', 'blue', '#0900FF') 485 +visualization_best_mcc(list_struct2d_B_MEA, list_contacts_B_MEA, 'MEA', 'B', 'desc', 'blue', '#0900FF')
513 486
514 -print("countE_MFE: " + str(countE_MFE) + "\n")
515 -print("countF_MFE: " + str(countF_MFE) + "\n")
516 -print("countE_MEA: " + str(countE_MEA) + "\n")
517 -print("countF_MEA: " + str(countF_MEA) + "\n")
518 myfile.close() 487 myfile.close()
488 +
519 path_benchmark = "data/modules/ISAURE/Motifs_version_initiale/benchmark.txt" 489 path_benchmark = "data/modules/ISAURE/Motifs_version_initiale/benchmark.txt"
520 -visualization_all_mcc(path_benchmark,'MEA', 'F')
521 -visualization_all_mcc(path_benchmark,'MEA', 'E')
522 -visualization_all_mcc(path_benchmark,'MFE', 'E')
523 -visualization_all_mcc(path_benchmark,'MFE', 'F')
...\ No newline at end of file ...\ No newline at end of file
490 +visualization_all_mcc(path_benchmark,'MEA', 'B', 'desc')
491 +visualization_all_mcc(path_benchmark,'MEA', 'A', 'desc')
492 +visualization_all_mcc(path_benchmark,'MFE', 'A', 'desc')
493 +visualization_all_mcc(path_benchmark,'MFE', 'B', 'desc')
...\ No newline at end of file ...\ No newline at end of file
......
No preview for this file type
No preview for this file type
1 #include <iostream> 1 #include <iostream>
2 #include <sstream> 2 #include <sstream>
3 #include <fstream> 3 #include <fstream>
4 -#include "/mnt/c/Users/natha/Documents/IBISC/biorseo2/biorseo/cppsrc/json.hpp" 4 +#include "/local/local/BiorseoNath/cppsrc/json.hpp"
5 #include <typeinfo> 5 #include <typeinfo>
6 #include <set> 6 #include <set>
7 #include <algorithm> 7 #include <algorithm>
...@@ -51,8 +51,8 @@ void delete_redundant_pdb(const string& jsonlibrary, const string& name, const s ...@@ -51,8 +51,8 @@ void delete_redundant_pdb(const string& jsonlibrary, const string& name, const s
51 51
52 int main(int argc, char** argv) 52 int main(int argc, char** argv)
53 { 53 {
54 - string jsonlibrary = "/mnt/c/Users/natha/Documents/IBISC/biorseo2/biorseo/data/modules/ISAURE/Motifs_version_initiale/motifs_final.json"; 54 + string jsonlibrary = "/local/local/BiorseoNath/data/modules/ISAURE/Motifs_version_initiale/motifs_final.json";
55 - string out = "/mnt/c/Users/natha/Documents/IBISC/biorseo2/biorseo/data/modules/ISAURE/Motifs_derniere_version/motifs_final.json"; 55 + string out = "/local/local/BiorseoNath/data/modules/ISAURE/Motifs_derniere_version/motifs_final.json";
56 string name = argv[1]; 56 string name = argv[1];
57 delete_redundant_pdb(jsonlibrary, name, out); 57 delete_redundant_pdb(jsonlibrary, name, out);
58 return 0; 58 return 0;
......
No preview for this file type
...@@ -88,7 +88,7 @@ int main(int argc, char* argv[]) ...@@ -88,7 +88,7 @@ int main(int argc, char* argv[])
88 "RNA-MoIP (A), light motif size + high number of components (B), site score (C), light motif size + site score + high number of components (D)") 88 "RNA-MoIP (A), light motif size + high number of components (B), site score (C), light motif size + site score + high number of components (D)")
89 89
90 ("MFE,e", "Use as function for objective 2 MFE (Minimum Free Energy)") 90 ("MFE,e", "Use as function for objective 2 MFE (Minimum Free Energy)")
91 - ("MEA,a", "Use as function for objective 2 MEA (Maximum Expected Accuracy") 91 + ("MEA,a", "Use as function for objective 2 MEA (Maximum Expected Accuracy) it's also choose by default")
92 92
93 ("disable-pseudoknots,n", "Add constraints forbidding the formation of pseudoknots") 93 ("disable-pseudoknots,n", "Add constraints forbidding the formation of pseudoknots")
94 ("limit,l", po::value<unsigned int>(&MOIP::max_sol_nbr_)->default_value(500), "Intermediate number of solutions in the Pareto set above which we give up the calculation.") 94 ("limit,l", po::value<unsigned int>(&MOIP::max_sol_nbr_)->default_value(500), "Intermediate number of solutions in the Pareto set above which we give up the calculation.")
...@@ -116,7 +116,6 @@ int main(int argc, char* argv[]) ...@@ -116,7 +116,6 @@ int main(int argc, char* argv[])
116 if (vm.count("MFE")) mea_or_mfe = 'a'; 116 if (vm.count("MFE")) mea_or_mfe = 'a';
117 if (vm.count("MEA")) { 117 if (vm.count("MEA")) {
118 mea_or_mfe = 'b'; 118 mea_or_mfe = 'b';
119 - cout << "hey" << endl;
120 } 119 }
121 if (vm.count("verbose")) verbose = true; 120 if (vm.count("verbose")) verbose = true;
122 if (vm.count("disable-pseudoknots")) MOIP::allow_pk_ = false; 121 if (vm.count("disable-pseudoknots")) MOIP::allow_pk_ = false;
......