Commit 2012224c authored by Yoann Dufresne's avatar Yoann Dufresne

Modification for Rayan greedy

parent 0e6da685
number_try = 25
threshold = 0.95
number_try = 1
threshold = 0.9
rule d2_path_generation:
......@@ -12,7 +12,7 @@ rule d2_path_generation:
run:
best = 0
for _ in range(number_try):
shell("python3 deconvolution/main/d2_to_path.py {input.barcode} {input.d2} > {output}_tmp.out")
shell("python3 deconvolution/main/d2_to_path_simple.py {input.barcode} {input.d2} > {output}_tmp.out")
score = 0
with open(f"{output}_tmp.out") as out:
score_line = out.readlines()[-2].strip()
......@@ -25,5 +25,5 @@ rule d2_path_generation:
print("Score sufficient: quitting...")
break
shell("rm {output}_tmp.out")
shell("cp {output}.best {output}")
shell("mv {output}.best {output}")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment